Skip to content

Instantly share code, notes, and snippets.

Petr Michalec epcim

View GitHub Profile
@epcim
epcim / -
Created Oct 18, 2015
shop-rc-transmiter-2-usb-adapters
View -
batt: http://www.pelikandaniel.com/?sec=product&id=73911
ikarus: http://www.pelikandaniel.com/?sec=product&id=73013
hobbyking: http://www.hobbyking.com/hobbyking/store/__528__190__Radios_Receivers-Flight_Simulator.html
View aeroplanes_joystick.howto.md

basic terms

  • aileron - křidélko
  • elevator - výškové kormidlo
  • rudder - směrovka

some configuration for RC joy under linux

View afterstart.howto.md

some apps used to start in linux session

deskbar-applet
pam-panel-icon
eggcups
nautilus
gnome-volume-manager
setxkbmap -layout "us,cz_qwerty" -option "grp:alt_shift_toggle" 
View apache-reverse-proxy.howto.md
View apt-get-resolve-dependencies-i386.howto.md

ubuntu, dpkg download package dependencies only

TODO: make an array of multi dependencis for later download and install rather make an tool to remove dependencies from DEB files

while true; do
    X=`sudo dpkg -i ibm-notes-9.0.1.i586.deb 2>&1 |g "is not installed" |awk -F" " '{print $1}'`;
    P=`echo $X|awk -F":" '{print $1}'`;
View apt.howto.md

Ubuntu apt / PPA, add repository examplesetc...

this is a common problem with Launchpad PPAs. Common enough that I've copied these commands to use when I reinstall or add new Launchpad PPAs.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys  
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys YOURKEYNUMBERHERE  
View aria2c.howto.md
#!/bin/sh
# aria2c ftp download script
aria2c -j10 -s5 --ftp-user alice@foo.com --ftp-passwd PASSWORD --ftp-pasv=false -i $1
View awesome.howto.md

Awesome window manager tips

Edit cfg

vim $HOME/.config/awesome/rc.lua

get name of the window

xprop | grep --color=none "WM_CLASS\|^WM_NAME"
View awk.txt.howto.md
    #!/bin/sh

    awk '{
    if (x=index($1,"AN")>0)
            print $NF,"=>","Fail";
    else
            print $NF,"=>","Pass";
View backup.howto.md

rsync, rdiff-backup tutorial

time sudo tar --exclude "*rdiff-backup-data*" czf /hg2g/bkp/ape_pmichalec-workforce-nb.t410.linux.home_2011-08-07.tar.gz /media/portable-hg2g/bkp/ape/pmichalec-workforce-nb.t410.linux.home

You can’t perform that action at this time.