text stringlengths 7 318 |
|---|
echo $((RANDOM <EOC> |
for i in `seq 1 <EOC> |
esxcli network ip interface ipv4 set -i vmk1 -I <EOC> |
/usr/sbin/arp -i eth0 | awk '{print $3}' <EOC> |
shopt -s extglob; for f in *.ttf *.TTF; do g=$(showttf "$f" 2>/dev/null | grep -A1 "language=0.*FullName" | tail -1 <EOC> |
cat dump.sql | sed -n -e '/Table structure for table .table1./,/Table structure for table <EOC> |
find . -name '*.xml' -type f -print | xargs du <EOC> |
expandurl() { curl -sIL $1 2>&1 | awk '/^Location/ <EOC> |
awk -F $'\t' '{printf $1 LS $2 LS $3 LS $4 LS $5; for (i = 7; i < NF; i++) printf $i "\t"; printf "\n--\n";}' <EOC> |
podman <EOC> |
xclip -o -sel clipboard | qrencode -o - <EOC> |
cat /etc/apache2/sites-enabled/* | egrep 'ServerAlias|ServerName' | tr -s ' ' | sed 's/^\s//' | cut -d ' ' <EOC> |
x=1024; y=32768; cat <(echo -e "P5\n$x $y\n255\n") <(dd if=/dev/sda1 bs=$x count=$y) > <EOC> |
find / -type f ! -regex '^/\(dev\|proc\|run\|sys\).*' <EOC> |
avconv -y -f x11grab <EOC> |
perl -MText::Highlight -E <EOC> |
e2image -I {{/dev/sdXN}} <EOC> |
nohup <EOC> |
df <EOC> |
tmux send-keys <EOC> |
weather() { curl -s "http://www.wunderground.com/q/zmw:$1.1.99999" | grep "og:title" <EOC> |
sudo <EOC> |
watch 'ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem <EOC> |
scp <EOC> |
xpath () { xmllint --format <EOC> |
nmcli connection modify "My Connection" ipv4.gateway 192.168.1.1 <EOC> |
prep <EOC> |
convert *.jpg <EOC> |
p() { l=$LINES; case $1 in do) shift; IFS=$'\n' _pg=( $("$@") ) && _pgn=0 && p r;; r) echo "${_pg[*]:_pgn:$((l-4))}";; d) (( _pgn+=l-4 )); (( _pgn=_pgn>=${#_pg[@]}?${#_pg[@]}-l+4:_pgn )); p r;; u) <EOC> |
read -p <EOC> |
less -h <EOC> |
docker images | grep <none> | awk '{ print $3; }' | xargs docker <EOC> |
for vm in $(vmware-cmd -l);do echo -n "${vm} ";vmware-cmd ${vm} <EOC> |
paste -d: <(ls -1 *.mp4) <(ls -1 *.srt) | <EOC> |
chgrp teachers <EOC> |
LC_ALL=C sort file | <EOC> |
arp -s $(route -n | awk '/^0.0.0.0/ {print $2}') \ $(arp -n | grep `route -n | awk '/^0.0.0.0/ {print <EOC> |
md5sum * | sed 's/^\(\w*\)\s*\(.*\)/\2 \1/' <EOC> |
function up { i=$1; while [ $((i--)) -gt 0 ]; do cd ../ && <EOC> |
apt-popcon() { (echo \#rank; apt-cache search "$@" |awk '$1 <EOC> |
dpkg-query -l| grep -v "ii " | grep "rc " | awk '{print $2" "}' | tr -d "\n" | xargs aptitude <EOC> |
curl -s www.google.com/ig/api?weather=$(curl -s api.hostip.info/get_html.php?ip=$(curl -s icanhazip.com) | sed -e'1d;3d' -e's/C.*: \(.*\)/\1/' -e's/ /%20/g' -e"s/'/%27/g") | sed 's|.*<t.*f data="\([^"]*\)"/>.*|\1\n|' <EOC> |
echo {1..199}" bottles of beer on the wall, cold bottle of beer, take <EOC> |
leo (){ l="en"; if [ "${1:0:1}" = "-" ]; then l=${1:1:2};shift;fi;Q="$*";curl -s "https://dict.leo.org/${l}de/?search=${Q// /%20}" | html2text | sed -e '0,/H.ufigste .*/d;/Weitere Aktionen/,$d;/f.r Sie .*:/,$d' | grep -aEA900 '^\*{5} <EOC> |
rsync <EOC> |
7z e <EOC> |
ssh-copy-id <user>@<host> <EOC> |
while true; do netstat -p |grep "tcp"|grep --color=always "/[a-z]*";sleep 1;done <EOC> |
ping -s <EOC> |
rec -t ogg - <EOC> |
find . -maxdepth 1 -type d -exec sh -c "printf '{} ' ; find <EOC> |
dhclient -r && rm -f <EOC> |
ffmpeg -i in.mkv <EOC> |
ls <EOC> |
curl -sLkIv --stderr - http://example.org | grep -i location: | awk {'print $3'} | sed <EOC> |
du -x <EOC> |
nmcli connection add type ethernet <EOC> |
function ds { echo <EOC> |
dir=/rom; a=$(find $dir -name \*.sh -exec cat '{}' \; | egrep -cv '^[[:space:]]*#'); b=$(find $dir <EOC> |
mysql <EOC> |
history |awk '{print <EOC> |
cat /var/log/apache2/access_logs | cut -d ' ' -f <EOC> |
export _PROFILE_='usr.bin.firefox' sudo $(rm <EOC> |
lsof -nP -c COMMAND <EOC> |
nice -n 3 cargo build <EOC> |
for <EOC> |
ls -l $(find ./ -type l | perl -ne <EOC> |
urpmi.addmedia --update google-talkplugin http://dl.google.com/linux/talkplugin/rpm/stable/$(uname -m | sed -e <EOC> |
awk '$3 <EOC> |
awk < file.name '{ system("resolveip -s " $1) <EOC> |
N="filepath" ; P=/proc/$(lsof +L1 | grep "$N" | awk '{print $2}')/fd ; ls -l $P | sed -rn "/$N/s/.*([0-9]+) ->.*/\1/p" | xargs -I_ cat $P/_ > <EOC> |
w | egrep <EOC> |
find . -type f -exec echo -n "touch -t \`echo " \; -exec <EOC> |
export KEEP_KERNEL=2; dpkg -l 'linux-image*' | awk '/^ii/ { print $2 }' | grep "[0-9]" | awk 'BEGIN{i=1}{print i++, $0}' | grep `uname -r` -B99 | sort -r | tail -n+$(($KEEP_KERNEL+2)) | awk '{print $2}'| xargs apt-get -y <EOC> |
perl -0777 -ne <program_text> [files] perl -0777 -pe <program_text> [files] perl -g -pe <program_text> <EOC> |
dpkg-query -l| grep -v "ii " | grep "rc " | <EOC> |
while kill -0 0; do timeout 5 bash -c 'spinner=( <EOC> |
tail -n2000 /var/www/domains/*/*/logs/access_log | awk '{print $1}' | sort | uniq -c | sort -n | awk '{ if ($1 <EOC> |
complete -C "perl -e <EOC> |
crontab -e # 0 10 * * 1-5 <EOC> |
groups pi | xargs <EOC> |
for pid in $(cat <EOC> |
find . -printf "%T@ %p\n" | sed -e 1d | while read ts fn; do ts=${ts%.*}; <EOC> |
find . -type f -iname '*.msh' -exec ls -lG {} \; | awk '{total = total + $4}END{print "scale=2;" total <EOC> |
passwd remote_user <EOC> |
netstat -an | grep ESTABLISHED | awk '{print $5}' | awk -F: '{print $1}' | sort | uniq -c | awk '{ printf("%s\t%s\t",$2,$1) ; for (i = 0; i < $1; <EOC> |
setsid mpv --input-ipc-server=/tmp/mpvsoc$(date +%s) -quiet <EOC> |
free -b <EOC> |
xed --encoding {{WINDOWS-1252}} {{path/to/file1 path/to/file2 <EOC> |
[ ! -t <EOC> |
touch <EOC> |
for card in $(pacmd list-cards <EOC> |
nohup <EOC> |
ip <EOC> |
x=(*.001); cat "${x%.001}."* > "${x%.001}" #unsafe; <EOC> |
ffmpeg <EOC> |
ifconfig | grep "inet [[:alpha:]]\+" | cut -d: -f2 | cut -d' <EOC> |
W` and height `H <EOC> |
ping -o -i 30 HOSTNAME <EOC> |
cd <EOC> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.