Skip to content

Instantly share code, notes, and snippets.

Max Riveiro kavu

Block or report user

Report or block kavu

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 permission.sol
pragma solidity 0.5.5;
contract TxPermission {
/// Allowed transaction types mask
uint32 constant None = 0;
uint32 constant All = 0xffffffff;
uint32 constant Basic = 0x01;
uint32 constant Call = 0x02;
uint32 constant Create = 0x04;
uint32 constant Private = 0x08;
kavu /
Last active Aug 9, 2018
All Parity logging targets
grep -Roh --exclude-dir=target 'target: "[^"]*",' parity | sed -n 's/target: \("[^"]*"\),/\1/p' | sed -n 's/"//pg' | sort | uniq
kavu / Makefile
Created Aug 19, 2016
Nice Go Makefile
View Makefile
VERSION := $(shell git describe --tags | sed -e 's/^v//g' | awk -F "-" '{print $$1}')
ITERATION := $(shell git describe --tags --long | awk -F "-" '{print $$2}')
GO_VERSION=$(shell gobuild -v)
GO := $(or $(GOROOT),/usr/lib/go)/bin/go
PROCS := $(shell nproc)
@echo "cores: $(PROCS)"
go test -v
kavu / go.txt
Last active Aug 29, 2015
Go Resources
View go.txt
kavu /
Last active Jun 20, 2017
Minimal Swift command line Hello World
# So you've installed XCode 6 Beta
# Now we could use Swift toolchain to build a minimal
# command line Hellow World
# let's set new Developer Toolchain bundled with
# as default toolchain
# sudo xcode-select -s /Applications/
# alias for Swift binary
kavu /
Created Apr 12, 2014
Keybase Proof

Keybase proof

I hereby claim:

  • I am kavu on github.
  • I am kavu ( on keybase.
  • I have a public key whose fingerprint is F7F6 71A8 090C 7938 AB8E 84E2 8331 E923 9463 166D

To claim this, I am signing this object:

kavu / file_watcher.go
Created Apr 6, 2014
One day @gamesbrainiac asked me to make a simple File Watcher on Go…
View file_watcher.go
package main
import (
type pathsModTimes map[string]time.Time
View botclean.go
package main
import (
type Position struct {
X, Y int
View Rakefile
task :console do
require 'irb'
require 'irb/completion'
require 'your_gem'
View utils.go
func IsInSlice(slice []int, searching int) bool {
intSlice := make(sort.IntSlice, len(slice))
copy(intSlice, slice)
return sort.SearchInts(intSlice, searching) < len(slice)
You can’t perform that action at this time.