
Terminal - Commands by dzup - 16 results
scrotit(){ echo "Screenshot in $1 seconds...";scrot -d $1 '%Y%m%d%h.png' -e 'curl -sF file1=@- http://ompldr.org/upload < $f | grep -P -o "(?<=File:).*(http://ompldr.org/.*)\<\/a\>";rm $f'| sed -r 's@.*(http://ompldr.org/\w{1,7}).*@\1@';}
This is sample output - yours may be different.
$ scrotit(){ echo "Screenshot in $1 seconds...";scrot -d $1 '%Y%m%d%h.png' -e 'curl -sF file1=@- http://ompldr.org/upload < $f | grep -P -o "(?<=File:).*(http://ompldr.org/.*)\<\/a\>";rm $f'| sed -r 's@.*(http://ompldr.org/\w{1,7}).*@\1@';}
$ scrotit 5
Sreenshot in 5 seconds...
http://ompldr.org/vZ2pqaQ
$
Take a screenshot, give $1 seconds pause to choose what to screenshot, then upload and get URI of post in ompdlr.org
omp(){ $*|convert label:@- png:-|curl -sF file1=@- http://ompldr.org/upload | grep -P -o "(?<=File:).*(http://ompldr.org/.*)\<\/a\>" | sed -r 's@.*(http://ompldr.org/\w{1,7}).*@\1@';}
This is sample output - yours may be different.
$ cat /etc/issue | omp
http://ompldr.org/vZ2pkNQ
Create a .png from output command or whatever, the upload and give URI from ompdlr.org
scrot -d 3 '/tmp/%Y-%m-%d_$wx$h.png' -e 'cat $f'|curl -F "image=@-" -F "key=1913b4ac473c692372d108209958fd15" http://api.imgur.com/2/upload.xml|grep -Eo "<original>(.)*</original>" | grep -Eo "http://i.imgur.com/[^<]*"
This is sample output - yours may be different.
scrot -d 3 '/tmp/%Y-%m-%d_$wx$h.png' -e 'cat $f'|curl -F "image=@-" -F "key=1913b4ac473c692372d108209958fd15" http://api.imgur.com/2/upload.xml|grep -Eo "<original>(.)*</original>" | grep -Eo "http://i.imgur.com/[^<]*"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 138k 0 640 100 137k 72 16080 0:00:08 0:00:08 --:--:-- 17506
http://i.imgur.com/YBzHR.pn
That its my personal key that i dont use, if you want yours, go to imgur and get it, or use that one
python -m SimpleHTTPServer 8000 &; sudo localtunnel -k ~/.ssh/id_rsa.pub 8000
This is sample output - yours may be different.
for ubuntu precise, just intall ...
sudo apt-get install ruby ruby1.8-dev rubygems1.8 libopenssl-ruby
sudo gem install localtunnel
ssh-keygen -t rsa
python -m SimpleHTTPServer 8000
sudo localtunnel -k ~/.ssh/id_rsa.pub 8000
you need ruby gems and localtunnel, further instruction on their website
for ubuntu precise, just intall ...
sudo apt-get install ruby ruby1.8-dev rubygems1.8 libopenssl-ruby
sudo gem install localtunnel
ssh-keygen -t rsa
python -m SimpleHTTPServer 8000
sudo localtunnel -k ~/.ssh/id_rsa.pub 8000
ompload() { wget -O- - "$1" --quiet|curl -# -F file1=@- http://ompldr.org/upload|awk '/Info:|File:|Thumbnail:|BBCode:/{gsub(/<[^<]*?\/?>/,"");$1=$1;print}';}
This is sample output - yours may be different.
ompload() { wget -O- - "$1" --quiet|curl -# -F file1=@- http://ompldr.org/upload|awk '/Info:|File:|Thumbnail:|BBCode:/{gsub(/<[^<]*?\/?>/,"");$1=$1;print}';}
(04:50:35 PM) dzup: ompload "http://cs532112.userapi.com/u184036981/video/5c27f37f18.360.mp4"
Like i said, i havent test it yet, all becouse my internet its soo slow, if you try and works please share, also be nice to do it using the direct url link.
wb(){ for i in $(wget -O- -U "" "http://wallbase.cc/random/23/eqeq/1920x1080/0/" --quiet|grep wallpaper/|grep -oe 'http://wallbase.[^"]*'); do if (( n > "$1" )); then break;fi;let n++;wget $(wget -O- -U "" $i --quiet|grep -oe 'http://[^"]*\.jpg');done;}
This is sample output - yours may be different.
for i in {1..10};do wget $(wget -O- -U "" "http://images.google.com/images?imgsz=xxlarge&hl=en&q=wallpaper+HD&start=$(($RANDOM%900+100))" --quiet | grep -oe 'http://[^"]*\.jpg' | head -1);done
This is sample output - yours may be different.
you may want &hl=en for &hl=es for the language
you may want imgsz=xxlarge for imgsz=large or whatever filter
you may want q=apples or whatever
ssh -l username server.tdl "tar -czf - /home/username/public_html" | tar -xzf -
This is sample output - yours may be different.
SEED=$(head -1 /dev/urandom|od -N 1);for i in {1..10};do tmp=$(mkpasswd ${RANDOM});pass=${tmp:2:6};echo Pass $pass Crypt: $(mkpasswd $pass);done
This is sample output - yours may be different.
$ SEED=$(head -1 /dev/urandom|od -N 1);for i in {1..10};do tmp=$(mkpasswd ${RANDOM});pass=${tmp:2:6};echo Pass $pass Crypt: $(mkpasswd $pass);done
Pass 1AQZNa Crypt: caaN60ubhohUE
Pass /klw3e Crypt: EsAy6/BGfW5hA
Pass 2p9/Xo Crypt: vYUo02ti0RGaU
Pass eVLa92 Crypt: QPbtNc90pF9jg
Pass nR1daQ Crypt: S9MYt9RzHPD2g
Pass 8s83Yd Crypt: V91O9VM8mYKP2
Pass aroNEP Crypt: lOMpnIF09dswo
Pass gUIRHL Crypt: 14Zlxq9r98wFo
Pass oja1Vi Crypt: kolcqPKEI7nhs
Pass efFV8T Crypt: 6MP7RUmjGV6bA
This is sample output - yours may be different.
paste(){ curl -s -S --data-urlencode "txt=$($*)" "http://pastehtml.com/upload/create?input_type=txt&result=address";echo;}
This is sample output - yours may be different.
$ paste(){ curl -s -S --data-urlencode "txt=$($*)" "http://pastehtml.com/upload/create?input_type=txt&result=address";echo;}
$ paste ifconfig
http://pastehtml.com/view/b9xfkmc6n.txt
$
paste(){ curl -s -S --data-urlencode "txt=$($@)" "
listhw(){ curl -s -S --data-urlencode "txt=$(sudo lshw -html)" "http://pastehtml.com/upload/create?input_type=html&result=address";echo;}
This is sample output - yours may be different.
$ listhw(){ curl -s -S --data-urlencode "txt=$(sudo lshw -html)" "http://pastehtml.com/upload/create?input_type=html&result=address";echo;}
$ listhw
http://pastehtml.com/view/b9s26uvrz.html
In this Linux box i need to become root to get the complete hardware list, so either become root before or call it with sudo as i did, your choice.
imgur(){ convert label:@- png:-|curl -F "image=@-" -F "key=1913b4ac473c692372d108209958fd15" http://api.imgur.com/2/upload.xml|grep -Eo "<original>(.)*</original>" | grep -Eo "http://i.imgur.com/[^<]*";}
This is sample output - yours may be different.
ifconfig | grep inet | imgur
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10177 0 636 100 9541 416 6244 0:00:01 0:00:01 --:--:-- 7200
http://i.imgur.com/vBvvz.png
imgur < /etc/issue
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2360 0 635 100 1725 1027 2792 --:--:-- --:--:-- --:--:-- 4058
http://i.imgur.com/bvbUD.png
imgur(){ $*|convert label:@- png:-|curl -F "image=@-" -F "key=1913b4ac473c692372d108209958fd15" http://api.imgur.com/2/upload.xml|grep -Eo "<original>(.)*</original>" | grep -Eo "http://i.imgur.com/[^<]*";}
This is sample output - yours may be different.
imgur ifconfig
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 53159 0 638 100 52521 248 20463 0:00:02 0:00:02 --:--:-- 22104
http://i.imgur.com/nxRsb.png
My key is the anonymous one, is good for 50 post an hour with a maximun number of uploads a day, probably will run out, if that happend you can get a free key at the site.
for file in $(find ~/ -iname "*.mp3");do c=$(mp3info $file|grep Genre|cut -f 3 -d :|cut -f 2 -d " ");if [ -z "$c" ];then c="Uncategorized";fi;if [ ! -e $c ];then touch $c.m3u;fi;echo "$file">>$c.m3u;done
This is sample output - yours may be different.
ls -al
total 40
drwxr-xr-x 2 alex alex 4096 2010-12-13 14:40 .
drwxr-xr-x 96 alex alex 16384 2010-12-13 14:15 ..
-rw-r--r-- 1 alex alex 1426 2010-12-13 14:40 Blues.m3u
-rw-r--r-- 1 alex alex 3668 2010-12-13 14:40 Other.m3u
-rw-r--r-- 1 alex alex 4435 2010-12-13 14:40 Soundtrack.m3u
-rw-r--r-- 1 alex alex 2375 2010-12-13 14:40 Uncategorized.m3u
for((i=0;i<10;i++)) do tmp=`wget -O- -U "" "http://images.google.com/images?imgsz=xxlarge&hl=es&q=wallpaper&sa=N&start=$(($RANDOM%700+100))&ndsp=10" --quiet|grep -oe 'http://[^"]*\.jpg'|head -1`;[[ $tmp != "" ]] && wget $tmp || echo "Error $[$i+1]";done
This is sample output - yours may be different.