(Several of these git examples have been extracted from the book 'Pragmatic guide to GIT' of Travis Swicegood )
git config --global user.name "Fernando Guillen"
git config --global user.email "[email protected]"
cd /develop/myrepo
export PS1='\[\033[0;36m\][\h] \[\033[0;35m\]\u\[\033[0;33m\] \w\[\033[0;00m\] \[\033[0;37m\]$(__git_ps1 "(%s)")\[\033[0;00m\] $ ' |
function saveToFile() { | |
var canvasData = document.getElementById('sampleCanvas').msToBlob(); | |
var windowsStorage = Windows.Storage; | |
var inputStream, outputStream; | |
windowsStorage.KnownFolders.picturesLibrary.createFileAsync('sample.png', windowsStorage.CreationCollisionOption.replaceExisting) | |
.then(function (file) { | |
return file.openAsync(windowsStorage.FileAccessMode.readWrite); | |
}).then(function (out) { | |
inputStream = canvasData.msDetachStream(); | |
canvasData.msClose(); |
INSERTING TEXT | |
ESC command mode | |
i Insert before cursor | |
I Insert before line | |
a Append after cursor | |
A Append after line | |
o Open blank line below the cursor | |
O Open blank line above the cursor |
find . -name "*.first" -exec rename -v 's/\.first$/\.second/' {} + |
include Rails.application.routes.url_helpers | |
default_url_options[:host] = "localhost" |
En Mozilla 1.7 y Firefox 2.0 o posteriores es necesario activar la preferencia: signed.applets.codebase_principal_support. Para ello, introducir about:config en el campo de entrada de la URL y pulsar Enter. Se obtendrá una lista de las preferencias. Buscar la preferencia anterior, realizar doble-click sobre ella y cambiar su valor de false a true. |
ssh -L local_port:destination_host:destination_port -l username middle_host |
CFLAGS='-g -O0 -DRUBY_EXPORT -D_GNU_SOURCE=1' rvm install ruby-1.8.6-p287 --with-openssl-dir=/home/jvp/src/openssl-0.9.8c |
(Several of these git examples have been extracted from the book 'Pragmatic guide to GIT' of Travis Swicegood )
git config --global user.name "Fernando Guillen"
git config --global user.email "[email protected]"
cd /develop/myrepo
sudo apt-get install build-essential | |
sudo apt-get install curl | |
sudo apt-get install zlib1g-dev libreadline5-dev libssl-dev libxml2-dev | |
sudo apt-get install ruby1.8 rubygems1.8 | |
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) |