Skip to content

Instantly share code, notes, and snippets.

View domix's full-sized avatar
🇲🇽

Domingo Suarez Torres domix

🇲🇽
View GitHub Profile
@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 &
typedef enum _UIBackgroundStyle {
UIBackgroundStyleDefault,
UIBackgroundStyleTransparent,
UIBackgroundStyleLightBlur,
UIBackgroundStyleDarkBlur,
UIBackgroundStyleDarkTranslucent
} UIBackgroundStyle;
@interface UIApplication (UIBackgroundStyle)
-(void)_setBackgroundStyle:(UIBackgroundStyle)style;
@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
@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 / 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+++)
dependencies {
test("org.spockframework:spock-grails-support:0.6-groovy-1.8") {
excludes 'spock-core'
}
test 'org.spockframework:spock-core:0.7-groovy-2.0-SNAPSHOT'
}
plugins {
test (':spock:0.6') {
excludes 'spock-grails-support'
@domix
domix / catalina.properties
Created July 11, 2012 21:06
catalina properties file to speed up Tomcat (>= 7.0.29) startup with Grails Applications
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@domix
domix / lolcommits_random_commit.sh
Created May 17, 2012 21:21
Random commit photo from last day with #lolcommits
# Install first CoreUtils
open $(find ~/.lolcommits -type f -mtime -1 | gshuf -n 1)
@domix
domix / PaymentStatus.groovy
Created May 8, 2012 22:03
Codenarc marks the following enum with UnnecessaryPackageReference violation
package com.company.payment
enum PaymentStatus {
APPROVED,
REJECTED,
CANCELLED,
UNDETERMINED
}
@domix
domix / delAllKeysInRedis.sh
Created January 15, 2012 22:18
Delete all keys in Redis
redis-cli KEYS "*" | xargs redis-cli DEL