Skip to content

Instantly share code, notes, and snippets.

@ohhdemgirls
ohhdemgirls / illegalhacks.md
Created Dec 21, 2019
A neutral reference for those considering illegal hacking
View illegalhacks.md

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512

A neutral reference for those considering illegal hacking

If you’re interested in computers, you’ve probably considered doing illegal hacking or other blackhat or hacktivist activities. If you’re interested in computer security, you’ve definitely considered it.

Unfortunately, there are not many good sources of advice for this issue. This guide attempts to thoroughly explore the question. We do not make any recommendations one way or another, we just present information so that readers are able to make more informed decisions.

Contents:

View backupuser.sh
#!/bin/sh
set -x
USER="$1"
API_URL="https://api.github.com/users/${USER}/repos?type=owner"
DATE=$(date +"%Y%m%d")
TEMP_DIR="github_${USER}_${DATE}"
BACKUP_FILE="${TEMP_DIR}.tgz"
View drive_get.py
import requests
from tqdm import tqdm
def download_file_from_google_drive(id, destination):
def get_confirm_token(response):
for key, value in response.cookies.items():
if key.startswith('download_warning'):
return value
return None
@ohhdemgirls
ohhdemgirls / arti.py
Last active Nov 12, 2018
Download images from the art institute of chicago.
View arti.py
#!/usr/bin/env python3
import json
import re
import sys
import time
import urllib
from parsel import Selector
View gist:9d66303f4cdcc0ecd74a14204cae8ced
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 / yify.md
Created Nov 3, 2017 — forked from kuntau/yify.md
YIFY's Quality Encoding
View yify.md

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!**

@ohhdemgirls
ohhdemgirls / vpn.md
Created Oct 9, 2017 — forked from joepie91/vpn.md
Don't use VPN services.
View vpn.md

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 / threaded_httpd.py
Created Aug 3, 2017
Multi-threaded python httpd
View threaded_httpd.py
#!/bin/env python
import SocketServer
import BaseHTTPServer
import SimpleHTTPServer
class ThreadingSimpleServer(SocketServer.ThreadingMixIn,
BaseHTTPServer.HTTPServer):
pass
View para_yt.sh
#!/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 / ffmpeg-html5
Created Jan 14, 2017 — 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.
View ffmpeg-html5
# 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