I hereby claim:
- I am oskarhane on github.
- I am oskar (https://keybase.io/oskar) on keybase.
- I have a public key whose fingerprint is 4069 993D 74AC DF06 D59A 66FB 4FE1 AA79 E870 4033
To claim this, I am signing this object:
/** | |
Name: Node.js UDP server | |
Supported Platforms: Only tested on Linux | |
Date: 2013-03-28 | |
Author: Oskar Hane <oh@oskarhane.com> | |
Website: http://oskarhane.com | |
Purpose: For Blocket's Easter Egg comptetition. A UDP server which replies all requests | |
with a binary representation of the string "$your_ip.$current_unix_timestamp" | |
Usage: | |
1. Install Node.js via Package: https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager |
/** | |
* Author: Oskar Hane | |
* Contact: oh@oskarhane.com | |
* URL: http://oskarhane.com | |
* | |
* Dependenies: simple-xmpp and optimist. Install them via npm. | |
* | |
* Run with params | |
* -u username (e.g. you@domain.com) | |
* -p password |
<?php | |
/* Welcome to Bones :) | |
This is the core Bones file where most of the | |
main functions & features reside. If you have | |
any custom functions, it's best to put them | |
in the functions.php file. | |
Developed by: Eddie Machado | |
URL: http://themble.com/bones/ | |
*/ |
import subprocess | |
import sys | |
import re | |
conf_dir = '/etc/haproxy/conf.d/' | |
command = ["/usr/bin/docker ps | grep " + sys.argv[1]] | |
p = subprocess.Popen(command, stdout=subprocess.PIPE, shell=True) | |
output, err = p.communicate() | |
d_str = output.decode("utf-8") |
#!/usr/bin/python3 | |
# Writter by Oskar Hane | |
import subprocess | |
import sys | |
import re | |
conf_dir = '/etc/nginx/sites-enabled/' | |
command = ["/usr/bin/docker ps | grep " + sys.argv[1]] | |
p = subprocess.Popen(command, stdout=subprocess.PIPE, shell=True) |
phantom = require('phantom') | |
if(!process.argv[2]) { | |
console.log('Usage: node app.js [url]') | |
process.exit(1) | |
} | |
var url = process.argv[2] | |
phantom.create(function(ph){ | |
ph.createPage(function(page) { |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import { getBus } from 'suber' | |
const bus = getBus() | |
// Listen on channel / topic / action type | |
// and toggle the sidebar when something arrives | |
bus.take('TOGGLE_SIDEBAR', () => sidebar.toggle()) | |
// In another part of the app | |
// send something on the 'TOGGLE_SIDEBAR' channel | |
bus.send('TOGGLE_SIDEBAR', null) |
import { getBus, applyReduxMiddleware } from 'suber' | |
import { createEpicMiddleware } from 'redux-observable' | |
import { ajax } from 'rxjs/observable/dom/ajax' | |
// Get the bus | |
const bus = getBus() | |
// Declare the redux-observable middleware | |
// Listen on the 'FETCH_USER' channel and look for github username | |
// in the 'payload' property. |