Skip to content

Instantly share code, notes, and snippets.

View jansanchez's full-sized avatar

Jan Sanchez jansanchez

View GitHub Profile
@jansanchez
jansanchez / check_rep.py
Created November 22, 2017 04:01 — forked from edran/check_rep.py
Runs through a directory of starcraft replays and outputs all the corrupt ones
# This script tries as best as possible to filter out bad replays
# Pass it a subdir, and it will read all '.rep' files, and spit out a list
# of the corrupt files in stdout
from __future__ import print_function
from pyreplib import replay # https://github.com/HearthSim/pyreplib/
from itertools import repeat
from multiprocessing import Pool, Process, Pipe
from multiprocessing.pool import ThreadPool
import os
import sys
@jansanchez
jansanchez / multiple_ssh_setting.md
Created November 13, 2016 03:09 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
/*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: {
@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:
#
@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

#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
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/
@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
@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 =