I hereby claim:
- I am oz on github.
- I am ephoz (https://keybase.io/ephoz) on keybase.
- I have a public key whose fingerprint is 2CC4 C75E 9AB8 2328 D7E9 7144 92CC 3FC3 57F0 D893
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
# | |
# What: | |
# | |
# A memo of how ri_cal should be used to deal with timezones. It converts | |
# ambulante.com.mx's schedule to ICS format too. | |
# | |
# Deps: | |
# |
#!/bin/sh | |
# | |
# vpnhost.sh - Add hosts/IP addresses to route through your VPN. | |
# | |
# - Routed hosts are not persisted between restarts of your VPN software. | |
# - The VPN's gateway route is hardcoded to be on the tun0 interface. | |
# - Use of sudo is hard-coded too. | |
# - Only works on OSX | |
VPN_IFACE=tun0 |
#!/bin/sh | |
time_here=`date` | |
export TZ='UTC' | |
utc_time=`date` | |
export TZ='Europe/Berlin' | |
time_in_germany=`date` |
#!/usr/bin/env ruby | |
# | |
# change.rb -- currency conversions on the CLI | |
# | |
# Requirements: | |
# | |
# gem install nas-yahoo_stock moneta slop | |
# | |
# Getting started: | |
# |
package main | |
import ( | |
"errors" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"net/url" | |
"os" |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require 'time' | |
require 'dbus' | |
main = DBus::Main.new | |
trap("INT") { | |
puts "Quitting..." | |
main.quit |
/** | |
* A simple Tofu example to speak JSON. | |
* | |
* Compile: | |
* If you make-installed Tofu, skip the -I/-L flags. If not, export | |
* TOFU=/wherever/you/git-cloned/and/built/Tofu | |
* | |
* $ gcc hello.c -ltofu -ljansson -I$TOFU/include -L$TOFU/src/.libs -o hello | |
* | |
* Run: |
var http = require('http') | |
, url = require('url') | |
, feedme = require('feedme') | |
, opts = url.parse("http://wtf.cyprio.net/atom/1"); | |
var parser = new feedme(true); | |
parser.on('end', function() { | |
var feed = parser.done(); | |
console.log("Parsing ended... " + feed.title); | |
}); |
" Bookmark page with Pinboard.in | |
com -nargs=0 pin execute "open " + function(doc) { if(doc.getSelection){s=doc.getSelection();}else{s='';}; return 'https://pinboard.in/add?next=same&url='+encodeURIComponent(doc.location.href)+'&description='+encodeURIComponent(s)+'&title='+encodeURIComponent(doc.title) }(content.document) | |
" Read page later with Instapaper.com | |
com -nargs=0 readlater javascript (function(d){var z=d.createElement('scr'+'ipt'),b=d.body;try{if(!b)throw(0);d.title='(Saving...)'+d.title;z.setAttribute('src','http://www.instapaper.com/j/CJFRXrpfV0rU');b.appendChild(z);}catch(e){alert('Please wait until the page has loaded.');}void(0)})(content.document) | |
" Have more? :) |
I hereby claim:
To claim this, I am signing this object: