Skip to content

Instantly share code, notes, and snippets.

View rserranon's full-sized avatar
🎯
Focus

Robert rserranon

🎯
Focus
View GitHub Profile
@rserranon
rserranon / .profile.sh
Created December 6, 2011 23:44
.profile para mostrar el Branch de git en el prompt en Mac OS
# Making ls to always display colors
alias ls='ls -G'
export LSCOLORS=dxfxcxdxbxegedabagacad
# Funcion para cambiar el prompt muestra usuario:working dir (git branch) $
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
@rserranon
rserranon / .gitignore
Created January 3, 2012 01:39
.gitignore for grails 2.0
# .gitignore for Grails 2.0
web-app
target
target-eclipse
build
bin
build.sh
plugin.xml
stacktrace.log
@rserranon
rserranon / grailsVersionSelector.groovy
Created January 3, 2012 01:44
Script en groovy para seleccionar la version de Grails en Mac OS
#
# Script en groovy para seleccionar la version de Grails
# requiere el password de admin por el uso de sudo
#
def versions = ['1.1','1.1.2-M4','1.1.2','1.2-M3','1.2.0.RC1','1.2.0.RC2','1.2.0','1.3.4','1.3.5','1.3.6','1.4.0.M1', '2.0.0']
def helpOptions = ['-help','-HELP','-h','-?','?']
println ""
println "Selector de version de grails"
println ""
if (args.size() > 0) {
@rserranon
rserranon / my_example.py
Last active October 1, 2022 20:41
Chaincode Labs exercise 3
#!/usr/bin/env python3
# Copyright (c) 2017-2021 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""An example functional test
The module-level docstring should include a high-level description of
what the test is doing. It's the first thing people see when they open
the file and should give the reader information about *what* the test
is testing and *how* it's being tested
@rserranon
rserranon / snippet.py
Last active October 1, 2022 20:37
Exercise 3 Chain Code
#
# Chaincode excercise 3
#
# generate new block
self.log.info("Generate new block")
new_block_hash = self.generate(self.nodes[1], 1)
# sync previously connected nodes
self.log.info("Sync previously connected nodes")
self.sync_all()
# find block and get hash