Code: Select all
alias rotmuggen='play -n synth sine 20k'
Code: Select all
alias rotmuggen='play -n synth sine 20k'
Code: Select all
$ vim <file.tar.gz>
Code: Select all
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
# Show the currently running command in the terminal title:
# http://www.davidpashley.com/articles/xterm-titles-with-bash.html
show_command_in_title_bar() {
case "$BASH_COMMAND" in
*\033]0*)
# The command is trying to set the title bar as well;
# this is most likely the execution of $PROMPT_COMMAND.
# In any case nested escapes confuse the terminal, so don't
# output them.
;;
*)
echo -ne "\e]0;"
echo -n "$BASH_COMMAND"
echo -ne "\007"
;;
esac
}
trap show_command_in_title_bar DEBUG
;;
*)
;;
esac
Code: Select all
/etc/X11/xorg.conf.d/20-intel.conf
----
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "glamor"
EndSection
Code: Select all
~ $ alias cquick="echo '#include \"/dev/stdin\"'; cc a.c; ./a.out"
~ $ cquick
#include <stdio.h>
int
main ( void )
{
printf ( "Hello, world!\n" );
return 0;
}
Hello, world!
Code: Select all
base64 random_file.tar.gz | curl -sF 'sprunge=<-' http://sprunge.us
Code: Select all
curl -s http://sprunge.us/XXXX | base64 -d > download_file.tar.gz
Code: Select all
curl -s http://sprunge.us/XXX | base64 -d | gunzip - | tar cvf -
Code: Select all
for i in $(shuf -e ${!A[@]});do B+=("${A[$i]}");done
Code: Select all
for i in $(shuf -e ${!A[@]});do echo "${A[$i]}";done
Code: Select all
aspell -a
I think you can pipe the word in, but you'd need echo or something, then write a bash function, yadahyada...wux wrote:wux@chauvin:~$ aspell -a
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.7-20110707)
nessacary
& nessacary 12 0: NASCAR, necessary, scary, descry, massacre, Nescafe, sacra, NASCAR's, mascara, scare, cascara, sugary
Code: Select all
function gal() { find . -iname "*.jpg" -o -iname "*.png" -printf '<img src="%f" title="%f">\n' > gallery.html ;}
Code: Select all
ionice -c3 -p `pidof find`
Code: Select all
ipif() {
if grep -P "(([1-9]\d{0,2})\.){3}(?2)" <<< "$1"
then
curl ipinfo.io/"$1"
else
ipadd=$(host "$1") &&
ipawk=$(awk '{ print $4 }' <<< "$ipadd")
curl ipinfo.io/"$ipawk"
fi
echo
}
Code: Select all
Ragex
Code: Select all
geoip(){ curl freegeoip.net/xml/$1; }
Code: Select all
<install> geoip-database
Code: Select all
geoiplookup <ip>