dry run (check first)

patch -p1 --dry-run -i 323cc165b663a078c50da10ca9d79c48feddd4a4.patch

patch multiplier files

patch -p1 -i 323cc165b663a078c50da10ca9d79c48feddd4a4.patch

patch single file

patch foo.c < patch.diff

Undo patch

patch -R < /path/to/file

more sources

gnome-player is a mpc-be mpc-hc alternative for linux

Install on ubuntu 14.04 LTS
sudo apt-get update && sudo apt-get install gnome-mplayer


found this neat utility the other day
here is how to clone and mount the result images

sudo apt-get update && sudo apt-get install safecopy sudo safecopy --stage1 /dev/source /media/mount/dest.img

(if all data was copied then skip stage2 and stage3, if not proceed to stage2)

sudo safecopy --stage2 /dev/source /media/mount/dest.img sudo safecopy --stage3 /dev/source /media/mount/dest.img

list image information file dest.img

a simple guide to compile lftp on linux

  • sudo apt-get install openssl build-essential libreadline-dev libssl-dev ncurses-dev libgnutls28-dev pkg-config -y
  • mkdir -p src/lftp && cd src/lftp
  • wget http://lftp.yar.ru/ftp/$(wget -O- http://lftp.yar.ru/ftp/ | egrep -o 'lftp-[0-9\.]+.tar.gz' | sort -V | tail -1)
  • tar zxvf lftp-*.tar.gz && cd lftp-* (or change to your version)
  • ./configure (compile with with gnutls, or )
  • ./configure --without-gnutls --with-openssl (compile with openssl)
  • make -j8 && sudo make install

i had a issue with uefi and grub2 today, found out a realy simple solution

  • boot into a live cd (uefi mode)
  • mount /dev/sda1 /boot
  • grub-install --target=x86_64-efi --efi-directory=/boot/ --bootloader-id=grub --recheck --debug
  • grub-mkconfig -o /boot/grub/grub.cfg

found some of the info @ slackware docs

Easily deploy an SSD cloud server on @DigitalOcean in 55 seconds. Sign up using my link and receive $10 in credit
Proudly published with Ghost | Theme based on Draugur | Header Image by GUWEIZ@DeviantArt
Creative Commons Licence