This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# m3ugen.sh: M3U video playlist generator | |
# Recursively searches a directory for video files | |
# and adds them to the specified m3u file. | |
# | |
# Requires `realpath` (sometimes `grealpath`) from coreutils. | |
# by phracker <https://github.com/phracker> | |
# | |
# m3ugen.sh -d <searchdir> -f <m3ufile> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# | |
# tracker_modify.pl 0.01 | |
# Add/delete trackers recursively from all torrents. | |
# Free to copy and mutilate any way you like :) | |
# | |
# Originally from http://publicbt.com/tracker_modify.pl | |
sub usage { | |
print <<EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# https://github.com/phracker | |
# | |
# AutoDL-Irssi Init Script | |
# Tested on Debian 7 (Wheezy) | |
# Instructions: | |
# - Install / configure irssi + autodl-irssi (duh) | |
# - Save this script as /etc/init.d/autodl-irssi | |
# - `chmod +x /etc/init.d/autodl-irssi` | |
# - `insserv autodl-irssi` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* anonym.to's anonymize.js, deobfuscated and hacked to anonymize both http and https links. | |
* To use, follow the instructions located at http://anonym.to/, but substitute this | |
* anonymize.js for their anonymize.js. | |
* Welcome to 2009. | |
*/ | |
var protected_links = ""; | |
var a_to_va = 0; | |
var a_to_vb = 0; | |
var a_to_vc = ""; | |
function auto_anonymize() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Usage: encodejs.py <fileToEncode> | |
# | |
# Encodes a js file using percent encoding. | |
# Resulting file calls unescape() and eval() to decode and execute the encoded string. | |
# | |
# Discovered while trying to get anonym.to's anonymize.js (http://js.anonym.to/anonym/anonymize.js) | |
# to anonymize https links as well as http. Thought it was a goofy and unnecessary | |
# obfuscation strategy. So I wrote up an encoder. | |
# Modified anonymize.js script at https://gist.github.com/phracker/b952b618e19a01a623de |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
========================================== ========================================== | |
TMUX COMMAND WINDOW (TAB) | |
========================================== ========================================== | |
List tmux ls List ^b w | |
New -s <session> Create ^b c | |
Attach att -t <session> Rename ^b , <name> | |
Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
Kill kill-session -t <session> Close ^b & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
import json | |
import sqlite3 | |
JSON_FILE = "some.json" | |
DB_FILE = "some.db" | |
traffic = json.load(open(JSON_FILE)) | |
conn = sqlite3.connect(DB_FILE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$1" = "-h" -o "$1" = "--help" ]; then cat <<EOF | |
appify v3.0.0 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a shell script. | |
Appify takes a shell script as its first argument: | |
`basename "$0"` my-script.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget. | |
### You can download all the binaries one-shot by just giving the BASE_URL. | |
### Script might be useful if you need Oracle JDK on Amazon EC2 env. | |
### Script is updated for every JDK release. | |
# | |
### Features:- | |
# 1. Resumes a broken / interrupted [previous] download, if any. | |
# 2. Renames the file to a proper name with including platform info. | |
# 3. Downloads the following from Oracle Website with one shell invocation. |
OlderNewer