Skip to content

Instantly share code, notes, and snippets.

@notionparallax
notionparallax / exampleData.json
Last active September 21, 2016 12:04
Markov generator for the things I do in my day.
[
["Lobby", "M Toilet", "M Toilet", "M Toilet", "Shower", "Out", "Shower", "Shower", "Coffee machine", "V meeting N", "V meeting N", "V meeting N", "V meeting N", "V meeting N", "V meeting N", "V meeting N", "V meeting N", "V meeting N", "Coffee machine", "Model area", "Model area", "Model area", "Model area", "Model area", "Coffee machine", "My Desk", "My Desk", "My Desk", "My Desk", "My Desk", "V meeting S", "V meeting S", "V meeting S", "V meeting S", "Coffee machine", "Coffee machine", "My Desk", "My Desk", "M Toilet", "Shower", "Coffee machine", "Hug", "Hug", "Hug", "My Desk", "Resourse Bay", "Model area", "Coffee machine", "Out", "Out", "Out", "Out", "Out", "Out", "Lobby", "Reception", "Hug", "Hug", "Hug", "Hug", "My Desk", "My Desk", "My Desk", "Coffee machine", "My Desk", "Coffee machine", "Model area", "Model area", "Model area", "Coffee machine", "Out", "Out", "Out", "Out", "Out", "Out", "Out", "Shower", "Shower", "Shower", "My Desk", "My Desk", "My Desk", "My Desk", "My Desk", "M Toilet", "M To
var rawParser = bodyParser.raw({type: '*/*'});
app.post('/zipped', rawParser, function(req, res) {
console.log('here we go');
console.log('body', req.body);
console.log('req body len', req.body.length);
console.log('body.toString',req.body.toString() );
// console.log('body.toJSON', req.body.toJSON() );
var theData = req.body.toJSON();
var zlib = require("zlib");
var rawParser = bodyParser.raw({type: '*/*'});
app.post('/zipped', rawParser, function(req, res) {
// console.log('here we go');
// console.log('body', req.body);
// console.log('body', req.headers);
// console.log('body type', typeof req.body);
// console.log('req body len', req.body.length);
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>Training data stickers</title>
</head>
<body>
<style>
text{
font-size:57.83px;
;;
;; Domain: notionparallax.co.uk
;; Exported: 2016-11-04 05:28:50
;;
;; This file is intended for use for informational and archival
;; purposes ONLY and MUST be edited before use on a production
;; DNS server. In particular, you must:
;; -- update the SOA record with the correct authoritative name server
;; -- update the SOA record with the contact e-mail address information
;; -- update the NS record(s) with the authoritative name servers for this domain.

I've jsut got my first mechanical keyboard. I want to set it up so that it has the same layout as my android keyboard, the theory being that it's probably easier to learn, even if it does seem a bit odd.

I've been using keyboard-layout-editor.com to fiddle with the planned layout, here but then when it comes to actually programming the keyboard it looks pretty manual.

I started a quick stab at something to help speed it up, but I wondered if I was reinventing the wheel. Has anyone already been down this road?

I've just got my first mechanical keyboard. I want to set it up so that it has the same layout as my android keyboard, the theory being that it's probably easier to learn, even if it does seem a bit odd.

I've been using keyboard-layout-editor.com to fiddle with the planned layout, here but then when it comes to actually programming the keyboard it looks pretty manual.

I started a quick stab at something to help speed it up, but I wondered if I was reinventing the wheel. Has anyone already been down this road?

cd
git clone https://github.com/atom/atom.git
sudo apt-get -y install build-essential git libgnome-keyring-dev fakeroot rpm libx11-dev libxkbfile-dev
sudo npm install -g node-gyp
cd atom
script/build --install
cd ..
cd /media/sf_projects/git/programming---a-new-hope
@notionparallax
notionparallax / dump-eeprom.txt
Last active January 22, 2017 21:43
The results from various dumps from my keyboard.
00000000: edfe 0000 0000 00ff 0123 0020 ffff ffff .........#. ....
00000010: 92c4 2ca1 03d0 0000 0000 0000 0000 0000 ..,.............
00000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000050: 0000 2914 1a08 1517 1c18 0c12 132a 2b04 ..)..........*+.
00000060: 1607 090a 0b0d 0e0f 0028 e100 1d1b 0619 .........(......
00000070: 0511 1038 52e5 e0e3 e200 2cc0 0000 0050 ...8R.....,....P
00000080: 514f 351e 1f20 2122 2324 2526 2701 393a QO5.. !"#$%&'.9:
00000090: 3b3c 494a 4b2f 302e 002d 0100 3d3e 3f4c ;<IJK/0..-..=>?L
@notionparallax
notionparallax / setYourselfBeforeYouWreckYourself.sh
Last active February 1, 2017 20:47
An attempt to make changing configuration of a virtual machine easy.
#!/bin/bash
clear
toilet " CODE1161 " --metal --font future
echo ""
toilet "Let's get started!" --metal --font future
echo ""
echo "We need to make this computer be YOURS"
echo "We need a name for you and your computer, make it short or it'll take up a lot of space."
echo "My computer is called um and my name is ben, so I get ben@um:~$ as my command prompt."
echo ""