Skip to content

Instantly share code, notes, and snippets.

View au5ton's full-sized avatar
😶‍🌫️
Working on closed-source stuff

Austin Jackson au5ton

😶‍🌫️
Working on closed-source stuff
View GitHub Profile
@au5ton
au5ton / Settings.md
Last active June 28, 2017 11:18
Atom config for Windows

Settings -> Editor

  • Font Family = Roboto Mono
  • Tab Length = 4

Settings -> Packages

  • atom-clock
  • auto-indent
  • autoclose-html
  • color-picker
  • file-icons
@au5ton
au5ton / mktor4dir.sh
Last active May 9, 2017 04:37
Creates torrent files for every folder in the current directory with provided announce_url in the first argument
#!/bin/bash
ANNOUNCE_URL=$1
if [ -z "$ANNOUNCE_URL" ]; then
echo "Announce url is undefined, please provide it as an argument";
exit 1;
else
echo "Provided announce url is: \`"$ANNOUNCE_URL"\`";
fi
@echo off
forfiles /s /m *.flac /c "cmd /c ffmpeg -i @path -b:a 320k @path.mp3"
@au5ton
au5ton / both.sh
Created November 29, 2016 05:07
crummy automatic deploy system for a directory of node apps, running on a crontab.
#!/bin/sh
# Do both
cd `dirname $0`
./pull.sh
./deploy.sh
@au5ton
au5ton / keybase.md
Created August 24, 2016 03:37
keybase.md

Keybase proof

I hereby claim:

  • I am au5ton on github.
  • I am austinj (https://keybase.io/austinj) on keybase.
  • I have a public key ASCNU5kpoAXfi0B2cB-gwWNs7PY6zRtH6SmbcWgpiuS0igo

To claim this, I am signing this object:

@au5ton
au5ton / package.json
Created August 8, 2016 17:16
Forever counter
{
"name": "forever-counter",
"version": "1.0.0",
"description": "",
"main": "prime.js",
"dependencies": {
"big-integer": "^1.6.15"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
@au5ton
au5ton / README.md
Last active April 22, 2016 03:14
sample.json

To match the category code with the actual subcategory go to https://thepiratebay.cr/browse and hover over the subcategories and see what the link is. For example, audiobooks create this link. Codes that start with '1' are audio, and the next two numbers are subcategory identifiers ('02' for audiobooks).

There are a ton other and too many to list that vary depending on the TPB mirror you're referring to

@au5ton
au5ton / pump.js
Created April 22, 2016 02:54
Pumping out JSON objects
var fs = require('fs');
var bytes = require('bytes');
var sizeof = require('object-sizeof');
var readline = require('readline');
var exec = require('child_process').exec;
var filePath = 'tpb2.json';
var buf = '';
var cat = 0;
var total = 0;
//Ported from pCalculator-classic (written in C++)
function ClassifyTriangle(a, b, c)
{
//ANGLES
var result = "";
var abResult = Math.sqrt(Math.pow(a,2)+Math.pow(b,2));
if(abResult == c)
{
result += "RIGHT";