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 / andadbarch.sh
Created January 16, 2012 03:37 — forked from tahl/andadbarch.sh
Android SDK + NDK + Eclipse and ADB Installer (Pacman)
#!/bin/bash
#PACMAN VERSION <.......@....
#This script is designed to install the Android SDK, NDK, and Eclipse in Linux Mint 11 (and now revised for Arch Linux) and make it easier for people that want to develop for Android using Linux.
#Script written by @ArchDukeDoug with special thanks to @BoneyNicole, @tabbwabb, and @animedbz16 for putting up with me and proofreading and/or testing the script.
#I can be reached at dougw@uab.edu, twitter, or linuxrandomly.blogspot.com
#Script version: 1.0.5
#Changelog: 1.0.5 - Fixed the Android SDK search parameters to fit the new naming scheme on http://developer.android.com/sdk
i=$(cat /proc/$PPID/cmdline)
if [[ $UID = 0 ]]; then
echo "Please execute this script by typing only $0 $*because it cannot be run as the root user."

Docker Cheat Sheet

Why

Why Should I Care (For Developers)

"Docker interests me because it allows simple environment isolation and repeatability. I can create a run-time environment once, package it up, then run it again on any other machine. Furthermore, everything that runs in that environment is isolated from the underlying host (much like a virtual machine). And best of all, everything is fast and simple."

TL;DR, I just want a dev environment

#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas
Due Date Reminder plugin
Issue Hot Buttons Plugin plugin
Parent Ticket Fields plugin
Redmine Select2 plugin
Redmine Auto Watch plugin
@jwcastillo
jwcastillo / zabbixsolaris
Created February 20, 2015 15:17
Zabbix instalación en Solaris 10 & 11
# con usuario root
#tener el empaquetado del agente
mkdir zabbix-agent && cd zabbix-agent
gunzip zabbix_agent*
tar xvf zabbix_agent*
# Install binaries
cp bin/zabbix_* /usr/bin/
cp sbin/zabbix* /usr/sbin/

Node.js - npm Cheat Sheet

(Full description and list of commands at - https://npmjs.org/doc/index.html)

##List of less common (however useful) NPM commands

######Prepand ./bin to your $PATH Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:

#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas
@jwcastillo
jwcastillo / master.blade.php
Last active August 27, 2015 22:03 — forked from ahuballah/master.blade.php
My master layout for Laravel based on the HTML5 BP.
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{ $title }}</title>
<meta name="description" content="">
@jwcastillo
jwcastillo / .bowerrc
Last active August 28, 2015 19:35 — forked from ericlbarnes/.bowerrc
Laravel Elixir With Bootstrap Sass
{
"directory": "vendor/bower_components"
}
@jwcastillo
jwcastillo / localidadeschile.sql
Last active August 31, 2015 20:52
lista de localidades de Chile tipo Region, Provincia y Comunas, en una sola tabla de manera recursiva, basados en http://datos.gob.cl/datasets/ver/29596 y https://josearodrigueze.wordpress.com/2013/04/23/bd-pais-estado-municipio-parroquia/
-- Dumped database version 9.1.7 pg_dump version 9.1.7
-- Started on 2013-04-20 22:59:49 VET
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;