bashrc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. if [ -f `which powerline-daemon` ]; then
  2. powerline-daemon -q
  3. POWERLINE_BASH_CONTINUATION=1
  4. POWERLINE_BASH_SELECT=1
  5. fi
  6. if [ -f /usr/local/lib/python2.7/dist-packages/powerline/bindings/bash/powerline.sh ]; then
  7. source /usr/local/lib/python2.7/dist-packages/powerline/bindings/bash/powerline.sh
  8. fi
  9. alias ls="ls --color=auto"
  10. alias grep="grep --color=auto"
  11. alias egrep="egrep --color=auto"
  12. alias fgrep="fgrep --color=auto"
  13. uguu ()
  14. {
  15. for arg in $*; do
  16. curl -i -F file=@$arg https://uguu.se/api.php?d=upload-tool | grep https
  17. done
  18. }
  19. up_code ()
  20. {
  21. cat $1 | curl -F 'f:1=<-' ix.io
  22. }
  23. haste() { a=$(cat); curl -X POST -s -d "$a" http://hastebin.com/documents | awk -F '"' '{print "http://hastebin.com/"$4}'; }
  24. gravar ()
  25. {
  26. REC_iface=$(pactl list sources short | grep monitor | awk '{print$2}')
  27. SCREEN_res=$(xrandr -q --current | grep '*' | awk '{print$1}')
  28. ffmpeg -f x11grab -f pulse -s $SCREN_res -r 25 -i :0.0 -ac 2 -acodec vorbis -f x11grab -vcodec libx264 $1.mkv
  29. ffplay -f video4linux2 -i /dev/video0 -video_size 320x240
  30. }