Skip to content

Instantly share code, notes, and snippets.

@mindo
mindo / keybase.md
Created September 25, 2017 21:48
keybase proof

Keybase proof

I hereby claim:

  • I am mindo on github.
  • I am mindo (https://keybase.io/mindo) on keybase.
  • I have a public key whose fingerprint is 09EE EA0F DED3 FF47 1298 8ADD F62A BE6B 893C E083

To claim this, I am signing this object:

Step 5 : ADD https://dl.bintray.com/mitchellh/serf/0.6.3_linux_amd64.zip serf.zip
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "/code/build/fig/out00-PYZ.pyz/fig.cli.main", line 31, in main
File "/code/build/fig/out00-PYZ.pyz/fig.cli.docopt_command", line 21, in sys_dispatch
File "/code/build/fig/out00-PYZ.pyz/fig.cli.command", line 28, in dispatch
File "/code/build/fig/out00-PYZ.pyz/fig.cli.docopt_command", line 24, in dispatch
File "/code/build/fig/out00-PYZ.pyz/fig.cli.command", line 51, in perform_command
File "/code/build/fig/out00-PYZ.pyz/fig.cli.main", line 119, in build
File "/code/build/fig/out00-PYZ.pyz/fig.project", line 166, in build
@mindo
mindo / puppet_xp_fat32
Created November 19, 2013 11:39
Error running puppet on Windows XP on a fat32 formatted disk
Running Puppet agent on demand ...
Error: Could not create resources for managing Puppet's files and directories in
sections [:main, :agent, :ssl]: Validation of File[C:/Documents and Settings/Al
l Users/Application Data/PuppetLabs/puppet/var/log] failed: Can only manage owne
r, group, and mode on filesystems that support Windows ACLs, such as NTFS
Wrapped exception:
Can only manage owner, group, and mode on filesystems that support Windows ACLs,
such as NTFS
@mindo
mindo / bashrc
Last active October 13, 2015 02:27
see git/mercurial branch on command prompt
function parse_git_branch_and_add_brackets {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\[\1\]\ /'
}
function parse_hg_branch_and_add_brackets {
hg branch 2> /dev/null | sed -e 's/\(.*\)/\[\1\]\ /'
}
PS1="$XTERM_TITLE$USER_COLOR\u\[\e[36;1m\]@\[\e[31;1m\]\h:\[\e[m\] \[\e[1;34m\]\w\[\e[m\]\n\[\033[0;32m\]$(parse_git_branch_and_add_brackets)$(parse_hg_branch_and_add_brackets)\[\e[36;1m\]$DOLLAR$BGJOBS \[\e[m\]"
@mindo
mindo / fail2ban.conf
Created June 29, 2012 15:44
fail2ban monitor and ban really persistent attackers
# /etc/fail2ban/filter.d/fail2ban.conf
# Fail2Ban configuration file
#
# Author: Tom Hendrikx
#
# $Revision$
#
[Definition]
@mindo
mindo / staging.domain.com.conf
Created May 22, 2012 11:48
nginx config for vhost staging.domain.com
server {
listen 80;
listen 443 default_server ssl;
server_name staging.domain.com *.staging.domain.com ;
ssl_certificate /etc/pki/tls/certs/domain.com.crt;
ssl_certificate_key /etc/pki/tls/private/domain.com.key;
root /var/www/html/staging/web;
@mindo
mindo / *.dev.conf
Created May 3, 2012 14:54
nginx config
server {
listen 80;
server_name ~^(.+).dev$;
if ($host ~ "^(.+).dev") {
set $site $1;
}
root /var/www/$site/web;
client_max_body_size 10M;
#user nobody;
worker_processes 1;
daemon off;
error_log /servers/logs/nginx/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;