Skip to content

Instantly share code, notes, and snippets.

# # # # # # # # # #
# USAGE:
#
# $accelUri = ''
# . '/' . 'internal_google_drive'
# . '/' . $google_drive_file_id
# . '/' . $filename
# . '/' . $google_drive_access_token;
# http_response_code(204);
# header('X-Accel-Redirect: ' . rawurlencode($accelUri));
@ohhdemgirls
ohhdemgirls / illegalhacks.md
Created December 21, 2019 02:46
A neutral reference for those considering illegal hacking

-----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:

#!/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"
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 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
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 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!**

@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 / 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
#!/bin/bash
set -e
set -u
yt_list="$1"
jbs="$2"
if [ ! -f "$yt_list" ]; then
echo "File $yt_list is missing"
exit 1