Skip to content

Instantly share code, notes, and snippets.

metakeule metakeule

  • Cologne / Germany
Block or report user

Report or block metakeule

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
metakeule / postgres.go
Created Apr 12, 2018 — forked from rivo/postgres.go
A demo Go application (a PostgreSQL database browser) highlighting the use of the rivo/tview package. See
View postgres.go
package main
import (
metakeule / main.cpp
Created Apr 4, 2018 — forked from cfillion/main.cpp
Bare-bone REAPER extension (prints Hello World! using the API)
View main.cpp
// Bare-bone REAPER extension
// 1. Grab reaper_plugin.h from
// 2. Grab reaper_plugin_functions.h by running the REAPER action "[developer] Write C++ API functions header"
// 3. Grab WDL: git clone
// 4. Build then copy or link the binary file into <REAPER resource directory>/UserPlugins
// Linux
// =====
metakeule / main.go
Created Jan 20, 2015
simple example how to use
View main.go
// simple example how to use
// run it with SoX
// go run main.go | play -
// or save it to a file
// go run main.go > test.wav
package main
metakeule / errloop.sublime-snippet
Created Jan 14, 2015
snippet for error loop, put it somewhere beneath ~/.config/sublime-text-3/Packages/User
View errloop.sublime-snippet
var (
// define the variables here that are shared along the steps
// most variables should only by defined by the type here
// and are assigned inside the steps
err error
metakeule / main.go
Created Jan 14, 2015
benchmark error loops
View main.go
package main
import (
var Err = errors.New("test err")
func addOne(y, x int) (int, error) {
if x%y == 0 {
metakeule / index.html
Created May 19, 2014
A Pen by Secret Sam.
View index.html
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<!-- Bootstrap -->
<!-- Latest compiled and minified CSS -->
metakeule / .gtkrc-2.0
Created Sep 5, 2013
set foreground and background colors in claws mail list view (and other apps that use GtkSCTree from an gtk2 theme, stolen from setup your ~/.gtkrc-2.0 file
View .gtkrc-2.0
style "claws-folder-view" {
fg[NORMAL] = "#ffffff"
fg[ACTIVE] = "#ffffff"
fg[PRELIGHT] = "#ffffff"
fg[SELECTED] = "#ffffff"
bg[ACTIVE] = "#7CA4CF"
bg[NORMAL] = "#686B6D"
View latency.txt
Latency Comparison Numbers
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 4K randomly from SSD* 150,000 ns 0.15 ms
metakeule / limit.sql
Created Apr 12, 2013
Limit connections to postgres server in go, still PQ: TOO MANY CONNECTIONS FOR ROLE "USERNAME" errors popup
View limit.sql
-- limit the number of connections, username is allowed to use
metakeule / gist:4623836
Created Jan 24, 2013
combine methods and functions that have the same primary argument, i.e. handle methods that are defined with the object and functions that are defined afterwards for this object (in another library) the same way.
View gist:4623836
package main
import "fmt"
type Foo struct{}
func (f *Foo) Method() {
type Funcs []func(*Foo)
You can’t perform that action at this time.