Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ponychicken on github.
  • I am ponychicken (https://keybase.io/ponychicken) on keybase.
  • I have a public key whose fingerprint is EBC5 7436 CA91 54CA D67F 0C02 116A 204B FA6D 1A2F

To claim this, I am signing this object:

@ponychicken
ponychicken / fix-quotes.js
Last active August 29, 2015 14:13
Fix Wikipedia quotes to typographical quotes
var currentQM = "\u201d";
var toggleQM = {
"\u201c" : "\u201d",
"\u201d" : "\u201c"
};
var skip = 0;
#!/bin/sh
#
# Amazon EC2 user-data file for automatic configuration of IPsec/L2TP VPN
# on a Ubuntu server instance. Tested with 14.04 (Trusty) AND 12.04 (Precise).
# With minor modifications, this script *can also be used* on dedicated servers
# or any KVM- or XEN-based Virtual Private Server (VPS) from other providers.
#
# DO NOT RUN THIS SCRIPT ON YOUR PC OR MAC! THIS IS MEANT TO BE RUN WHEN
# YOUR AMAZON EC2 INSTANCE STARTS!
#
/**
* two.js
* a two-dimensional drawing api meant for modern browsers. It is renderer
* agnostic enabling the same api for rendering in multiple contexts: webgl,
* canvas2d, and svg.
*
* Copyright (c) 2012 - 2013 jonobr1 / http://jonobr1.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@ponychicken
ponychicken / mine-small-fixes.js
Last active August 29, 2015 14:02
mine-small-fixes.js
/**
* two.js
* a two-dimensional drawing api meant for modern browsers. It is renderer
* agnostic enabling the same api for rendering in multiple contexts: webgl,
* canvas2d, and svg.
*
* Copyright (c) 2012 - 2013 jonobr1 / http://jonobr1.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
/**
* two.js
* a two-dimensional drawing api meant for modern browsers. It is renderer
* agnostic enabling the same api for rendering in multiple contexts: webgl,
* canvas2d, and svg.
*
* Copyright (c) 2012 - 2013 jonobr1 / http://jonobr1.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
/**
* two.js
* a two-dimensional drawing api meant for modern browsers. It is renderer
* agnostic enabling the same api for rendering in multiple contexts: webgl,
* canvas2d, and svg.
*
* Copyright (c) 2012 - 2013 jonobr1 / http://jonobr1.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal

Introduction

  • This script lets you set up and use a temporary DigitalOcean droplet to download torrent files.
  • Once downloaded, they can be streamed down to your local machine.
  • This uses transmission-cli for the torrent client, and nginx to serve files.

Setup on Local Machine

  • This assumes that you have a DigitalOcean account and tugboat set up, as well as seedbox-setup.sh present in the current directory.
Make backup of the folder /System/Library/Extensions/AppleRTC.kext (auf Desktop kopieren)
Terminal öffnen (Apfel+Leertaste drücken, dann Terminal eingeben)
Die folgende Zeile kopieren und im Terminal einfügen. Enter drücken. Du musst dann dein Passwort eingeben.
sudo perl -pi -e 's|\x75\x30\x89\xd8|\xeb\x30\x89\xd8|' System/Library/Extensions/AppleRTC.kext/Contents/MacOS/AppleRTC
Then update kernel caches: