Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am k3rn on github.
  • I am kern (https://keybase.io/kern) on keybase.
  • I have a public key whose fingerprint is E3AE 48EB 463F B2FE DF6A 4678 D13D F6B1 E0A6 AB42

To claim this, I am signing this object:

sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/PENDRIVE --applicationpath /Applications/Install OS X Mavericks.app
#!/usr/bin/env ruby
class Calculis
def calcDelta(a,b,c)
delta = b*b-(4*a*c)
return delta;
end
def calc(a,b,c)
delta = calcDelta(a,b,c)
if delta < 0
<?php
$url = '';
$content = simplexml_load_file($url);
$series = Array('Fringe','Chuck','Doctor Who 2005','Game Of Thrones','House','How I Met Your Mother','Sons of Anarchy','The Big Bang Theory','Alphas','Thundercats','Homeland');
foreach($content->channel->item as $entry) {
foreach ($series as $serie) {
$eps = '^'.$serie.'*720p[^BluRay]';
if (ereg($eps,$entry->title)) {
$output = str_replace(' ','',$entry->title);
$wget = 'wget --no-verbose ' . $entry->link . ' --output-document=/home/kern/.torrents/'. $output;
#!/bin/bash
###
feedurl='' #url do feed do teu tracker
series=("American.Horror.Story" "The.X.Factor") #aqui uma array com as series
dir='' #diretorio onde o teu cliente de torrent esta escutando
##
mkdir -p /tmp/torresmos/
cd /tmp/torresmos
wget $feedurl -O feed.xml -o /dev/null;