Skip to content

Instantly share code, notes, and snippets.

Josue Zarzosa josketres

Block or report user

Report or block josketres

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View jzarz-mac.pub
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-128-CBC,F626774C824D9ED2C98EEA5B58CBE1F6
VWgn8Z+WHE1EHOKzkwgstWdajAENIQRGhmziwGFUOnemCb2VJaSWoojQhjgY2czN
K+yfAn81JGSgr2QkAgE/2VvBoSAVXBnlbtOMwKyeiiBqUazQQg/eZHWJRTilmAH1
d7Cf7gSyZdZLvlu6d/WbYYQkHP39PEYGHM+hBgmkMu9F84dd39+h2k4hVsvBWWGH
v2KdC11EpxxdK4zocszFYJ357y516XcM5jiuVxc3kJ+LublPBx6+R75Mg26f+d/j
6oEHv1anHg8AMzh1Jlrx3TaV0TPFVfNrJjD48V3ot/1nZRlxKj5qH4+Pgzar3NMZ
RumQTzWM4ch7dHW8A8VkBv4WRkZy9SJuq6JQqLEs3/P0P3L13hZ2DdXaoM5/+Ze0
View docker-for-mac-issue-69.sh
# https://github.com/docker/for-mac/issues/69
# create the directory to mount
mkdir -p ~/test-issue-69/data
# this should work
docker run --rm -it -v ~/test-issue-69/data:/my-data busybox /bin/touch /my-data/foo
# start a container and check periodically if directory is writable
docker run --rm -it -v ~/test-issue-69/data:/my-data busybox /bin/sh -c "while true; do sleep 1;touch /my-data/foo&&echo ok; done"
View HamcrestSugar.java
package com.josketres.test.util;
import org.hamcrest.FeatureMatcher;
import org.hamcrest.Matcher;
import java.util.function.Function;
/**
* Utilities and syntactic sugar stuff for hamcrest.
*/
View josketres.blogspot.com.css
@import url(https://fonts.googleapis.com/css?family=Merriweather:300);
@import url(https://fonts.googleapis.com/css?family=Raleway:400,500,700);
.post-body {
font-family: 'Merriweather', serif;
color: #151515;
font-size: 18px;
font-weight: 300;
line-height: 27px;
letter-spacing: -0.01em;
@josketres
josketres / Benchmark.js
Last active Aug 26, 2015
Small library to do benchmark in javascript
View Benchmark.js
var Benchmark = function() {
};
Benchmark.prototype.start = function() {
this.start = new Date().getTime();
console.time('Benchmark');
};
Benchmark.prototype.stop = function() {
@josketres
josketres / gruntw
Last active Aug 29, 2015
Grunt-cli wrapper
View gruntw
#!/usr/bin/env bash
# Grunt-cli wrapper script for UN*X
# https://gist.github.com/josketres/0e90b4e2b4a9e414708c
grunt_bin=grunt
grunt_check=" --version"
log_prefix="\e[95mgruntw\e[0m -"
command $grunt_bin $grunt_check >/dev/null 2>&1 || {
@josketres
josketres / bowerw
Last active Aug 29, 2015
Bower wrapper
View bowerw
#!/usr/bin/env bash
# Bower wrapper script for UN*X
# https://gist.github.com/josketres/f7a970e55a2e61533206
bower_bin=bower
command bower >/dev/null 2>&1 || {
bower_bin=$HOME/.bowerw/bin/bower
echo "Global bower not found, using $bower_bin";
command $bower_bin >/dev/null 2>&1 || {
@josketres
josketres / install-git.sh
Created Jun 15, 2015
Install newest git on CentOS 6
View install-git.sh
# from https://www.digitalocean.com/community/tutorials/how-to-install-git-on-a-centos-6-4-vps
# added curl-devel - https://stackoverflow.com/questions/8329485/git-clone-fatal-unable-to-find-remote-helper-for-https/13018777#13018777
TMPDIR=/data/tmp
sudo yum install zlib-devel perl-ExtUtils-MakeMaker asciidoc xmlto openssl-devel curl-devel
cd ~
wget -O git.zip https://github.com/git/git/archive/master.zip
unzip git.zip
rm git.zip
cd git-master
make configure
You can’t perform that action at this time.