Skip to content

Instantly share code, notes, and snippets.

View gabamnml's full-sized avatar
:electron:
Focusing

Gabriel Aramburu gabamnml

:electron:
Focusing
View GitHub Profile
@gabamnml
gabamnml / pinpass.txt
Created July 24, 2014 16:55
PinPass template for 1Password
Copy this table in 'Secure Notes' and obtain perfect result on 1Password
-------------------------------------------
| | A | B | C | D | E | F | G | H | I | J |
-------------------------------------------
| 1 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 |
-------------------------------------------
| 2 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 |
-------------------------------------------
| 3 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 |
@gabamnml
gabamnml / .slate.js
Last active August 29, 2015 14:07 — forked from gfreezy/.slate.js
var pushRight = slate.operation("push", {
"direction": "right",
"style": "bar-resize:screenSizeX/2"
});
var pushLeft = slate.operation("push", {
"direction": "left",
"style": "bar-resize:screenSizeX/2"
});

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@gabamnml
gabamnml / README.md
Created September 25, 2015 23:42 — forked from miguelmota/README.md
Multiple accounts with Mutt E-Mail Client
How to set up multiple accounts with Mutt E-mail Client

Thanks to this article by Christoph Berg

Instructions

Directories and files

~/
@gabamnml
gabamnml / serverup.py
Created January 30, 2012 13:10
Django with Tornado
#! /usr/bin/env python
import os
import tornado.httpserver
import tornado.ioloop
import tornado.wsgi
import sys
import django.core.handlers.wsgi
sys.path.append('/your/project/path/')
def main():
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
@gabamnml
gabamnml / gist:1852992
Created February 17, 2012 12:08
Live view of logs
tail -f log/development.log
@gabamnml
gabamnml / gist:1852979
Created February 17, 2012 12:05
add public key to server
cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys'
@gabamnml
gabamnml / gist:2018804
Created March 12, 2012 00:14
use utf8 characters on Django
Do you have this at the beginning of your script:
# -*- coding: utf-8 -*-
@gabamnml
gabamnml / gist:2307690
Created April 5, 2012 03:14
List of commands for Vim
// Split window on open file
:split filetoopen.py or vertical :vsplit sistema.py
// For navigate on windows intances
Ctrl+w+Arrows or Ctrl+ww
// Show numbers on lines
:set number
// Search & replace
@gabamnml
gabamnml / gist:2351494
Created April 10, 2012 13:46
Django Debug Toolbar conf. for VMware
if DEBUG:
from fnmatch import fnmatch
class glob_list(list):
def __contains__(self, key):
for elt in self:
if fnmatch(key, elt): return True
return False
INTERNAL_IPS = glob_list(['127.0.0.1', '192.168.*.*'])