#module for mouse is bcm5974 # pacat /dev/urandom > padsp # for volume over 150: pactl set-sink-volume 0 150% (or volume 150%) #if you wanna change timezone just copy one of /usr/share/zoneinfo/place to /etc/localtime # awesome perl echo 'one two three'| perl -lne 'print $1 if /one(.*)three/' # SDR function sdr; gqrx-alsa; end # Disable mouse function remouse; sudo modprobe -r bcm5974; end function enmouse; sudo modprobe bcm5974 ; ~/bin/mousefix; end # Notes function physics; vim ~/Sync/Notes/Physics/physics.txt; end function chemistry; vim ~/Sync/Notes/Chemistry/chemistry.txt; end function english; vim ~/Sync/Notes/English/english.txt; end function swedish; vim ~/Sync/Notes/Swedish/swedish.txt; end #zombify function zombify; sudo -u dork /home/vasko/dorknet/dork zombify; end function irc; autossh -M 0 -o "ServerAliveInterval 45" -o "ServerAliveCountMax 2" -p 55022 vasko@skozl.com; end function vps; autossh -M 0 -o "ServerAliveInterval 45" -o "ServerAliveCountMax 2" -p 22 vasko@108.61.173.91; end function sourcel; source ~/.bash_aliases; end function ,.; fc -e -; end function cd..; cd ..; end function nkill; pkill -f; end function drop; /home/vasko/drop/dropbox_uploader.sh; end function lo; libreoffice; end function tuner; lingot; end function efbterm; export TERM=fbterm; end function listd; ls -al /dev/disk/by-uuid/*; end function py; python3 $argv; end function scan; iwlist wlan0 scan; end function connect; sudo iwconfig wlan0 essid; end function home; cd /home/vasko; end function l; ls -F $argv; end function d; ls; end function dm; ls | more; end function e; cd; end function en; cd ..; end function n; clear; end function s; sudo; end function m; mv; end function r; rm $argv; end function md; mkdir $argv; end function rd; rm -rf $argv; end function c; gcp; end function v; vim $argv; end function sv; sudo vim $argv; end function f; gnome-commander; end function o; less $argv; end function g; wget $argv; end function x; tar -xvzf $argv; end function a; tar -cvzf $argv; end function i; yaourt -S $argv; end function p; sudo pacman -Rs $argv; end function clean; sudo pacman -Rsn (pacman -Qdtq); end function t; optirun; end function ts; optirun -b none nvidia-settings -c :8; end function tc; lsof -n /dev/nvidia0; end function endsu; exit & sudo su; end function iso; dd if=/dev/cdrom of=~/cdrom_image.iso; end #function glxspheres; vblank_mode=0 /opt/VirtualGL/bin/glxspheres64; end function tglxspheres; vblank_mode=0 optirun -vv /opt/VirtualGL/bin/glxspheres64; end function pglxspheres; vblank_mode=0 primusrun /opt/VirtualGL/bin/glxspheres64; end function httpserve; python -m SimpleHTTPServer; end function pi; ping google.com; end function pl; ping 8.8.8.8; end function def; sdcv; end function aria2c; aria2c -c -x5 -s10 -m0; end # Screen function scradmin; $HOME/.tools/screen_run admin; end function scrschool; $HOME/.ratpoison/screen_run school; end # Switch layouts function qwerty; setxkbmap us; end function bgkey; setxkbmap bg; end function colemak; setxkbmap uc -variant colemak ; xset r 64 ; xset r rate 170 60; end function extmak; setxkbmap us4 -variant colemak ; xset r 64 ; xset r rate 170 60; end function svenmak; setxkbmap us2 -variant colemak; end function ansi; setxkbmap us3 -variant colemak; end # Make mount give all users right permission function mount; mount -o gid=users,fmask=113,dmask=002';end # Alias FTP mount function ftpmount; curlftpfs eu5.org ~/ftp/';end function ftpumount; umount /home/vasko/ftp; end function vimrc; vim ~/.vimrc; end function uzblrc; vim ~/.config/uzbl/config; end function aliases; vim ~/.bash_aliases; end function solarize; ~/.solarized/solarize; end function rat; vim ~/.tools/ratpoisonrc.conf; end function sx; vim ~/.config/sxhkd/sxhkdrc; end function bs; vim ~/.config/bspwm/bspwmrc; end function screenrc; vim ~/.ratpoison/screenrc; end function xkb; sudo vim /usr/share/X11/xkb/symbols/vaskozl; end function pdf; apvlv; end function kpaint; kolourpaint; end function gnu; vrms; end function layout; vim .rat_layout; end function lightdm; sudo /etc/init.d/lightdm start; end function mountem; sudo mount -t auto /dev/sda5 /mnt/sda5; end function grub; sudo -e /etc/default/grub; end function reboot; sudo reboot; end # Games #function minecraft; optirun java -Xmx1024M -Xms1024M -XX:+UseFastAccessorMethods -XX:+AggressiveOpts -XX:+DisableExplicitGC -XX:+UseAdaptiveGCBoundary -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:+UseParallelGC -XX:UseSSE=3 -XX:ParallelGCThreads=2 -jar ~/.minecraft/launcher.jar; end function amnesia; optirun /usr/games/Amnesia/Launcher.bin; end function nethackterm; rxvt -bg black -fg green +tr &; end function cfgpanel; fgpanel --fg-root=/usr/share/games/flightgear --panel=Aircraft/c172p/Panels/FGPanel_c172p.xml; end function cfgfs; optirun fgfs --generic=socket,out,20,127.0.0.1,34200,udp,../Aircraft/c172p/Panels/FGPanel_Protocol_c172p; end #function xonotic; cd ~/.Xonotic ; optirun ~/.Xonotic/xonotic-linux64-glx -sessionid vaskozl; end function blizz; wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Battle.net/Battle.net.exe; end function starcraft; wine ~/.wine/drive_c/Program\ Files\ \(x86\)/StarCraft\ II/Support/SC2Switcher.exe; end function lotv; wine "/home/vasko/.wine/drive_c/Program Files (x86)/StarCraft II - Legacy of the Void Beta/Support/SC2Switcher.exe"; end # Network tools #scan available networks function wifi; sudo wpa_supplicant -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant-wlp2s0.conf; end function ipscan; nmap -sP; end function localscan; sudo nmap -PR -sP 192.168.0.1/24; end function wifires; modprobe ipw2100; end # Drawing function mspaint; /usr/share/playonlinux/playonlinux --run "Microsoft paint"; end function msexcel; /usr/share/playonlinux/playonlinux --run "Microsoft Excel 2010"; end function msword; /usr/share/playonlinux/playonlinux --run "Microsoft Word 2010"; end