Skip to content

Instantly share code, notes, and snippets.

View rxw1's full-sized avatar
☠️

rxw1

☠️
  • Upper Silesia, Germany
View GitHub Profile
@rxw1
rxw1 / generate-cv.sh
Last active June 7, 2016 19:06
GitHub CV Generator
# 87649 ~ : which update-cv github-credentials
update-cv () {
github-credentials | awk '
/html_url/{print $0};
!/(_url|url|false|User|id|null)/{print}
' | ssh uni "cat - > public_html/cv.txt"
}
github-credentials () {
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>DSDT</key>
<dict>
<key>Debug</key>
<true/>
@rxw1
rxw1 / cword.md
Created May 12, 2016 20:19
How to help your body to remove cancer before it kills you -- by Jade Allen

Smoke Fulvic acid, and Baking Soda via vaporizer. Eat alkaline foods, and use minerals, minerals, minerals, like they are going ouuta style. Magnesium gives your blood conductivity, selenium and silica will give cellular regeneration, and sodium bicarbonate will kill any cancer "www.cancerisafungus.com".... Citrus juice for electolites (we are made up of electricity).. and use sundried celtic sea salt in your water, as it will assist mineralize and alkalize the blood, the bones, the bowels, the lymph. Citric acid mixed in orange juice, then add baking soda to get a fizz, drink the fizz, it will down regulate all mould, yeast and fungus down to a double spore stage... "transmitting bad cells into good ones"... also all grain, ditomic sugar "cane", meat "undigestible, not designed for our intestinal tract, its too long to be carnivore. Check it out..." if you cant eat it, dont put it on your skin. If you cant put it in your skin dont eat it. Modulate your mouth to your anus "immune system" so that no parasite

@rxw1
rxw1 / stdin.rb
Last active May 5, 2016 16:59
Read from stdin
#!/usr/bin/ruby
# http://stackoverflow.com/questions/273262/best-practices-with-stdin-in-ruby
puts ARGF.read
@rxw1
rxw1 / middleware.js
Created February 11, 2016 03:27 — forked from cahnory/middleware.js
koa-webpack-middleware
import connect from 'koa-connect';
import compose from 'koa-compose';
import webpack from 'webpack';
import webpackDev from 'webpack-dev-middleware';
import webpackHot from 'webpack-hot-middleware';
export default function (config = {}) {
let compiler = webpack(config);
return compose([
@rxw1
rxw1 / webpackDevMiddleware.js
Last active February 10, 2016 02:19
webpackDevMiddleware, webpackHotMiddleware
// import webpack from 'webpack';
// var compiler = webpack(config.webpack());
// const webpackDevMiddleware = (next) =>
// function *() {
// return require("webpack-dev-middleware")(compiler,
// config.webpackDev(port));
// yield next;
// }
@rxw1
rxw1 / cycle-http-driver.js
Created February 9, 2016 23:51 — forked from bouzuya/cycle-http-driver.js
cycle-http-driver.js (node-fetch)
import fetch from 'node-fetch';
import Rx from 'rx';
function makeHTTPDriver() {
var requests = {};
return function(request$) {
return request$
.filter(request => {
if (typeof request === 'undefined' || request === null) return false;
const { id } = request;
# search chrome history
function chrome-history () {
tmp="/tmp/history-$(now s)"
hist="/Users/$USER/Library/Application Support/Google/Chrome/Default/History"
sql="select urls.id, urls.url, urls.title, urls.visit_count, \
urls.typed_count, urls.last_visit_time, urls.hidden, urls.favicon_id, \
visits.visit_time, visits.from_visit, visits.visit_duration, \
visits.transition, visit_source.source FROM urls JOIN visits ON urls.id = \
visits.url LEFT JOIN visit_source ON visits.id = visit_source.id;"
@rxw1
rxw1 / harSummarize.js
Created September 7, 2015 22:32
Summarize Human Activity Recognition (HAR) data
#!/Users/asdf/.local/opt/node/bin/node
var har2 = [
{ ts: 1000, tag: 'a' },
{ ts: 1001, tag: 'a' },
{ ts: 1002, tag: 'a' },
{ ts: 1003, tag: 'b' },
{ ts: 1004, tag: 'b' },
{ ts: 1005, tag: 'c' },
{ ts: 1006, tag: 'd' },
@rxw1
rxw1 / dbpedia.js
Created September 7, 2015 20:56
Query dbpedia
import fetch from 'node-fetch';
let prefix = `
PREFIX : <http://dbpedia.org/resource/>
PREFIX dbpedia: <http://dbpedia.org/>
PREFIX dbpedia2: <http://dbpedia.org/property/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>