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 ruby | |
require 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
doc = Nokogiri::HTML(open('http://www.nsovocal.com/rosa/')) | |
puts doc.css('#episodio').to_s.gsub(/<\/?[^>]*>/, '').strip |
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
HISTCONTROL=ignoredups:ignorespace | |
shopt -s histappend | |
HISTSIZE=1000 | |
HISTFILESIZE=2000 | |
alias ls='ls --color=auto' | |
alias ll='ls -al' | |
alias vb2='cd /c/AppServ/www/viewbug/viewbug2/' | |
alias vb='cd /c/AppServ/www/viewbug/viewbug/' | |
alias ..="cd .." |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
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
# Aliases | |
alias gs='git status' | |
alias ll='ls -l' | |
alias gd='git branch -d' |
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/sh | |
extra="" | |
if [[ "$1" != "" ]]; then | |
revnumber=$(git rev-parse $1) | |
extra="/commit/$revnumber" | |
fi | |
open `git config -l | sed -En 's/remote.origin.url=git(@|:\/\/)github.com(:|\/)(.+)\/(.+).git/https:\/\/github.com\/\3\/\4/p'`$extra |
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
## | |
# Your previous /Users/mariob/.profile file was backed up as /Users/mariob/.profile.macports-saved_2011-07-26_at_11:15:25 | |
## | |
# MacPorts Installer addition on 2011-07-26_at_11:15:25: adding an appropriate PATH variable for use with MacPorts. | |
export PATH=$HOME/bin:/opt/local/bin:/opt/local/sbin:$PATH | |
# Finished adapting your PATH environment variable for use with MacPorts. | |
export EDITOR='mvim' | |
PROMPT_COMMAND=$PROMPT_COMMAND${PROMPT_COMMAND:+;}'PS1="\[\e[1;31m\]\u \[\e[0m\]\[\e[01m\]\t\[\e[0m\] \[\e[1;32m\]`~/bin/branch.sh`\[\e[0m\]\[\e[1;35m\]`~/bin/stash.sh`\[\e[0m\]\[\e[33m\]\w \[\e[0m\]\[\e[1m\]\$\[\e[0m\] "' | |
alias mysql='mysql5' |