Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
while true; do
if test -n "`tmux showb 2> /dev/null`"; then
tmux saveb -|pbcopy && tmux deleteb
fi
sleep 0.5
done
@logikal
logikal / .vimrc
Created September 13, 2013 23:56
set nocompatible " be iMproved
set encoding=utf-8
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" Let Vundle manage Vundle. Required!
Bundle 'gmarik/vundle'
@logikal
logikal / Berksfile
Created December 6, 2013 21:36
Couldn't find any good docs on Berkshelf3 and berks-api configs, so this is what I've figured out so far.
source "http://my.api-server.tld:26200"
cookbook "foo"
cookbook "bacon"
@logikal
logikal / docker_dvm_etcd.sh
Created January 22, 2014 18:40
Why you use docker and dvm: setting up an etcd instance to mess around with.
> [bin] uname -a
Darwin log1kal 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64
> [bin] docker run ubuntu cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"
> [bin] docker run -d -p 4001:4001 -p 7001:7001 coreos/etcd
Unable to find image 'coreos/etcd' (tag: latest) locally
Pulling repository coreos/etcd
@logikal
logikal / consul.conf
Created May 27, 2014 06:06
consul upstart script
description "the consul service"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
pre-stop exec consul leave
respawn
umask 022
chdir /
setuid root
#!/bin/bash
# Set Graphite host
GRAPHITE=graphite.sjc1.sendgrid.net
GRAPHITE_PORT=2003
# Loop forever
while :
do
# Get epoch
root@contactriak0001t1mdw1 certs]# cat /etc/riak/advanced.config
[
{riak_core,
[
{ssl_enabled, true },
%% The cluster manager will listen for connections from remote
%% clusters on this ip and port. Every node runs one cluster
%% manager, but only the cluster manager running on the
%% cluster_leader will service requests. This can change as nodes
%% enter and leave the cluster.
@logikal
logikal / config.json
Last active August 29, 2015 14:14 — forked from anonymous/config.json
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "#f7941e",
"@brand-success": "#5cb85c",
consul:
image: progrium/consul
name: consul
ports:
- "8500:8500"
- "53:53/udp"
command: -server -bootstrap -ui-dir /ui
registrator:
image: progrium/registrator
### Keybase proof
I hereby claim:
* I am logikal on github.
* I am logikal (https://keybase.io/logikal) on keybase.
* I have a public key whose fingerprint is 4AA7 1915 C6EE E036 8E65 F4AF 2A9D 8844 0180 009A
To claim this, I am signing this object: