tasklist.exe
Note: Not available in Windows XP Home edition by default. Google and download it.To kill the PID or process name, look for tskill.exe under c:\windows\system32\
tskill.exe PID | PROCESS NAME
tasklist.exe
Note: Not available in Windows XP Home edition by default. Google and download it.
tskill.exe PID | PROCESS NAME
ssh username@192.168.1.60 "cat ~/Video/apprentice.avi" | mplayer -
# In /etc/dhcp3/dhclient.conf
prepend domain-name-servers 8.8.8.8, 8.8.4.4;
rsync ~/Music /media/disk/Music -rP
For podcasts it'll be a good idea to use cronjob to download new podcasts. I'm using a remote server to download them.
# On my remote server
sudo apt-get install podget
# crontab -e on server
0 * * * * /usr/bin/podget -s
# On my local host machine with mobile phone plugged in
rsync username@remote-server:./Music/Podcasts /media/disk/Podcasts -rP
# Disable current popup from the command prompt
net stop "automatic updates"
# Disable future auto restarting of system.
# I'm using Windows XP Home so can't access gpedit.msc.
# Need to use a registry script instead --> stop_update_restart.reg
# P.S. note the first line.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]
"RebootRelaunchTimeoutEnabled"=dword:00000000
"NoAutoRebootWithLoggedOnUsers"=dword:00000001
# Instead of
cp -r folder destination_folder
# Use rsync instead
rsync folder destination_folder -P
# This will fail to run properly
*/5 * * * * /usr/bin/env ruby /home/username/twitter.rb
# Need to run the script in full bash environment
*/5 * * * * bash -c 'source /home/username/.rvm/scripts/rvm && /usr/bin/env ruby /home/username/twitter.rb'
/etc/syslog.conf
New:
/etc/rsyslog.d/50-default
sudo apt-get update
sudo apt-get -y install build-essential zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev sqlite3 libsqlite3-dev locate git-core libssl-dev openssl autoconf subversion bison
sudo apt-get -y install curl wget
rvm package install zlib
rvm remove 1.8.7
rvm install 1.8.7 -C --with-zlib-dir=$rvm_path/usr
sudo apt-get install libssl-dev
Installing Ruby Enterprise Edition
Error running './installer -a /home/username/.rvm/rubies/ree-1.8.7-2010.01 --dont-install-useful-gems ', please check /home/username/.rvm/log/ree-1.8.7-2010.01/install*.log
There has been an error while trying to run the ree installer. Aborting the installation.
# Need to install the following library first
sudo apt-get install libreadline5-dev
rvm install ree
csrf_meta_tag
Routing:
link_to :controller => 'user_sessions', :action => 'destroy'
New
# Route
match '/log' => "user_sessions#destroy", :as => :logout
# View
link_to 'Logout', '/logout'
# in .vimrc
set backup
set backupdir=~/.vim/backups
mkdir -p .vim/backups
Unable to open swap file for "{filename}", recovery impossible
# in .vimrc
set directory=~/.vim/tmp
mkdir -p ~/.vim/tmp