Skip to content

Instantly share code, notes, and snippets.

View domix's full-sized avatar
🇲🇽

Domingo Suarez Torres domix

🇲🇽
View GitHub Profile
@domix
domix / gist:4062469
Created November 12, 2012 22:32
job posting
Hola,
Estamos buscando un desarrollador Java para la ciudad de México, que tenga sólidos conocimientos de desarrollo web. Los requisitos son los siguientes:
Spring (requerido)
Hibernate (requerido)
JavaScript Vanilla (requerido)
Git (deseable)
JQuery (deseable)
Backbone (extra+++)
@domix
domix / mydashboard.json
Created August 17, 2013 16:43
My first kibana 3 dashboard
{
"title": "Introduction",
"services": {
"query": {
"idQueue": [
1,
2,
3,
4
@domix
domix / logstash
Created August 28, 2013 05:25 — forked from nodesocket/logstash
#! /bin/sh
#
# /etc/rc.d/init.d/logstash
#
# Starts Logstash as a daemon
#
# chkconfig: 2345 20 80
# description: Starts Logstash as a daemon
### BEGIN INIT INFO
typedef enum _UIBackgroundStyle {
UIBackgroundStyleDefault,
UIBackgroundStyleTransparent,
UIBackgroundStyleLightBlur,
UIBackgroundStyleDarkBlur,
UIBackgroundStyleDarkTranslucent
} UIBackgroundStyle;
@interface UIApplication (UIBackgroundStyle)
-(void)_setBackgroundStyle:(UIBackgroundStyle)style;
@domix
domix / idea12
Created October 29, 2013 21:20
IntelliJ IDEA 12 Launcher Mavericks
#!/bin/bash
export JAVA_HOME=`/usr/libexec/java_home`
export APP_PACKAGE='/Applications/IntelliJ IDEA 12.app'
exec $JAVA_HOME/bin/java -cp $JAVA_HOME/lib/tools.jar:"$APP_PACKAGE"/lib/bootstrap.jar:"$APP_PACKAGE"/lib/extensions.jar:"$APP_PACKAGE"/lib/util.jar:"$APP_PACKAGE"/lib/jdom.jar:"$APP_PACKAGE"/lib/log4j.jar:"$APP_PACKAGE"/lib/trove4j.jar:"$APP_PACKAGE"/lib/jna.jar -Didea.paths.selector=IntelliJIdea12 -Dfile.encoding=UTF-8 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -XX:+UseCodeCacheFlushing -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -XX:+HeapDumpOnOutOfMemoryError -Xverify:none -Xbootclasspath/a:"$APP_PACKAGE"/lib/boot.jar -XX:MaxPermSize=256m -Xdock:icon="$APP_PACKAGE"/Contents/Resources/idea.icns com.intellij.idea.Main &
@domix
domix / setjava.sh
Created January 6, 2014 18:26
Handy bash function to switch quickly between your Java SDKs in OSx
function setjava() {
export JAVA_HOME=$(/usr/libexec/java_home -v $1)
}
@domix
domix / gist:9221106
Created February 26, 2014 00:42
Job offering
Hola,
Grupo Expansión esta buscando 4 desarrolladores Java para la ciudad de México, que tengan sólidos conocimientos de desarrollo web. Los requisitos son los siguientes:
Spring (requerido)
Hibernate (requerido)
Vanilla JavaScript (requerido)
Git (deseable)
JQuery (deseable)
Grunt (extra)
// This is a comparison between Haskell and Groovy based on some simple problems found in the following
// Haskell Introduction:
// http://learnyouahaskell.com/starting-out#ready-set-go
// Ex 1. If we have two lists, [2,5,10] and [8,10,11] and we want to get the products of all the possible
// combinations between numbers in those lists, here's what we'd do.
/* HASKELL */
[ x*y | x <- [2,5,10], y <- [8,10,11]]
@domix
domix / gist:370fafc04fa8be29f5db
Created November 5, 2014 02:04
Dynomite Dockerfile
FROM ubuntu
MAINTAINER Domingo Suarez "[email protected]"
RUN apt-get update
RUN apt-get -y install wget zip gcc dh-autoreconf ssh
RUN wget --no-check-certificate https://github.com/Netflix/dynomite/archive/v0.3.0.zip
RUN unzip v0.3.0.zip
RUN cd dynomite-0.3.0 && autoreconf -fvi && ./configure && make