Skip to content

Instantly share code, notes, and snippets.

View domix's full-sized avatar
🇲🇽

Domingo Suarez Torres domix

🇲🇽
View GitHub Profile
package testing;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.when;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@domix
domix / job
Created February 2, 2011 06:41
Java developer position
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 (requerido)
JQuery (deseable)
Groovy (extra, no requerido, se dará capacitación)
Grails (extra++, no requerido, se dará capacitación)
Nos complace anunciar que Spring Integration 2.1 Milestone 2 ya esta disponible. 74 incidencias fueron atendidas como se indica en las notas de liberación. Los JARs están disponibles en el repositorio Maven SpringSource Milestone y la descarga de la distribución está disponible en el sitio de Comunidad de SpringSource. Toda la documentación (manual de referencia y JavaDoc) están aquí.
@domix
domix / git_current_branch_in_PS1
Created October 20, 2011 18:55
My shell PS1 for displaying the current Git branch
export PS1="[\u@\h] \W \[\033[31m\]\`ruby -e \"print (%x{git branch 2> /dev/null}.grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1) ')\"\`\[\033[00m\]$ "
@domix
domix / shell_activity.sh
Last active September 28, 2015 01:48
My shell activity
domix@raskolnikov:~
λ🍺 zsh_stats 0:25:00
1 1820 11.2617% brew
2 1743 10.7852% g
3 1617 10.0056% gs
4 1339 8.28538% cd
5 948 5.86597% ll
6 834 5.16057% grails
7 498 3.08149% ggpush
8 481 2.9763% http
@domix
domix / delAllKeysInRedis.sh
Created January 15, 2012 22:18
Delete all keys in Redis
redis-cli KEYS "*" | xargs redis-cli DEL
@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 / 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 / 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
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'