Skip to content

Instantly share code, notes, and snippets.

View zundr's full-sized avatar

José Antonio Pérez Sánchez zundr

View GitHub Profile
@zundr
zundr / .cVimrc
Last active August 29, 2015 14:27
.cVimrc
set autoupdategist
set noautofocus
let barposition = "bottom"
let highlight = "#ffff00"
let typelinkhintsdelay = 0
let hintcharacters = "fdsawerjkiop"
let locale="us"
let scrollstep = 100
map ; :
@zundr
zundr / erlang.def
Created June 18, 2015 09:53
Erlang syntax highlighting rules for Fisheye/Crucible
syntaxdef erlang {
# whitespace
/\s+/m : ;
# single line comment
/%+\s*(.*)$/m : {
in_comment(${1});
region {
type=comment;
package com.andraskindler.playground.adapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.andraskindler.playground.Item;
import com.andraskindler.playground.R;
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@zundr
zundr / vromerc
Last active August 29, 2015 13:56
Vrome config
" NOTE you must separate sites with ", " not a simple "," (no quotes).
set disablesites=*.google.com/*, github.com, cloud.feedly.com
set searchengines+={"mdn":"https://developer.mozilla.org/en-US/search?q={{keyword}}","wp":"http://en.wikipedia.org/wiki/{{keyword}}","discogs":"http://discogs.com/search?q={{keyword}}","gh":"http://github.com/search?q={{keyword}}","gcache":"http://webcache.googleusercontent.com/search?q=cache:{{keyword}}","image":"http://www.google.com/search?hl=en&tbm=isch&q={{keyword}}","rd":"http://www.ruby-doc.org/q/{{keyword}}","word":"http://www.wordnik.com/words/{{keyword}}"}
set defaultsearch=google
map R <C-r>
map <M-R> R
#!/bin/bash -ex
# Paste this into ssh
# curl -sL https://gist.github.com/zundr/8080633/raw/bootstrap_homeshick.sh | tar -xzO | /bin/bash -ex
# When forking, you can get the URL from the raw (<>) button.
### Set some command variables depending on whether we are root or not ###
# This assumes you use a debian derivate, replace with yum, pacman etc.
aptget='sudo apt-get'
chsh='sudo chsh'
@zundr
zundr / dotfiles-installer.sh
Last active October 9, 2015 05:48
dotfiles installer functions
function msg() {
local color="\033[${1}m"
local message=$2
local normal="\033[0m"
echo -e "${color}${message}${normal}"
}
function link_files() {
local source_dir=$1
local pattern=$2
@zundr
zundr / stack-trace-without-exception.js
Created December 25, 2011 09:59 — forked from jay3sh/stack-trace-without-exception.js
print stack trace anywhere
function foo(args) {
var i, j, k;
// ...
// j acquires some interesting value
// Who called foo when j took this interesting value?
//
var e = new Error('dummy');
var stack = e.stack.replace(/^[^\(]+?[\n$]/gm, '')
.replace(/^\s+at\s+/gm, '')