By donmc, 28 December, 2013
Topic
Found lots of bocked (SPAM) users in my Drupal 7 site. Deleted with this SQL script (in PHPMYADMIN)
DELETE FROM users WHERE `status` = 0 AND `uid` != 0; Also had 49,000+ failed admin login attempts on my site - had caused a lockout of my admin user.
Did this in phpmyadmin : DELETE FROM flood;
By donmc, 21 December, 2013

This has been driving me crazy. Long delays on DNS lookups on Ubuntu 13.x desktop/laptops...
To fix dnsmasq errors, you should edit /etc/NetworkManager/NetworkManager.conf

sudo gedit /etc/NetworkManager/NetworkManager.conf
and comment out the line so it looks like this:

# dns=dnsmasq
in the "[main]" section. To comment out the line, put a '#' at the beginning of the line, then save the file.
Then restart network-manager.

By donmc, 2 September, 2013

A bug I had noted in Publisher 2007 & 2010 is fixed by this simple change to the page size settings:

After following your steps I see the same problem in Publisher 2010 and Publisher 2007 Service Pack 2 but not in 2003 Service Pack 3. I see the 5 rows of 2 in 2003 as you are expecting in 2010 but not getting.

What type of Avery labels are you printing?

By donmc, 29 May, 2013
Topic

sudo rsync -avhe ssh --log-file="/usr/local/rsync/rsync.log.$(date +%Y%m%d%H%m%S)" /DATA/ root@192.168.0.2:/home/username/DATA/

By admin, 23 April, 2013

Some key cmds that I had to use to get the networking operational on the proxmox server:


root@proxmax:/etc/network# vzctl set 103 --ipadd 192.168.3.88 --save

This will poke a new IP address into the config for the container.
The "/etc/network/interfaces" files that results will look like this:

By admin, 12 February, 2013
Topic

[donmc@MSJ ~]$ sudo rpm -Uvh VNC-Server-5.0.4-Linux-x86.rpm
[sudo] password for donmc:
Preparing... ########################################### [100%]
1:realvnc-vnc-server ########################################### [100%]
Checking for xauth... [OK]
Updating /etc/pam.d/vncserver
Looking for font path... not found.
Generating private key:
p: .....................................
q: ................
Installed init script for VNC X11 Service-mode daemon
Start and stop the service with:

By admin, 8 January, 2013

By default, the bash history does not keep tabs on the time of day that a given command was run. But it is really as simple as defining ONE environment variable: "HISTTIMEFORMAT"

This from "Linux by Example": HISTTIMEFORMAT takes format string of strftime. Check out the strftime manual to choose and construct the timestamp that suit your taste. My favorite is "%F %T ".

export HISTTIMEFORMAT="%F %T "