Skip to content

Instantly share code, notes, and snippets.

View epcim's full-sized avatar

Petr Michalec epcim

View GitHub Profile
@epcim
epcim / -
Created October 18, 2015 10:33
shop-rc-transmiter-2-usb-adapters
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
@epcim
epcim / foo.md
Last active October 23, 2015 14:09
set terminal xterm aterm

set terminal options

  aterm -geometry 150x50 -bg black -fg white -fn -*-fixed-*-*-*-*-12-*-*-*-*-*-*-*

ascii art best examples

  xterm -fg white -bg black -fn -*-fixed-*-*-*-*-6-*-*-*-*-*-*-*  -geometry 450x170 -e "mplayer -vo aa:extended:driver=curses /mnt/win/c/_dwn/Son_plachetnice.avi"
 xterm -fn 5x7 -geometry 280x100 -e "CACA_DRIVER=ncurses mplayer -vo caca ~/Downloads/Chef\ Style\ DevOps\ Kungfu\ -\ Adam\ Jacob\ Keynote\ -\ ChefConf\ 2015-_DEToXsgrPc.mp4 --framedrop"

basic terms

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

some configuration for RC joy under linux

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" 
@epcim
epcim / aix.howto.md
Last active October 23, 2015 14:09
AIX howtos

#restart ssh

stopsrc -s sshd;startsrc -s sshd

#restore tar file to local directory

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}'`;

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  
#!/bin/sh
# aria2c ftp download script
aria2c -j10 -s5 --ftp-user alice@foo.com --ftp-passwd PASSWORD --ftp-pasv=false -i $1

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"