This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Recursively does a search & replace in the given directory. | |
Usage: python renamer.py <dir> <search> <replace> | |
""" | |
import os | |
import re | |
import sys | |
from fabric.colors import red |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#set -x | |
# Shows you the largest objects in your repo's pack file. | |
# Written for osx. | |
# | |
# @see http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/ | |
# @author Antony Stubbs | |
# set the internal field spereator to line break, so that we can iterate easily over the verify-pack output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Removes the given paths permanently from the git index and tree. | |
# | |
set -e | |
function stats { | |
echo | |
echo "Git Objects:" | |
git count-objects -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Exports Assembla tickets in XML format to GitHub issues. | |
// | |
// Usage: $ ./export-tickets path/to/tickets.xml repository_name | |
// | |
package main | |
import ( | |
"os" | |
"fmt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
function getBodyText(win) { | |
var doc = win.document, | |
body = doc.body, | |
selection, range, bodyText; | |
if (body.createTextRange) { | |
return body.createTextRange().text; | |
} else if (win.getSelection) { | |
selection = win.getSelection(); | |
range = doc.createRange(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html><head><title>Caritas</title></head> | |
<body> | |
<style> | |
body{ padding-left:50px;} | |
#stage { | |
border:1px solid #ccc; | |
cursor:pointer; | |
background:#eee; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head><meta charset="utf-8"></head> | |
<body> | |
<div id="loading"> | |
<h2>Cargando información...</h2> | |
<h3>Esto puede tomar unos minutos</h3> | |
</div> | |
<div id="service-unavailable"> | |
<h2>Por favor intente más tarde, disculpe las molestias</h2> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Events" | |
tell current location of network preferences | |
set VPNService to service "SVPN" | |
if exists VPNService then | |
connect VPNService | |
end if | |
end tell | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Expand tabs in php files. | |
$ for i in $(find ./* -iname "*.php"); do awk '{sub("\t"," ",$0); print $0}' $i > ~/e.tmp && cat ~/e.tmp > $i; done |
OlderNewer