Skip to content

Instantly share code, notes, and snippets.

@flexd
flexd / zfs_health.sh
Last active January 22, 2016 09:55
zfs_health.sh script taken from https://calomel.org/zfs_health_check_script.html and updated with the ZFSOnLinux Date format I got on my Debian Jessie machine
#! /bin/sh
#
# Calomel.org
# https://calomel.org/zfs_health_check_script.html
# FreeBSD ZFS Health Check script
# zfs_health.sh @ Version 0.17
# Check health of ZFS volumes and drives. On any faults send email.
@flexd
flexd / -
Created October 13, 2015 10:50
woop

Keybase proof

I hereby claim:

  • I am flexd on github.
  • I am flexd (https://keybase.io/flexd) on keybase.
  • I have a public key whose fingerprint is D9E5 4D8C 7CDB 6E83 06E6 EA72 0077 1467 DA23 3215

To claim this, I am signing this object:

SELECT it2."typeName", it2."typeID",
coalesce(dta2."valueInt",dta2."valueFloat") multiplier,
coalesce(dta3."valueInt",dta3."valueFloat") me,
coalesce(dta4."valueInt",dta4."valueFloat") te,
coalesce(dta5."valueInt",dta5."valueFloat") runs
FROM "invTypes"
JOIN "industryActivityMaterials" iam ON (iam."materialTypeID"="invTypes"."typeID" and iam."activityID"=8 and "groupID"=716)
JOIN "industryActivityProducts" iap ON (iam."typeID"=iap."typeID")
JOIN "dgmTypeAttributes" dta ON (dta."typeID"="invTypes"."typeID" AND dta."attributeID"=1115)
JOIN "invTypes" it2 ON (it2."groupID"=dta."valueInt")
@flexd
flexd / ld28.dart
Created December 16, 2013 00:12
Notch's ld28 thing at like 01:45:00 into the stream. Bugged for me :-D
library ld28;
import 'dart:html';
import 'dart:math' as Math;
import 'dart:web_gl' as WebGL;
import 'dart:typed_data';
import 'package:vector_math/vector_math.dart';
part 'shader.dart';
@flexd
flexd / bot.js
Created December 30, 2012 23:39
var irc = require('irc');
var express = require('express');
var app = express.createServer();
var net = require('net');
COMMAND_PREFIX="!";
admins = ['flexd', 'DikkeDikke', 'Rolsen'];
//var ts = net.connect({host: "hobby.host1.no", port: 10011});
//ts.on('data', function(data) {
// console.log(data.toString());
<div id="queue">
<ul class="queue">
{{#each q in controller}}
{{#with q}}
<li>
<h2>{{fullName}}</h2>
</li>
{{/with}}
{{/each}}
</ul>
var spawn = require('child_process').spawn;
var util = require('util');
var EventEmitter = require('events').EventEmitter;
function CardReader() {
var reader;
var lastUID = "";
var me = this;
@flexd
flexd / api.js
Created November 29, 2012 16:20
var spawn = require('child_process').spawn;
var reader;
var util = require('util');
var csv = require('ya-csv');
var restify = require('restify');
var csvreader = csv.createCsvFileReader('folk.csv', {
'separator': ';',
'quote': '"',
hello