Skip to content

Instantly share code, notes, and snippets.

View jwcastillo's full-sized avatar
馃彔
Working from home

Jos茅 Wenceslao Castillo jwcastillo

馃彔
Working from home
View GitHub Profile
@jwcastillo
jwcastillo / System Design.md
Created April 24, 2017 17:53 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@jwcastillo
jwcastillo / i3.conf
Created January 24, 2017 19:16 — forked from diyan/i3.conf
i3 tiling window manager configuration
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@jwcastillo
jwcastillo / how-to-reproduce.sh
Created October 2, 2016 23:30 — forked from jasonrudolph/how-to-reproduce.sh
Rake tasks fail to log when running in production mode
# generate a fresh app
rails -v
rails new whizbang
cd whizbang
# show empty log file
cat log/production.log
# script/runner successfully writes to the log file
./script/rails runner 'Rails.logger.error("Hello from script/runner")' -e production
@jwcastillo
jwcastillo / tmux-cheatsheet.markdown
Created September 16, 2016 13:09 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@jwcastillo
jwcastillo / Colaborar Proyecto GitHub.markdown
Created September 14, 2016 03:18 — forked from BCasal/Colaborar Proyecto GitHub.markdown
Pasos a seguir para colaborar en un proyecto de GitHub

C贸mo colaborar en un proyecto en GitHub

  • Fork del repositorio
  • Clonar el repositorio
  • Actualizar la rama master
  • Crear una rama
  • Hacer los cambios
  • Hacer un Pull Request

Fork del repositorio

@jwcastillo
jwcastillo / save-all-images.sh
Created September 6, 2016 13:48 — forked from lalyos/save-all-images.sh
script to save all docker image, and load them back
reload() {
source ${BASH_SOURCE[0]}
}
alias r=reload
get-image-field() {
local imageId=$1
local field=$2
: ${imageId:? reuired}
@jwcastillo
jwcastillo / 1_Dockerised_JMeter.md
Created August 31, 2016 18:50 — forked from hhcordero/1_Dockerised_JMeter.md
Dockerized JMeter - A Distributed Load Testing Workflow
import speech_recognition
import pyttsx
speech_engine = pyttsx.init('sapi5') # see http://pyttsx.readthedocs.org/en/latest/engine.html#pyttsx.init
speech_engine.setProperty('rate', 150)
def speak(text):
speech_engine.say(text)
speech_engine.runAndWait()
@jwcastillo
jwcastillo / README.md
Created February 13, 2016 15:53 — forked from magnetikonline/README.md
IE 7/8/9/10/11 Virtual machines from Microsoft - Linux w/VirtualBox installation notes.
@jwcastillo
jwcastillo / 0 Easy deployment with Grunt and git.md
Created February 5, 2016 18:35 — forked from sarahhenderson/0 Easy deployment with Grunt and git.md
Single command deploy for an Angular/Node web application to Ubuntu EC2 instance

Easy deployment with Grunt and Git

Angular/Node.js web application to Ubuntu EC2 instance

Objective

Deploy entire site to server using a single command grunt deploy

Assumptions

  1. Your web application exists on your local machine in a git repo
  2. You can log into your server via ssh without a password
  3. You are using grunt for your build process