Skip to content

Instantly share code, notes, and snippets.

View geoah's full-sized avatar
🦄
Arghxd

George Antoniadis geoah

🦄
Arghxd
View GitHub Profile
@geoah
geoah / kill_zombies
Created December 5, 2014 10:27
EdgeOS kill pptp zombie connections
#!/usr/bin/perl
# http://community.ubnt.com/t5/EdgeMAX/PPPoE-Server-static-ip-issues/td-p/489341
use strict;
use warnings;
use Net::Ping;
my $sess_dir = "/opt/vyatta/etc/ravpn/sessions";
opendir(SDIR, "$sess_dir");
@geoah
geoah / filebot.md
Last active August 29, 2015 14:02
Filebot

Filebot

Formats

Tv / Anime

{n.ascii().replaceAll(/[:!?,.]/,'').replaceAll(/[`´‘’ʻ]/, "'").lowerTrail().space('.')}/{episode.special ? 'Special/' : "Season."+s+"/"}{n.ascii().replaceAll(/[:!?,.]/,'').replaceAll(/[`´‘’ʻ]/, "'").lowerTrail().space('.')}.{"S"+s.pad(2)}E{e.pad(2)}{'.'+resolution}{'.'+vc}{'.'+ac}{'['+group+']'}{'['+crc32+']'}

Movies

@geoah
geoah / app.coffee
Created December 25, 2012 11:10
ExpressJs Issue 1277 Test case - https://github.com/visionmedia/express/issues/1277 npm install express jade npm install coffee-script -g coffee app.coffee http://localhost:1014/
# -------------------------------------------------------------------------
# FIlE app.coffee
# -------------------------------------------------------------------------
express = require 'express'
app = express()
server = app.listen 1014
app.set 'views', __dirname + '/views'
app.set 'view engine', 'jade'
@geoah
geoah / __readme.md
Created November 23, 2012 19:04 — forked from jimeh/__readme.md
Let's not localize programming languages. Please >_<

Let's not localize programming languages. Please >_<

Feel free to fork and expand and/or add more languages as an example to why this would be horrible, and I'll add them here :)