As configured in my dotfiles.
start new:
tmux
start new with session name:
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
## User specific aliases and functions | |
export COLUMNS |
# ~/.bash_logout | |
/usr/bin/clear |
#=== Real life examples === | |
graph = RDF::Graph.new | |
# read from file | |
graph = RDF::Graph.load("http://datagraph.org/jhacker/foaf.nt") | |
# -or- from the web | |
graph = RDF::Graph.load("http://dbpedia.org/resource/Elvis_Presley") | |
graph << RDF::RDFa::Reader.open("http://www.bestbuy.com/shop/ipad+xoom+-windows") | |
graph.each_predicate { |s| puts s.inspect } |
<% [:notice, :error, :alert].each do |level| %> | |
<% unless flash[level].blank? %> | |
<div class="alert-message <%= flash_class(level) %>"> | |
<a class="close" href="#">×</a> | |
<%= content_tag :p, flash[level] %> | |
</div> | |
<% end %> | |
<% end %> |
# | |
# Jekyll migrator for Drupal 7+ | |
# adrianmejia.com | |
# | |
require 'rubygems' | |
require 'sequel' | |
require 'fileutils' | |
require 'yaml' |
amejia@DEVCOOPPC-W7 /C/amr/tickets/ticket_2109_SQR_OK_TO_RELEASE (master) | |
$ echo $PS1 | |
\[\033]0;$MSYSTEM:\w\007 \033[32m\]\u@\h \[\033[33m\w$(__git_ps1)\033[0m\] $ |
#!/bin/bash | |
set -e # exit on error | |
### README | |
# * installs your desired ruby versions using rbenv | |
# ** including openssl (needed by bundler) | |
# ** including sqlite (probably needed for rails apps) | |
# | |
# Before you start: | |
# * put ssh-keys in place |
As configured in my dotfiles.
start new:
tmux
start new with session name:
# A two-line colored Bash prompt (PS1) with Git branch and a line decoration | |
# which adjusts automatically to the width of the terminal. | |
# Screenshot: http://img194.imageshack.us/img194/2154/twolineprompt.png | |
# Michal Kottman, 2012 | |
RESET="\[\033[0m\]" | |
RED="\[\033[0;31m\]" | |
GREEN="\[\033[01;32m\]" | |
BLUE="\[\033[01;34m\]" | |
YELLOW="\[\033[0;33m\]" |
# bash | |
alias b='vi ~/.bash_login' | |
alias u='source ~/.bashrc' | |
#ls | |
alias l='ls -CF' | |
alias ll='ls -alFc' | |
alias la='ls -A' | |
alias lt='ls -lart' |