Skip to content

Instantly share code, notes, and snippets.

View feniix's full-sized avatar
🇦🇷

Sebastian B Otaegui feniix

🇦🇷
View GitHub Profile
@feniix
feniix / haproxy.cfg
Created March 4, 2012 19:26
simple haproxy config for solr with multiple nodes
# this config needs haproxy-1.1.28 or haproxy-1.2.1
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
#log loghost local0 info
maxconn 4096
#chroot /usr/share/haproxy
user haproxy
group haproxy
#!/bin/bash
# This script will download and install Google Chrome on a fresh installation of Mac OS X.
# Usage: curl -fkL gist.github.com/raw/4364590/install-chrome.sh | sh
curl -Lo /tmp/Google\ Chrome.dmg https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg;
hdiutil attach /tmp/Google\ Chrome.dmg;
ditto -rsrc /Volumes/Google\ Chrome/Google\ Chrome.app /Applications/Google\ Chrome.app;
hdiutil detach /Volumes/Google\ Chrome;
rm /tmp/Google\ Chrome.dmg;
@feniix
feniix / keybase
Created September 19, 2017 17:40
### Keybase proof
I hereby claim:
* I am feniix on github.
* I am feniix (https://keybase.io/feniix) on keybase.
* I have a public key ASArRrslEcjv4bFEAzU2sjhR1ZGK91CCnnuwlku_n4DHBQo
To claim this, I am signing this object:
@feniix
feniix / Makefile
Last active September 30, 2015 17:14 — forked from grahamc/Makefile
AWS Instance Age Report (run `make profile=default` if you have many creds profiles defined use the correct one
fresh: clean chart
chart: instance_ages
@echo "AWS EC2 Instance Age Report"
@echo "---------------------------"
@echo "Days\\tCount"
@cat instance_ages | ./chart.py -n
clean:
rm -f instance*
diff --git a/builds/redhat/zeromq.spec b/builds/redhat/zeromq.spec
index 781c65d..28e5c94 100644
--- a/builds/redhat/zeromq.spec
+++ b/builds/redhat/zeromq.spec
@@ -8,7 +8,11 @@ URL: http://www.zeromq.org/
Source: http://www.zeromq.org/local--files/area:download/%{name}-%{version}.tar.gz
Prefix: %{_prefix}
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
+%if %{?rhel}%{!?rhel:0} >= 6
+BuildRequires: libuuid-devel, gcc, make, gcc-c++, libstdc++-devel
otaeguis@otaeguis-laptop:~/projects/src/mongrel2/examples/python/mongrel2$ m2sh help
Available commands:
commit
config
dump
help
hosts
init
load
@feniix
feniix / marathon.json
Created July 8, 2015 16:00
Example using parameters
{
"id": "/app",
"container": {
"type": "DOCKER",
"docker": {
"network": "HOST",
"image": "registry.spantree.net/app:#{BUILD_ID}",
"privileged": true,
"forcePullImage": true,
"parameters": [
@feniix
feniix / chronos.conf
Created March 10, 2015 05:22
upstart-chronos.conf
# chronos
#
# This upstart job configuration is managed by Puppet.
# Do not edit this file. Your changes will be lost.
description "Chronos"
version "2.3.2"
start on runlevel [2345]
stop on runlevel [!2345]
diff --git i/Vagrantfile w/Vagrantfile
index 3cdca40..abc1e80 100644
--- i/Vagrantfile
+++ w/Vagrantfile
@@ -1,5 +1,5 @@
require 'yaml'
-require './vagrant/lib/gen_node_infos'
+require File.join(File.dirname(__FILE__), 'vagrant/lib/gen_node_infos')
PROJECT_ROOT='/usr/local/src/Platform'
class kafka_broker(
$zookeeper_connect = 'localhost:2181'
) {
class { 'kafka':
version => '0.8.2.0',
scala_version => '2.9.2',
install_java => false
}
class { 'kafka::broker':