Skip to content

Instantly share code, notes, and snippets.

View schmonz's full-sized avatar

Amitai Schleier schmonz

View GitHub Profile
@schmonz
schmonz / README.md
Last active February 3, 2018 18:09
files attached to bug report for Exercism.io Perl5 track

Space Age

Write a program that, given an age in seconds, calculates how old someone is in terms of a given planet's solar years.

Given an age in seconds, calculate how old someone would be on:

  • Earth: orbital period 365.25 Earth days, or 31557600 seconds
  • Mercury: orbital period 0.2408467 Earth years
  • Venus: orbital period 0.61519726 Earth years
  • Mars: orbital period 1.8808158 Earth years
@schmonz
schmonz / conferences2018.md
Last active October 1, 2018 14:41
2018 conferences I may want to attend
#include "exit.h"
#include "readwrite.h"
#include "substdio.h"
char sserrbuf[128];
substdio sserr = SUBSTDIO_FDBUF(write,2,sserrbuf,sizeof sserrbuf);
void err(char *s) {
substdio_puts(&sserr,s);
substdio_puts(&sserr,"\n");
@schmonz
schmonz / summary.md
Created August 21, 2017 21:53
inconsistent installed path for C# .dll across platforms

What I tried

In pkgsrc (a cross-platform Unix package system), I've created a package of Xapian (a search engine) and a package of its C# bindings.

Each package has a packing list (PLIST) that specifies exactly which files are part of it. If a given source build would generate a binary package that doesn't contain both everything in the PLIST

@schmonz
schmonz / conferences2017.md
Last active February 22, 2018 23:38
2017 conferences I may want to attend
@schmonz
schmonz / schmonz-software-rebuild.md
Last active December 18, 2016 15:53
Build packages for NetBSD VPS on local NetBSD VM
@schmonz
schmonz / pound.md
Last active December 19, 2016 21:31
@schmonz
schmonz / gpio.conf
Created August 3, 2016 19:14
NetBSD Raspberry Pi: toggle onboard LED
gpio0 16 set out act_led
@schmonz
schmonz / proxied_apache_and_lighttpd.md
Last active December 19, 2016 21:37
Apache: one proxied site running as regular user, one reverse proxy
@schmonz
schmonz / tap.md
Last active December 18, 2016 16:02
Running Unity tests? Run them with `prove tap.pl` for red/green.