Skip to content

Instantly share code, notes, and snippets.

View pacuna's full-sized avatar

Pablo Acuna pacuna

  • Spotify
  • Austin, TX
View GitHub Profile
@pacuna
pacuna / vm-setup.sh
Created October 4, 2020 14:48 — forked from nf/vm-setup.sh
Script for setting up Debian Jessie VM with my development environment
#!/bin/bash -e
echo '
PATH=$HOME/go/bin:$PATH
export GOPATH=$HOME
export CDPATH=.:$HOME/src/golang.org/x:$HOME/go/src:$HOME/src/github.com:$HOME/src/github.com/nf:$HOME/src/github.com/adg
export EDITOR=vim
' >> ~/.profile
sudo apt-get update
sudo port install automake libtool autogen autoconf
wget https://github.com/protocolbuffers/protobuf/archive/v3.14.0.tar.gz
tar -xzvf protobuf-3.14.0.tar.gz
cd protobuf-3.14.0
./autogen.sh
./configure
make
sudo make install
go install google.golang.org/protobuf/cmd/protoc-gen-go # run outside of project with module, add $GOBIN to $PATH
@pacuna
pacuna / lmdb.tcl
Created January 5, 2021 13:57 — forked from antirez/lmdb.tcl
LMDB -- First version of Redis written in Tcl
# LVDB - LLOOGG Memory DB
# Copyriht (C) 2009 Salvatore Sanfilippo <[email protected]>
# All Rights Reserved
# TODO
# - cron with cleanup of timedout clients, automatic dump
# - the dump should use array startsearch to write it line by line
# and may just use gets to read element by element and load the whole state.
# - 'help','stopserver','saveandstopserver','save','load','reset','keys' commands.
# - ttl with milliseconds resolution 'ttl a 1000'. Check ttl in dump!