Skip to content

Instantly share code, notes, and snippets.

Avatar

Amitai Schleier schmonz

View GitHub Profile
@schmonz
schmonz / conferences2021.md
Last active Sep 3, 2020
2021 conferences of interest
View conferences2021.md

(Last year's list)

2021: Attended

Start End Place Event CFP

2021: Will Attend

| Start | End | Place | Event | CFP |

@schmonz
schmonz / conferences2020.md
Last active Oct 21, 2019
2020 conferences of interest
View conferences2020.md

(Last year's list)

2020: Attended

Start End Place Event CFP

2020: Will Attend

| Start | End | Place | Event | CFP |

@schmonz
schmonz / conferences2019.md
Last active Oct 1, 2019
2019 conferences of interest
View conferences2019.md
View build.log
pkg_comp: I: Creating sandbox
pkg_comp: I: Bootstrapping pkg tools
pkg_comp: I: Setting up bootstrap in /opt/.pkg-20180804 from scratch
===> bootstrap command: ./bootstrap --gzip-binary-kit=/pkg_comp/packages/pkg/bootstrap.tgz --make-jobs=1 --mk-fragment=/pkg_comp/work/mk.conf.fragment --pkgdbdir=/opt/.pkg-20180804/libdata/pkgdb --prefix=/opt/.pkg-20180804 --sysconfdir=/etc --varbase=/var --workdir=/pkg_comp/work/pkg/bootstrap
===> bootstrap started: Sat Aug 4 17:00:17 UTC 2018
Working directory is: /pkg_comp/work/pkg/bootstrap
===> running: /usr/bin/sed -e 's|@DEFAULT_INSTALL_MODE@|'0755'|' /pkg_comp/pkgsrc/sysutils/install-sh/files/install-sh.in > /pkg_comp/work/pkg/bootstrap/bin/install-sh
===> running: /bin/chmod +x /pkg_comp/work/pkg/bootstrap/bin/install-sh
===> Creating default mk.conf in /pkg_comp/work/pkg/bootstrap
===> running: /bin/sh /pkg_comp/work/pkg/bootstrap/bin/install-sh -d -o root -g wheel /pkg_comp/work/pkg/bootstrap/sbin
View vbox.sh
#!/bin/sh
vbox_is_running() {
count=$(VBoxManage showvminfo "$1" | grep -c 'running (since')
[ 0 -lt $count ]
}
vbox_start_if_needed() {
vbox_is_running "$1" || VBoxManage startvm "$1" --type headless
}
View rewriteto.pl
#!/usr/bin/env perl
# in .qmail:
# | rewriteto something@somewhere.else | forward something@somewhere.else
use warnings;
use strict;
sub munge_to_header {
my ($new_to) = @_;
@schmonz
schmonz / README.md
Last active Feb 3, 2018
files attached to bug report for Exercism.io Perl5 track
View README.md

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 Oct 1, 2018
2018 conferences I may want to attend
View conferences2018.md
View checkpassword-rejectroot.c
#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 Aug 21, 2017
inconsistent installed path for C# .dll across platforms
View summary.md

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