[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

What are some scripts that you made / found that you use often?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 21
Thread images: 4

File: 1486091111468.jpg (72KB, 720x540px) Image search: [Google]
1486091111468.jpg
72KB, 720x540px
What are some scripts that you made / found that you use often?
>>
QTGMC
>>
>>58862229
Delayclose
>>
Aw, so cute. <3
>>
bingrep.sh
it searches through binary directories to find executable files matching your search term. Its really useful when I install a program but dont actually know how to run it, among other uses
>>
>>58862229
A quiet compact little keylogger that boots from a flash drive, and dumps to a local text document. I call it GreyElkGo, minor bonus points if anyone reading this knows why.
>>
>>58862538
Because you're a huge faggot?
>>
{
string $selected[] = `ls -type joint`;
select -r $selected;
}

string $sel[] = `ls -sl`;
string $singleJnt;
for ($singleJnt in $sel)
{
setAttr ($singleJnt + ".segmentScaleCompensate") 0;
}


Recursively searches joints in Maya and turns off scale compensation so that the rig will play nice with game engines.
>>
File: tumblr_lcieuvSdgs1qamvjvo1_500.jpg (45KB, 500x376px) Image search: [Google]
tumblr_lcieuvSdgs1qamvjvo1_500.jpg
45KB, 500x376px
start () { sudo systemctl start "$@"; }
stop () { sudo systemctl stop "$@"; }
restart () { sudo systemctl restart "$@"; }
status () { sudo systemctl status "$@"; }
enabled () { sudo systemctl enable "$@"; }
disabled () { sudo systemctl disable "$@"; }

Start () { sudo systemctl start "$@"; sudo systemctl status "$@"; }
Stop () { sudo systemctl stop "$@"; sudo systemctl status "$@"; }
Restart () { sudo systemctl restart "$@"; sudo systemctl status "$@"; }
Enable () { sudo systemctl enable "$@"; sudo systemctl status "$@"; }
Disable () { sudo systemctl disable "$@"; sudo systemctl status "$@"; }

mountext () { [[ -b $1 ]] && sudo mount "$1" "$2" -o user,rw,umask=111,dmask=000; }

lefix () { sed -i 's/\r//g' "$@"; }


have some bash functions
>>
>>58862254
do you happen to know anything about IVTC?
>>
I am using Cupp, it is a python script that makes wordlist by using basic information about victim (name/birthday/pet) and after you put all those infos you will get a big wordlist with thousand of passwords.
>>
File: 1420229460495.png (300KB, 485x354px) Image search: [Google]
1420229460495.png
300KB, 485x354px
I wrote a script that copies animu off of my home server. I use it basically every day.
#!/bin/bash

# Copies new files from rutorrent's feed, and removes it
#
# Caution!: It will copy and remove files that are not finished

function gen_xmlrpc()
{
echo -n "<?xml version=\"1.0\"?><methodCall><methodName>$1</methodName><params>"
for v in "${@:2}"
do
echo -n "<param><value>$v</value></param>"
done
echo -n "</params></methodCall>"
}

r_path="REDACTED:/srv/torrents/"
l_path="$HOME/Videos/"

rutorrent="https://REDACTED/rutorrent"
rss="$rutorrent/plugins/rss/action.php"
httprpc="$rutorrent/plugins/httprpc/action.php"

feed=$(curl -s "$rss" | jq -r '[.list[].items[].hash]')
list=$(curl -s --data "mode=list" "$httprpc" | jq -r '.t | to_entries | map({hash: .key, name: .value[4]})')
data=$(jq -r '.[0] as $rss | .[1][] | select(([.hash] | inside($rss))) | .hash+":"+.name' <<< "[$feed,$list]")

while read -r line
do
if [[ -z "$line" ]]
then
break
fi

IFS=":" read -ra line <<< "$line"
id=${line[0]}
title=${line[1]}

if [ ! -f "$l_path/$title" ]
then
scp "$r_path\"$title\"" "$l_path"
if [ $? -ne 0 ]; then
exit 1
fi
else
echo "$title already exists. Not copying..."
fi

# Removes the torrent and data from the torrent client
curl -s --data "$(gen_xmlrpc d.set_custom5 "$id" 2)" "$httprpc" > /dev/null
curl -s --data "$(gen_xmlrpc d.delete_tied "$id")" "$httprpc" > /dev/null
curl -s --data "$(gen_xmlrpc d.erase "$id")" "$httprpc" > /dev/null
done <<< "$data"
>>
File: a.png (195KB, 892x517px) Image search: [Google]
a.png
195KB, 892x517px
function i wrote that remuxes audio-only webm's into their native containers, primarily for youtube-dl downloads
function webmtoogg {
for i in "$@"; do
codec=$(ffprobe -v error -of default=noprint_wrappers=1:nokey=1 -show_entries stream=codec_name "$i" 2>/dev/null)
if [[ "$codec" == "opus" ]]; then
ext=opus
elif [[ "$codec" == "vorbis" ]]; then
ext=ogg
elif [ ! $codec ]; then
echo Unable to determine format of \"$i\"
break
else
echo Invalid format for \"$i\"
break
fi

ffmpeg -i "$i" -c copy -map 0 "${i%.*}.$ext" 2>/dev/null
if [ $? ]; then
echo Completed \"$i\", removing old file.
rm "$i"
else
echo Something went wrong for \"$i\" \(error $?\), removing new file.
rm "${i%.*}.$ext"
break
fi
done
}
>>
Haha that pic is so me :)
>>
I put this in all the user's .bashrc
:code:
#!/bin/bash
last="$(feedstail -u https://stallman.org/rss/rss.xml -f "There is a New Stallman Article! --- \"{title}\"
Press [Return] To Continue" -k guid -n1 -1)"


while true
do
now="$(feedstail -u https://stallman.org/rss/rss.xml -f "There is a New Stallman Article! --- \"{title}\"
Press [Return] To Continue" -k guid -n1 -1)"
if [ "$last" != "$now" ]; then
printf "%s" "$now"
last="$now"
fi
sleep 300s
done

:stopcode:
>>
>>58865915
#!/bin/bash
last="$(feedstail -u https://stallman.org/rss/rss.xml -f "There is a New Stallman Article! --- \"{title}\"
Press [Return] To Continue" -k guid -n1 -1)"


while true
do
now="$(feedstail -u https://stallman.org/rss/rss.xml -f "There is a New Stallman Article! --- \"{title}\"
Press [Return] To Continue" -k guid -n1 -1)"
if [ "$last" != "$now" ]; then
printf "%s" "$now"
last="$now"
fi
sleep 300s
done
>>
https://github.com/NARKOZ/hacker-scripts

this guy is based
>>
pulseaudio-ctl

small two liners that e.g. stop mpd playback before shutting down so I don't get blasted with music the instant I boot up

bash script that automates process of making 4chan-compliant webms from a given file, that I should finally extend to be able to give it a file with the appropriate params (video start, video length, sound or not etc) so I can collect data, then run it when I'm doing other stuff without having to manually input all the params
>>
>>58865925
thanks i googled it and got trolled
>>
10 PRINT "OP IS A FAGGOT"
20 GOTO 10
>>
>>58865734
why not use built-in youtube-dl option, -x or --extract-audio? you can also specify quality and format parameters which get passed through to ffmpeg.
Thread posts: 21
Thread images: 4


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.