Change the hostname in Mac OS X
sudo scutil --set HostName servername.example.com
2734 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
Basil Crow
sudo scutil --set HostName servername.example.com
rpm2cpio filename | cpio -i --make-directories
sudo chmod u+s /usr/bin/shfsmount /usr/bin/shfsumount
/etc/network/interfacesand adjust it to your needs (in this example setup I will use the IP address 192.168.0.100):
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # This is a list of hotpluggable network interfaces. # They will be activated automatically by the hotplug subsystem. mapping hotplug script grep map eth0 # The primary network interface auto eth0 iface eth0 inet static address 192.168.0.100 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1
sudo apt-get install nasm build-essential devscripts fakeroot mkdir ~/tmp cd tmp wget http://apt.cerkinfo.be/pool/main/x264/x264_0.0.20050906-1.diff.gz wget http://apt.cerkinfo.be/pool/main/x264/x264_0.0.20050906-1.dsc wget http://apt.cerkinfo.be/pool/main/x264/x264_0.0.20050906.orig.tar.gz dpkg-source -x x264_0.0.20050906-1.dsc cd x264-0.0.20050906/ dpkg-buildpackage -rfakeroot cd .. sudo dpkg -i *.deb sudo apt-get install debhelper libgtk2.0-dev jam nasm liba52-dev libavcodec-dev libdvdcss2-dev libdvdread3-dev libfaac-dev libmpeg2-4-dev liblame-dev libmp4v2-dev libogg-dev libsamplerate-dev libvorbis-dev libwxgtk2.6-dev libx264-dev libxvidcore-dev wget http://handbrake.m0k.org/mirrors/m0k/HandBrake-0.6.2-src.tar.gz tar -xzvf HandBrake-0.6.2-src.tar.gz cd HandBrake-0.6.2 jam sudo cp HBTest /usr/local/bin/handbrake
cd ~/tmp handbrake -e xvid -E ac3 -2 -S 1400 -i /dev/cdrom -o MOVIENAME.avi
mencoder -ovc copy -oac copy -endpos 700MB -o MOVIENAME.CD1.avi MOVIENAME.avi
Video stream: 1297.378 kbit/s (162172 B/s) size: 638610165 bytes 3937.851 secs 94414 frames
mencoder -ovc copy -oac copy -ss NUMER_OF_SECONDS -o MOVIENAME.CD2.avi MOVIENAME.avi
gconftool-2 -t str --set /apps/metacity/global_keybindings/run_command_9 "" gconftool-2 -t str --set /apps/metacity/keybinding_commands/command_9 "gnome-system-monitor" Delete
chown -R youruser:youruser /thedirectory find /thedirectory -type f -exec chmod 0644 {} \; find /thedirectory -type d -exec chmod 0755 {} \;
sudo apt-get install fakeroot java-package java-common fakeroot make-jpkg --full-name "My Name" --email "[email protected]" sudo dpkg -i sun-j2re1.5_1.5.0+update05_i386.deb sudo update-alternatives --config java
rsync -e ssh -av here/ there/