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.
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.
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"
function i wrote that remuxes audio-only webm's into their native containers, primarily for youtube-dl downloadsfunction 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.