Skip to content

Instantly share code, notes, and snippets.

@on-three
on-three / gist:c56bba30ddc67c9bb257
Created September 21, 2014 03:25
Curl post on old futaba board (may not work currently)
Here, it's easy:
curl -A "Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0" -F bbs="prog" -F id="$id" -F lol what 2 -F meiru="sage" -F kotehan="Anonymous" -F com="$msg" -F email="'" http://dis.4chan.org/post > /dev/null 2>&1;
You need a valid user agent (just put some mainstream browser name). $id is the id of the thread where you want to post, "meiru" is the mail, "kotehan" the name (funny weeaboo shit). $msg is obviously your message. Important: you must post "'" in the "email" field (that's the antispam, you will be banned if you don't).
If you want to execute that command in a loop for sagebombing, you have to wait 5 seconds between each posts.
I am confident that you're not going to use this for spamming this board, only for testing/learning purpose. Happy new year!
@on-three
on-three / gist:9e40cbf33765dbd3ffbb
Last active October 11, 2022 14:09
VLC capture window by xwindows id (window capture and streaming WITH audio)
1: Get the audio output device you'll record off:
pacmd list-sources | awk '/name:.+\.monitor/'
name: <alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor>
name: <alsa_output.pci-0000_00_1b.0.analog-stereo.monitor>
2: Get the x windows id (linux) of the window you'll capture
xwininfo -name "Nestopia"
xwininfo: Window id: 0x3a00003 "Nestopia"
...
@on-three
on-three / gist:8726cbed1ce05479ecb2
Created September 11, 2014 00:54
Unmangle a C++ method name
c++filt -n _Z1fv
#where _z1fv is the method name (e.g.)
@on-three
on-three / icecast.xml
Created September 6, 2014 22:24
Basic icecast config used for weeabot
<icecast>
<limits>
<clients>500</clients>
<sources>10</sources>
<threadpool>10</threadpool>
<queue-size>10000000</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>30</source-timeout>
<burst-on-connect>1</burst-on-connect>
@on-three
on-three / gist:feefb0f137b132aa163e
Created September 2, 2014 08:00
Video Capture setup
#?tv?shows_20140523.log:[22:02:49] <swam> qb: cablecard > external usb infinitv4 > wmc > hdfury3 > avermediahd internal pmcia capture card > vlc
@on-three
on-three / gist:5dd96da94c2dd1c57cb9
Created August 30, 2014 17:33
Create h264/mp3 .ts from static image of N seconds
avconv -loop 1 -i 720_test_pattern.png -c:v libx264 -c:a libmp3lame -t 300 720test.ts
@on-three
on-three / gist:bef78cfe147da417f65a
Created August 25, 2014 23:10
XCode Conditional Breakpoint on String
(BOOL)[[VARIABLENAME] isEqualToString:@"STRINGVALUE"]
@on-three
on-three / gist:3f58a6691a40186d2dba
Last active August 29, 2015 14:05
VLC Streaming Commands
vlc -I dummy -vvv video.mp4 --sout '#transcode{vcodec=h264,vb=0,scale=0,acodec=mpga,ab=128,channels=2,samplerate=44100}:http{mux=ffmpeg{mux=flv},dst=:8080/}'
#?tv?shows_20131102.log:[13:10:18] <GEEGEEGEE> vlc.exe -vvv http://192.168.0.12:2345 :sout=#transcode{vcodec=h264,vb=1900,scale=0,acodec=mp3,ab=128,channels=2,samplerate=44100,scodec=dvbs,soverlay,deinterlace=0}:http{caching=5000,mux=ts,dst=:55555/} :sout-keep
#?tv?shows_20130210.log:[09:26:15] <donnyst> "c:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "D:\music\lol.mp4" -sout=#transcode{vcodec=theo,vb=800,scale=1,acodec=vorb,ab=128,channels=2,samplerate=44100}: std{access=shout,mux=ogg,dst=myusername:mypassword@myicecastserver.domain.com:port/test.mp4}
#?tv?shows_20140218.log:[08:22:08] <Anonymousey> su -l -c "cvlc -I dummy http://xxx:fricheE5@25.102.90.94:9981/stream/channel/f57902659468c58056c90502e453f119 --repeat http://xxx:fricheE5@25.102.90.94:9981/stream/channel/f57902659468c58056c90502e453f119 --sout='#transcode{venc=x264{keyint=60,profile=base
@on-three
on-three / gist:1c3fe6977153a87c2877
Last active August 29, 2015 14:05
convert images and rename in files
cp -r dir1 dir1_copy
#find ./dir1_copy -type f -iname "*.jpg" -exec sh -c "echo {}; mogrify -format png {}; rm {}" \;
find ./dir1_copy -type f -name "*.jpg" -exec sh -c 'echo $1; convert "$1" "${1%.jpg}.png"; rm $1' _ {} \;
find ./dir1_copy -type f -iname "*.txt" -exec sh -c "echo {}; sed -i 's/\.jpg\"/\.png\"/g' {}" \;
@on-three
on-three / gist:3c9186774b1467b7cdb5
Created June 28, 2014 06:58
Tentative Jojo's Bizarre Adventure: Stardust Crusaders schedule
Anonymous Fri 27 Jun 2014 10:39:26 No.109445289
Daily reminder
Episode 6 (5/9) Dark Blue Moon [Correct]
Episode 7(5/16): Strength [Correct]
Episode 8 (5/23): Ebony Devil [Correct]
Episode 9 (5/30): Yellow Temperance [Correct]
Episode 10 (6/6): The Emperor and the Hanged Man Part 1 [Correct]
Episode 11 (6/13): The Emperor and the Hanged Man Part 2 [Correct]