Skip to content

Instantly share code, notes, and snippets.

View nullren's full-sized avatar

Renning Bruns nullren

View GitHub Profile
@nullren
nullren / dovecot.conf
Created November 19, 2020 05:49 — forked from cmouse/dovecot.conf
dovecot Dockerfile
## You should mount /etc/dovecot if you want to
## manage this file
mail_home=/srv/mail/%Lu
mail_location=sdbox:~/Mail
mail_uid=1000
mail_gid=1000
protocols = imap pop3 submission sieve lmtp
package example
type testcase struct {
name string
...
}
func TestTheTestcases(t *testing.T) {
testcases := []*testcase{...}
module Main (
main
)
where
import System.Environment
import Data.List
import Data.Char
wordscape rubric word = contained

Keybase proof

I hereby claim:

  • I am nullren on github.
  • I am renning (https://keybase.io/renning) on keybase.
  • I have a public key ASBiFNKXalc1n_ho1FkxqXtGbxaQMRZSlmRetO_P2o7UDwo

To claim this, I am signing this object:

@nullren
nullren / a.rb
Created November 20, 2015 00:51
// Lazily initialized, cached hashCode
private volatile int hashCode = 0; // (See Item 48)
public int hashCode() {
if (hashCode == 0) {
int result = 17;
result = 37*result + areaCode;
result = 37*result + exchange;
result = 37*result + extension;
@nullren
nullren / blastem.sh
Created February 3, 2015 01:41
abusing pgids to spawn a bazillion ssh commands that all terminate when you ^c
#!/bin/bash
trap "kill -1 -$$" SIGINT
for i in `cat objmanblasters{,}{,}{,}`; do
ssh $i -tt objmanblast </dev/null &
done
sleep infinity

Keybase proof

I hereby claim:

  • I am nullren on github.
  • I am renning (https://keybase.io/renning) on keybase.
  • I have a public key whose fingerprint is A548 9568 DE98 0D13 A630 C3F9 54D0 8C5D 2C4C A4D2

To claim this, I am signing this object:

@nullren
nullren / derp_close.sh
Created May 10, 2014 04:15
both of these scripts are called using your image file as the argument
#!/bin/bash
if [ ! -f $1 ]; then
echo no file to close
exit 1
fi
LUFIL=$1
LODEV=$(losetup -j $LUFIL | cut -d: -f1)