Skip to content

Instantly share code, notes, and snippets.

View ae6rt's full-sized avatar

Mark Petrovich ae6rt

  • Petaluma, CA
View GitHub Profile
@ae6rt
ae6rt / pretty_config.erl
Created May 22, 2016 15:59 — forked from lefant/pretty_config.erl
a little escript snippet to pretty print erlang config, using the erl_syntax module
#!/usr/bin/env escript
%% -*- erlang -*-
%% * slurp in terms using inlined version of kernels file:consult/1
%% * convert to abstract syntax tree
%% * annotate all tuples
%% * pretty print using a hook to prefix the annotated nodes with newline
main([]) ->
io:format("%% -*-erlang-*-~n"),
@ae6rt
ae6rt / aes-256-gcm.go
Created December 15, 2016 14:41 — forked from cannium/aes-256-gcm.go
golang aes-256-gcm
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"encoding/hex"
"fmt"
"io"
)
@ae6rt
ae6rt / -
Created March 2, 2017 04:02 — forked from anonymous/-
System: Host: tp560 Kernel: 4.4.0-64-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.2.6 (Gtk 3.18.9-1ubuntu3.1) dm: mdm Distro: Linux Mint 18.1 Serena
Machine: System: LENOVO (portable) product: 20FHCTO1WW v: ThinkPad T560 Chassis: type: 10
Mobo: LENOVO model: 20FHCTO1WW v: SDK0J40709 WIN
Bios: LENOVO v: N1KET26W (1.13 ) date: 10/07/2016
CPU: Dual core Intel Core i7-6600U (-HT-MCP-) cache: 4096 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 11233
clock speeds: min/max: 400/3400 MHz 1: 532 MHz 2: 503 MHz 3: 520 MHz 4: 539 MHz
Graphics: Card: Intel Sky Lake Integrated Graphics bus-ID: 00:02.0 chip-ID: 8086:1916
Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)