Skip to content

Instantly share code, notes, and snippets.

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.mail-awstats;
package = pkgs.awstats;
domainsOpts = {name, config, ...}: {
options = {
domain = mkOption {

Keybase proof

I hereby claim:

  • I am griff on github.
  • I am nibsoar (https://keybase.io/nibsoar) on keybase.
  • I have a public key ASCSvIuA2mbnQ-CpjqeUcK1uBsIvDJT0nH_cOmh8DpAMCQo

To claim this, I am signing this object:

@griff
griff / core.cljs
Created January 13, 2016 15:34
First transaction render
(ns om-tutorial.core
(:require [goog.dom :as gdom]
[om.next :as om :refer-macros [defui]]
[om.dom :as dom]))
(enable-console-print!)
(def init-data
{:list/one {:modal {:visible false}
:list [{:name "John" :points 0 :manager [:person/by-name "Jeff"] :employees []}
@griff
griff / test.rs
Created September 13, 2015 08:38
struct EventKey {
event_id: u64
}
impl ToMdbValue for EventKey {
fn to_mdb_value(&self) -> MdbValue {
let mut key : Vec<u8> = "events:".as_bytes().to_vec();
let mut buf = [0; 8];
BigEndian::write_u64(&mut buf, self.event_id);
for n in &buf {
@griff
griff / Gemfile
Last active August 29, 2015 14:14
jbundler java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DERBoolean test
source 'https://rubygems.org/'
ruby '1.9.3', engine: 'jruby', engine_version: '1.7.19'
gem 'trinidad'
gem 'httparty'
gem 'sinatra'
gem 'jbundler'
@griff
griff / paper.sh
Created February 14, 2014 23:18
Small script to convert a GPG secret key to a data matrix pdf
# Generates key-aa, key-ab, ...
gpg --export-secret-key $1 | paperkey --output-type raw | split -b 1500 - key-
# Convert each of them to a PNG image
for K in key-*; do
dmtxwrite -e 8 $K > $K.png
done
montage key-*.png -page A4 -tile 2x -geometry +5+5 master-secret-key.pdf
@griff
griff / vagrant-run.log
Created March 26, 2013 22:31
Vagrant Fusion Error debug
INFO global: Vagrant version: 1.1.4
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.4/plugins/commands/box/plugin.rb
INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.4/plugins/commands/destroy/plugin.rb
INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.4/plugins/commands/halt/plugin.rb
INFO manager: Registered plugin: halt command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.4/plugins/commands/init/plugin.rb
INFO manager: Registered plugin: init command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.4/plugins/commands/package/plugin.rb
@griff
griff / .gitignore
Created January 27, 2012 08:48
AsyncCopyTest
AsyncCopyTest.xcodeproj/*.mode1v3
AsyncCopyTest.xcodeproj/*.pbxuser
AsyncCopyTest.xcodeproj/xcuserdata/*
AsyncCopyTest.xcodeproj/*/xcuserdata/*
build
@griff
griff / dup-test.rb
Created November 8, 2011 16:01
Test to illustrate that JRuby on windows doesn't correctly transfer binmode to a duplicate
require 'test/unit'
include Test::Unit::Assertions
EXPECTED = "\211PNG\r\n\032\n"
File.open('test.dmp', 'wb') do |f|
f.write(EXPECTED)
end
o = File.new('test.dmp', 'rb')
assert_equal EXPECTED, o.read(8), "not in binmode" # works
@griff
griff / bug_test.rb
Created June 8, 2010 14:25
Some small code to illustrate a bug in JRuby
class BugTest1 < Hash
# Any interface will do
include Java::JavaLang::Runnable
def run
puts "Hello from BugTest1"
end
end