Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#Usage: ./imgrush.sh $(cat cats.txt)
echo -e "\e[91mImgrush all the cats!!!\e[0m"
for f in "$@"; do
echo -ne "\e[34mUploading:\e[0m" $f
url="https://imgrush.com/api/upload/url"
out=$(curl -s -F "url=$f" "$url")
hash=$(echo $out |sed -nre 's#.*"hash": "([^"]+)".*#\1#p')
#!/usr/bin/env ruby
# gem install tumblr_client
# use 'tumblr' command to generate security credentials
# fill in security info from the generated file at ~/.tumblr
# fill in the source directory and destintion directory
# fill in blogname
# script will upload a file then move it to the destination directory
require 'rubygems'
require 'tumblr_client'
#!/bin/bash
# eroshare.com/igowild.com downloader
# Usage ./eroshare.sh https://eroshare.com/jhocqntr
for LINK in "$@" ;
# download albums & videos
do if [ $(echo "$LINK" | grep "eroshare.com/[A-Za-z0-9]\|igowild.com/[A-Za-z0-9]\|") ]
then URL=$(echo "$LINK" | cut -d'/' -f4) ;
TITLE=$(curl -Ls "$LINK" | grep "<title>.*</title>\|twitter:title\|og:title" | cut -d'"' -f4 | cut -d'>' -f2 | cut -d'<' -f1 | uniq | paste -sd ' ' | sed 's|^|-|') ;
USER=$(curl -Ls "$LINK" | grep -i "avatar avatar-small" | cut -d'"' -f2 | sed "s|\/u\/||g;s|\ ||g") ;
@ohhdemgirls
ohhdemgirls / ffmpeg-html5
Created January 14, 2017 00:49 — forked from yellowled/ffmpeg-html5
Convert videos to proper formats for HTML5 video on Linux shell using ffmpeg. Will probably convert this to a bash script later, but for the time being, here's some examples. Not sure there have actually sensible dimensions and bitrates for web video.
# webm
ffmpeg -i IN -f webm -vcodec libvpx -acodec libvorbis -ab 128000 -crf 22 -s 640x360 OUT.webm
# mp4
ffmpeg -i IN -acodec aac -strict experimental -ac 2 -ab 128k -vcodec libx264 -vpre slow -f mp4 -crf 22 -s 640x360 OUT.mp4
# ogg (if you want to support older Firefox)
ffmpeg2theora IN -o OUT.ogv -x 640 -y 360 --videoquality 5 --audioquality 0 --frontend
#!/bin/bash
set -e
set -u
yt_list="$1"
jbs="$2"
if [ ! -f "$yt_list" ]; then
echo "File $yt_list is missing"
exit 1
@ohhdemgirls
ohhdemgirls / threaded_httpd.py
Created August 3, 2017 01:54
Multi-threaded python httpd
#!/bin/env python
import SocketServer
import BaseHTTPServer
import SimpleHTTPServer
class ThreadingSimpleServer(SocketServer.ThreadingMixIn,
BaseHTTPServer.HTTPServer):
pass
@ohhdemgirls
ohhdemgirls / vpn.md
Created October 9, 2017 19:58 — forked from joepie91/vpn.md
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

(A Russian translation of this article can be found here, contributed by Timur Demin.)

Why not?

@ohhdemgirls
ohhdemgirls / yify.md
Created November 3, 2017 20:46 — forked from kuntau/yify.md
YIFY's Quality Encoding

For those that want to keep the YTS going (No, IDGAF about people that don't care for YTS quality) get HandbrakeCLI https://handbrake.fr/downloads... and use the following settings:

user@user:~$HandBrakeCLI -i /file/input.mp4 -o /file/out.mp4 -E fdk_faac -B 96k -6 stereo -R 44.1 -e x264 -q 27 -x cabac=1:ref=5:analyse=0x133:me=umh:subme=9:chroma-me=1:deadzone-inter=21:deadzone-intra=11:b-adapt=2:rc-lookahead=60:vbv-maxrate=10000:vbv-bufsize=10000:qpmax=69:bframes=5:b-adapt=2:direct=auto:crf-max=51:weightp=2:merange=24:chroma-qp-offset=-1:sync-lookahead=2:psy-rd=1.00,0.15:trellis=2:min-keyint=23:partitions=all

Reason to use CLI over GTK has to do with lack of support for advanced settings for Handbrake GTK

** Don't Re-encode already shitty encodes...get good source!**

udp://public.popcorn-tracker.org:6969/announce
http://182.176.139.129:6969/announce
http://5.79.83.193:2710/announce
http://91.218.230.81:6969/announce
udp://tracker.ilibr.org:80/announce
@ohhdemgirls
ohhdemgirls / arti.py
Last active November 12, 2018 08:35
Download images from the art institute of chicago.
#!/usr/bin/env python3
import json
import re
import sys
import time
import urllib
from parsel import Selector