Instantly share code, notes, and snippets.

View go.mod
module github.com/gobuffalo/buffalo
require (
github.com/dgrijalva/jwt-go v0.0.0-20180308231308-06ea1031745c
github.com/dustin/go-humanize v0.0.0-20180421182945-02af3965c54e
github.com/fatih/color v1.7.0
github.com/fatih/structs v1.0.0
github.com/fsnotify/fsnotify v1.4.7
github.com/gobuffalo/envy v1.6.2
github.com/gobuffalo/packr v1.11.0
View defence.go
package main
import (
"bufio"
"flag"
"fmt"
"os"
"strings"
)
View entropy.go
// https://blog.merovius.de/2018/01/15/generating_entropy_without_imports_in_go.html
package main
import "fmt"
func main() {
fmt.Println(MapIteration())
fmt.Println(Select())
fmt.Println(RaceCondition())
View 01.txt
__ __ _ _ _ _ _ _ _ _ _
\ \ / /_ _ ___ (_)__| |_ ___(_)__ _ ___ _ _| |_| (_)__| |_ __| (_)___ ___ ___ ___
\ \/\/ / _` (_-< | (_-< _/ -_) / _` / -_) ' \ _| | / _| ' \ / _` | / -_|_-</ -_|_-<
\_/\_/\__,_/__/ |_/__/\__\___|_\__, \___|_||_\__|_|_\__|_||_| \__,_|_\___/__/\___/__/
|___/
_ _ ___ _ _ _ _ _ _
( | )_ _|_ _| |_ ___ _ _ _ _ ___| |_( | ) __ _____ _ _ __| |___ _ __ (_)_ __ _ __ ___ _ _
V V | || ' \ _/ -_) '_| ' \/ -_) _|V V \ V / _ \ ' \ / _` / -_) ' \ | | ' \| ' \/ -_) '_|
View keybase.md

Keybase proof

I hereby claim:

  • I am Merovius on github.
  • I am merovius (https://keybase.io/merovius) on keybase.
  • I have a public key whose fingerprint is CC3C C48D 048E 77B6 CAF0 B8DF 0426 F4D1 2C27 A9D4

To claim this, I am signing this object:

View test.c
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
// Demonstrate, that stdin, stdout, stderr are only conventional. We run a child
// process which doesn't have them open and open a random file to demonstrate,
View main.go
package main
import (
"flag"
"fmt"
"go/ast"
"go/build"
"go/parser"
"go/token"
"io"
View perm.go
package main
import (
"fmt"
"math/rand"
"sort"
"time"
)
// Naive solution, create a new array and copy elements in right order. This
View new-jekyll-post.sh
#!/bin/sh
# The file extension to use for the post
FMT="markdown"
# Maximum length title used in filename
MAXLEN=32
# Wether or not to start a jekyll server for the draft
START_JEKYLL=true
# Wether to automatically commit the post or not
AUTOCOMMIT=true
View client.go
package main
import (
"github.com/guelfey/go.dbus"
)
func main() {
conn, err := dbus.SessionBus()
if err != nil {
panic(err)