Skip to content

Instantly share code, notes, and snippets.

View skopp's full-sized avatar

Rashaad Essop skopp

View GitHub Profile
curl -s http://USER:[email protected]/export/
require 'pinboard'
require 'json'
pinboard = Pinboard::Client.new token: 'your:api:token'
readability = JSON.parse(File.read('path/to/your/readability/JSON/file'))
readability.each |article| do
pinboard.add({
:url => article['article__url'],
God.watch do |w|
w.uid = "git"
w.gid = "git"
w.name = "camo"
w.pid_file = "/data/camo/tmp/camo.pid"
w.interval = 30.seconds
w.env = {
"PORT" => '8080',
"CAMO_KEY" => '0x24FEEDFACEDEADBEEFCAFE'
@skopp
skopp / phpLive.php
Last active December 20, 2015 03:39
phpLive can be copied and pasted below, or downloaded as a zip file. The zip file contains more than just the phpLive code, it also comes with: GPL 3.0, a few plugins, an extensions folder, and some examples. (phpLive.org) File Information phpLive Version 1.0.0-alpha Number of lines 2,664 Number of methods 151 Filesize 93.32KB Modified 2012-08-0…
<?php
/*
* phpLive PHP Library v1.0.0-alpha
* http://phplive.org/
*
* To see the documentation, visit:
* http://phplive.org/docs
*
* To report/view bugs, visit:
* http://bugs.phplive.org
<?php
$longUrl = 'http://www.your-log-url-here.......';
$apiKey = 'Your Google Api Key here';
//You can get API key here : http://code.google.com/apis/console/
$postData = array('longUrl' => $longUrl, 'key' => $apiKey);
$jsonData = json_encode($postData);
$curlObj = curl_init();
class MainView extends JView
constructor:->
super
@terminal = new KDView
cssClass: "terminal"
@terminal.$().css
width: "100%"
height: 300
@skopp
skopp / README.md
Last active December 18, 2015 23:39
whiskers js

whiskers.js

Telephasic 1.0 by HTML5 UP
html5up.net | @n33co
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
This is Telephasic, a brand new site template for HTML5 UP. It features a sharp, modern
design inspired by omfg everything, and makes good use of SVGs to ensure stuff looks
nice and crispy on retina displays.
A quick note before you jump in: this template is built VERY different to my other stuff
var gistPrefix = 'https://gist.github.com/',
// Cache document.write so that it can be restored once all Gists have been
// embedded.
cachedWrite = document.write,
body = $('body'),
// Map each p.gist to an object that contains the paragraph to be replaced
// and the Gist's identifier.
gists = $('a.gist').map(function(n, a) {
a = $(a);
var href = a.attr('href');