Skip to content

Instantly share code, notes, and snippets.

View daniel-garcia's full-sized avatar

Daniel García daniel-garcia

View GitHub Profile
@daniel-garcia
daniel-garcia / install-vimgo.sh
Created March 29, 2015 16:42
install vim-go
mkdir -p ~/.vim/bundle
cd ~/.vim/bundle/
git clone https://github.com/fatih/vim-go.git
git clone https://github.com/Valloric/YouCompleteMe.git
cd YouCompleteMe/
git submodule update --init --recursive
sudo apt-get install cmake g++ python-dev
./install.sh
mkdir -p ~/.vim/autoload ~/.vim/bundle && curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
cd ~
@daniel-garcia
daniel-garcia / dockerrash.go
Created March 6, 2014 03:06
An attempt at reproducing device busy errors
package main
import (
"log"
"os"
"os/exec"
"sync"
)
@daniel-garcia
daniel-garcia / zencatalog_continue.diff
Created June 14, 2013 05:04
attempt to coninue a zencatalog --createcatalog --forceindex, with a new --continueindex option
Index: Products/ZenUtils/zencatalog.py
===================================================================
--- Products/ZenUtils/zencatalog.py (revision 73688)
+++ Products/ZenUtils/zencatalog.py (working copy)
@@ -115,6 +115,10 @@
action="store_true",
default=False,
help="Create global catalog and populate it")
+ self.parser.add_option("--continueindex",
+ action="store_true",
@jpetazzo
jpetazzo / README.md
Last active August 21, 2019 17:55
Give network superpowers to docker

Unionize: network superpowers for your docker containers

Unionize lets you connect together docker containers in arbitrarily complex scenarios.

Note: I recommend to use https://github.com/jpetazzo/pipework instead.

  • pipework is a better name than unionize
  • it's hosted on a "real" github repo instead of a small gist :-)

Now if you want Unionize, it's still here. Just check those examples.

@daniel-garcia
daniel-garcia / zep_reindex_n_seconds.sh
Last active December 14, 2015 22:09
Reindex events modified in the last n seconds
#!/usr/bin/env bash
function usage() {
echo $0 "[seconds]"
}
seconds=$1
if [ -z "$seconds" ]; then
echo "seconds were not specified"
@spikebike
spikebike / client output
Created March 29, 2012 03:43 — forked from spikebike/client.go
TLS server and client
$ go run client.go
2012/03/28 22:30:21 client: connected to: 127.0.0.1:8000
Client: Server public key is:
[48 129 159 48 13 6 9 42 134 72 134 247 13 1 1 1 5 0 3 129 141 0 48 129 137 2 129 129 0 188 73 207 11 137 150 106 118 45 27 12 18 76 183 252 31 22 193 109 43 118 130 188 244 197 136 26 55 239 51 225 67 171 20 87 35 107 190 16 158 181 84 225 159 112 70 131 173 136 181 130 151 156 4 142 141 218 100 116 219 228 211 136 155 179 220 50 21 181 134 211 72 22 38 226 51 170 165 39 65 231 3 15 26 54 193 142 242 28 66 96 88 138 237 217 65 144 89 231 177 179 200 116 30 45 148 174 56 57 244 29 17 8 22 86 54 215 14 207 55 223 164 216 184 21 46 29 233 2 3 1 0 1] <nil>
2012/03/28 22:30:21 client: handshake: true
2012/03/28 22:30:21 client: mutual: true
2012/03/28 22:30:21 client: wrote "Hello\n" (6 bytes)
2012/03/28 22:30:21 client: read "Hello\n" (6 bytes)
2012/03/28 22:30:21 client: exiting
$