Skip to content

Instantly share code, notes, and snippets.

View tjstebbing's full-sized avatar
🐝
.go .py .js .vim

Timothy Stebbing tjstebbing

🐝
.go .py .js .vim
View GitHub Profile
xsetwacom list
Wacom Intuos4 8x13 stylus id: 14 type: STYLUS
Wacom Intuos4 8x13 eraser id: 15 type: ERASER
Wacom Intuos4 8x13 cursor id: 16 type: CURSOR
Wacom Intuos4 8x13 pad id: 17 type: PAD
xsetwacom --get "Wacom Intuos4 8x13 stylus" all
Option "Area" "0 13208 65024 40640"
'Button' requires exactly 1 value(s).
SyntaxError: /home/pomke/code/iona/handlers.js: Unexpected token (31:51)
29 | log(msg);
30 |
> 31 | let handler = avatar[sig] || (msg, cb) => {
| ^
32 | return cb('invalid signal');
33 | };
34 |
template = """
These are my inputs:
%s
These are my outputs:
%s
"""
Office-supplies:
Tissues
USB sticks 5
sharpies / thick markers 5
paper for signs / butchers paper?
function prepData(data) {
let out = [];
Object.keys(data).forEach(function(k) {
let o = data[k];
let variants = [];
let first, latest;
let dist = o.distribution;
let total = 0;
Object.keys(o.count).forEach(function(c) {
/* Got an odd bug using duckduckgo searching for "lucifer's hammer"
* turns out search results from wikipedia are not escaped. DDG loads:
* https://duckduckgo.com/t.js?q=lucifer%27s%20hammer&t=A&l=au-en&p=1&s=0&a=ffab&ct=AU&sp=0
* which contains:
*/
nrj('/f.js?u=https://en.wikipedia.org/wiki/Lucifer's_Hammer');
// ^ note the unescaped wikipedia URL
/* potentially you could create a wikipedia page titled "somebank';window.location='somebank.fishingsite..."
<div>
<div class='list'>
<div class='item'>abc</div>
<div class='item'>abc</div>
<div class='item'>abc</div>
<div class='item'>abc</div>
</div>
<img src='http://google.com/logo.png'/>
</div>
var path = require('path');
var fs = require('fs');
module.exports = function(context) {
this.cachable(true);
//this.addDependency(path);
}
module.exports.pitch = function(remainingRequest, precedingRequest, data) {
var self = this;
{ '0': 92,
'1': 86,
'2': 114,
'3': 104,
'4': 94,
'5': 98,
'6': 91,
'7': 104,
'8': 106,
'9': 94,
-- Create 100 schemas shard_001 - shard_100
DO $shards$
BEGIN
FOR i IN 1..100 LOOP
DECLARE shardID TEXT := CONCAT('shard_', to_char(i, 'FM000'));
EXECUTE 'CREATE SCHEMA IF NOT EXISTS $1 AUTHORIZATION iflix;'
INTO c USING shardID;
END LOOP;
END $shards$;