text stringlengths 7 318 |
|---|
jq '.foo[] | select(.field_1 <EOC> |
curl -s http://www.infoplease.com/countries.html | grep "<td" | grep ipa | sed -e 's#html">#\n#g' | cut -f 1 -d\< | grep -v "^\ \ <EOC> |
history | awk '{CMD[$2]++;count++;}END { for (a in <EOC> |
diffprocess () { diff <($*) <EOC> |
changeFolder() { if <EOC> |
imgur(){ convert label:@- png:-|curl -F "image=@-" -F "key=1913b4ac473c692372d108209958fd15" http://api.imgur.com/2/upload.xml|grep -Eo "<original>(.)*</original>" | <EOC> |
find -name '*.avi' | while read i ; do echo $(mplayer -identify -frames 0 -vo null -nosound "$i" 2>&1 | grep ID_LENGTH <EOC> |
hashkey=`echo -ne <your-secret> | <EOC> |
find / -type f -size +25M -exec ls -lh {} \; | awk '{ print $5 <EOC> |
hpacucli controller all show config detail | grep <EOC> |
grep -i '^DocumentRoot' /etc/httpd/conf/httpd.conf | cut <EOC> |
for i in $(ls *.mp3); do mplayer $i && echo "delete it? [y/n]" && read trash && if [ "$trash" <EOC> |
cut -d',' -f6 file.csv <EOC> |
git branch --merged | egrep -v "(^*|main|dev)" | xargs <EOC> |
git <EOC> |
while(1 -eq 1 ) {Get-Process -Name *APPNAME* | Select-Object -ExpandProperty ID | ForEach-Object <EOC> |
ls -lFart |tail <EOC> |
echo "12345,12346" |sed -e's/ //'|tr "," "\n"| while read line; do echo -n $line" "; svn log -vr $line https://url/to/svn/repository/|grep <EOC> |
check_disk -w 15% <EOC> |
mysms='xxx0001234@messaging.sprintpcs.com' ; expect -c "log_user 0 ; set timeout -1 ; spawn usbmon -i usb0 ; <EOC> |
for i in *.cbr ; do mkdir ${i/\.cbr/} ; cp $i ${i/\.cbr/}/${i/cbr/rar} ; cd ${i/\.cbr/} ; unrar e ${i/cbr/rar} <EOC> |
python -c "import string; import random;print(''.join(random.SystemRandom().choice(string.ascii_uppercase + string.digits + string.ascii_lowercase) for <EOC> |
Add-MailboxPermission -Identity <EOC> |
mkdir <EOC> |
# ping -c 1000 -i 0.001 <EOC> |
parted <EOC> |
find . | while read line; do test `stat -c %u $line` -eq 1003 && chown android:android <EOC> |
rsync -avz <EOC> |
montage input.jpg <EOC> |
debtap <EOC> |
ps -u $USER |grep $1 | awk '{ print $1}'| <EOC> |
find . -name \*.c | xargs wc -l | tail -1 <EOC> |
scrot -e 'mv $f \$HOME/shots/; sitecopy -u shots; echo "\$BASE/$f" | xsel <EOC> |
ls -s|grep -E "^ *0"|sed "s/^ *0 <EOC> |
pacman -Qi | awk '/^Name/ {name=$3} /^Installed <EOC> |
cat access.log | awk '{print $1}' | sort -n | uniq -c | <EOC> |
:!pylint -e <EOC> |
for x in `grep server /tmp/error.log | awk '{print $3}'`; do \ t=`date "+%d-%m-%H%M%S"` ; ssh -q -t admin@$x.domain.com 'pstree -auln' > ~/snapshots/$x-$t.out <EOC> |
ffmpeg -f x11grab -s `xdpyinfo | grep 'dimensions:'|awk <EOC> |
/usr/bin/lynx -dump -width 500 http://127.0.0.1/whm-server-status | awk 'BEGIN { <EOC> |
alias lg='ls --color=always | grep --color=always -i' <EOC> |
pvmove /dev/sdb # Move data <EOC> |
for ((x=0;;x+=5)); do sleep 5; hours=$(($x/3600)); minutes=$(($x%3600/60)); seconds=$(($x%60)); echo "$hours hours $minutes minutes $seconds seconds <EOC> |
desiredDay=6; year=2012; month=5; n=0; while [ $(date -d "$year-$((month+1))-1 - $n day" "+%u") -ne <EOC> |
find /proc/*/fd -xtype <EOC> |
ss -t -o state established '( dport = :443 || dport = :80 )'|grep tcp|awk '{ print $5 }'|sed s/:http[s]*//g|sort -u|netcat whois.cymru.com 43|grep -v "AS Name"|sort <EOC> |
find . -name "*.php" | xargs egrep -i -s 'specialFunction' <EOC> |
cd () { <EOC> |
parallel echo -n {}"\ <EOC> |
cat <EOC> |
ls -Sh **/*(.Lm+100) | tail <EOC> |
RANGE=500;number=$RANDOM let <EOC> |
ran=$(head /dev/urandom | md5sum); MAC=00:07:${ran:0:2}:${ran:3:2}:${ran:5:2}:${ran:7:2}; sudo ifconfig wlan0 down hw ether $MAC; <EOC> |
printf "{{username_1}}:{{new_password_1}}\n{{username_2}}:{{new_password_2}}" | <EOC> |
svn help diff <EOC> |
s=/etc/ssh/sshd_config;r=PermitRootLogin;cp $s{,.old}&& <EOC> |
bzgrep -i "pattern" <EOC> |
lsof -p <process_id> | <EOC> |
ytfzf <EOC> |
EXT=MOV; for i in *.$EXT; do HandBrakeCLI -Z Normal --optimize --use-opencl --width 1280 --height 720 -i "${i}" -o "${i//.$EXT}.mp4"; done <EOC> |
now=`date +"%Y/%m/%d" -d "04/02/2005"` ; end=`date +"%Y/%m/%d" -d "07/31/2005"`; while [ "$now" != "$end" ] ; do now=`date +"%Y/%m/%d" <EOC> |
find /srv -type f <EOC> |
eh () { history -a ; vi ~/.bash_history ; history <EOC> |
netstat <EOC> |
userdel vikas <EOC> |
ipset <EOC> |
ps -eLF <EOC> |
aspell dicts <EOC> |
find . <EOC> |
sudo ifconfig ens33 -arp <EOC> |
lrunzip -o {{outfilename}} <EOC> |
find . -type d -exec env d="$dest_root" sh -c ' <EOC> |
check(){ power=$(acpi -a) ; if [[ $power == *on-line* ]] ; then echo "supply is on"; else echo "somebody is steeling your laptop"; amixer -c0 set Master 100+ unmute ; mpg123 nuclear-alarm.mp3 ; fi } ;while true; do check ; sleep 2 ; done <EOC> |
nohup top <EOC> |
while [[ COUNTER -le 10 && IFS=':' ]]; do for LINE in $(cat /tmp/list); <EOC> |
ffmpeg -f x11grab -r 25 -s 800x600 -i :0.0 <EOC> |
dstat <EOC> |
die_msg() { echo $@ >&2; exit -1; } <EOC> |
server$ while true; do read -n30 ui; echo $ui |openssl enc -aes-256-ctr -a -k PaSSw; done | nc -l <EOC> |
lsof <EOC> |
ss -o state fin-wait-1 '( <EOC> |
ifconfig -a | perl <EOC> |
usermod -l <EOC> |
dpkg -l <EOC> |
alias pkexec=“pkexec <EOC> |
convert example.png -resize 100x100! <EOC> |
cat /dev/urandom <EOC> |
for i in *; do j=`echo $i | <EOC> |
print -l <EOC> |
for M in 0 1 2 <EOC> |
grep -r . <EOC> |
tmux -S /tmp/your_shared_session
chmod 777 /tmp/your_shared_session <EOC> |
curl -sL xkcd.com | grep '<img <EOC> |
dig -x 8.8.8.8 <EOC> |
find -type f -name "*.avi" -print0 | xargs -0 mplayer -vo <EOC> |
echo "$HOSTNAME restarted $(uptime | <EOC> |
sudo lsof -i -n -P | grep TCP <EOC> |
du -B 8K <EOC> |
pcharc(){ perl -e 'for (0..255) {$_ = chr($_); print if /['$1']/}' | <EOC> |
YEAR=2015; echo Jul $(ncal 7 $YEAR <EOC> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.