Skip to content

Instantly share code, notes, and snippets.

View jansanchez's full-sized avatar

Jan Sanchez jansanchez

View GitHub Profile
@jansanchez
jansanchez / Cakefile
Created October 4, 2013 17:01 — forked from jrmoran/Cakefile
# Cakefile to document, compile, join and minify CoffeeScript files for
# client side apps. Just edit the config object literal.
#
# -jrmoran
fs = require 'fs'
{exec, spawn} = require 'child_process'
# order of files in `inFiles` is important
config =
@jansanchez
jansanchez / tips
Created October 10, 2013 20:23 — forked from andru255/tips
1. o minuscula = ubica el cursor a la sgte linea listo para escribir osea entra a modo inserción y enfoca al cursor a la linea sgte
1.1 O = crea una linea nueva sobre el cursor donde estoy y entra a modo insercion y enfoca el cursor a esa nueva linea.
2. :w [ruta_del_archivo] = para guardar un archivo en otra ruta
3. h j k l = izquiera, abajo, arriba, derecha
4. u: para deshacer
Se modifica el archivo en modo adminitrador:
~ sudo [nombre_editor] /etc/environment/
y se agregan estas líneas
no_proxy="127.0.0.1,localhost"
NO_PROXY="127.0.0.1,localhost"
all_proxy=socks://172.21.0.83:3128/
ALL_PROXY=socks://172.21.0.83:3128/
#seteamos el prefijo
set -g prefix C-a
#limpiamos la combinación por defecto
unbind C-b
#cambiando el delay por default de ejecución de comandos de tmux
set -sg escape-time 1
bind C-a send-prefix
@jansanchez
jansanchez / tmux.md
Created December 11, 2013 17:42 — forked from andreyvit/tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@jansanchez
jansanchez / tmux.conf
Created December 11, 2013 17:55 — forked from shinzui/tmux.conf
# ~/.tmux.conf
#
# See the following files:
#
# /opt/local/share/doc/tmux/t-williams.conf
# /opt/local/share/doc/tmux/screen-keys.conf
# /opt/local/share/doc/tmux/vim-keys.conf
#
# URLs to read:
#
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
aws: grunt.file.readJSON('config/grunt-aws.json'),
datetime: Date.now(),
jshint: {
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 100, // Maximum errors before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.
"node" : true,

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"

npm adduser