Skip to content

Instantly share code, notes, and snippets.

Frank Schröder magiconair

Block or report user

Report or block magiconair

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am magiconair on github.
  • I am magiconair (https://keybase.io/magiconair) on keybase.
  • I have a public key ASDPXERoKzWSIoxycT2OCHyHdHipUEYhOaga-8V9EcfKIQo

To claim this, I am signing this object:

View mangoh_green_wp750x-canbus.log
root@swi-mdm9x15:~# logread
Jul 17 09:41:32 swi-mdm9x15 syslog.info syslogd started: BusyBox v1.22.1
Jul 17 09:41:32 swi-mdm9x15 user.notice kernel: klogd started: BusyBox v1.22.1 (2017-11-29 20:34:56 PST)
Jul 17 09:41:32 swi-mdm9x15 user.warn kernel: [ 0.000000] Kernel is starting...
Jul 17 09:41:32 swi-mdm9x15 user.info kernel: [ 0.000000] Booting Linux on physical CPU 0x0
Jul 17 09:41:32 swi-mdm9x15 user.info kernel: [ 0.000000] Initializing cgroup subsys cpuset
Jul 17 09:41:32 swi-mdm9x15 user.info kernel: [ 0.000000] Initializing cgroup subsys cpu
Jul 17 09:41:32 swi-mdm9x15 user.info kernel: [ 0.000000] Initializing cgroup subsys cpuacct
Jul 17 09:41:32 swi-mdm9x15 user.notice kernel: [ 0.000000] Linux version 3.14.29ltsi-961ca71325_ed9f616cc8 (gsmbuild@CARMD-EV-FRMWR1) (gcc version 4.9.1 (GCC) ) #2 PREEMPT Wed Nov 29 20:54:01 PST 2017
Jul 17 09:41:32 swi-mdm9x15 user.info kernel: [ 0.000000] CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c5387d
View consul-cluster.bash
#!/bin/bash
#
# Script for bringing up an N node consul cluster
# on the local machine on different ports.
#
# The first node is listening on the default ports
# so that the command line tool works.
#
# Examples:
#
@magiconair
magiconair / naivegame-naive.go
Last active Sep 14, 2016
Port of the NaiveGame Java impl
View naivegame-naive.go
// This is a port of the naive Java version of
// https://jackmott.github.io/programming/2016/09/01/performance-in-the-large.html
//
// Code is not pretty!!! ;)
//
// Results:
//
// $ GODEBUG=gctrace=1 go run naive/main.go
// gc 1 @0.079s 0%: 0.11+0.30+0.077 ms clock, 0.34+0.008/0.40/0.48+0.23 ms cpu, 4->4->0 MB, 5 MB goal, 8 P
// # command-line-arguments
View vault-token.sh
#!/bin/bash
set -o nounset
function log() {
echo
echo "========================================================================="
echo "== $@"
echo "=="
}
View fabio-cla.txt
Developer Certificate of Origin Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors. 660 York Street, Suite 102, San Francisco, CA 94110 USA
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
@magiconair
magiconair / main.go
Last active May 11, 2019
prometheus counter example
View main.go
package main
import (
"net/http"
"github.com/prometheus/client_golang/prometheus"
)
var (
cpuTemp = prometheus.NewGauge(prometheus.GaugeOpts{
View a_main.go
ackage main
import (
"database/sql"
"flag"
"log"
"time"
"github.com/davecheney/profile"
@magiconair
magiconair / riak-key-extractor.go
Last active Dec 19, 2015
Tool for extracting bucket/key data from riak's bitcask hint files
View riak-key-extractor.go
// Riak key extractor
//
// extracts bucket names and keys from riak's bitcask hint files
//
// Authors: The CAS Team 2013
//
package main
import (
"bytes"
@magiconair
magiconair / echo-simple.go
Last active Dec 16, 2015
Simple reader/writer in Go
View echo-simple.go
package main
import (
"bufio"
"fmt"
"log"
"os"
)
func reader(path string, p chan string) {
You can’t perform that action at this time.