(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| #!/bin/sh | |
| # This script will migrate schema and data from a SQLite3 database to PostgreSQL. | |
| # Schema translation based on http://stackoverflow.com/a/4581921/1303625. | |
| # Some column types are not handled (e.g blobs). | |
| SQLITE_DB_PATH=$1 | |
| PG_DB_NAME=$2 | |
| PG_USER_NAME=$3 |
| require "bundler/capistrano" | |
| require "whenever/capistrano" | |
| # RVM bootstrap | |
| #$:.unshift(File .expand_path( "~/.rvm/lib" )) | |
| set :rvm_ruby_string , 'ruby-1.9.3-p194@askjane' #这个值是你要用rvm的gemset。名字要和系统里有的要一样。 | |
| #set :rvm_ruby_string, ENV['GEM_HOME'].gsub(/.*\//,"") # Read from local system | |
| set :rvm_type , :user # Don't use system-wide RVM | |
| require 'rvm/capistrano' |
| #! /bin/sh | |
| usage_error () { | |
| echo 'Usage: sh migrator.sh <path to sqlite_to_postgres.py> <path to sqlite db file> <an empty dir to output dump files>' | |
| echo | |
| echo 'Example:' | |
| echo '>sh migrator.sh sqlite_to_postgres.py ~/reviewboard.db /tmp/dumps' | |
| echo | |
| echo 'Tested on:' | |
| echo 'Python 2.7.3' |
| hostssl replication replicator 5.6.7.8 md5 |
| CREATE TABLE `makers` ( | |
| `id` int(10) unsigned NOT NULL, | |
| `name` varchar(255) NOT NULL, | |
| `description` varchar(255) NOT NULL, | |
| `created_at` datetime NOT NULL, | |
| `updated_at` datetime NOT NULL, | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
| -- |
Many of us spend many hours of our days using their terminal. Plus, we all have different tastes when it comes to color schemes. That's why the ability to change the color scheme of a terminal is one of its more important featuresl. Throughout this tutorial, I'll teach you how you can change the looks of your terminal, step by step.
This tutorial is aimed at elementary OS users, but it also works for any Ubuntu user. Start by installing dconf-tools:
sudo apt-get install dconf-tools
Secondly, you need to decide which theme you're going to apply. You can find dozens of terminal color schemes online, you can even design your own using this web application. Design the color scheme, hit "Get Scheme" and choose "Terminator". You'll get a raw text file with a background color, a foreground color and a palette. Those strings define your color scheme. In this tutorial, I'll post an
| git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
| echo '# rbenv setup' > /etc/profile.d/rbenv.sh | |
| echo 'export RBENV_ROOT=/usr/local/rbenv' >> /etc/profile.d/rbenv.sh | |
| echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> /etc/profile.d/rbenv.sh | |
| echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh | |
| chmod +x /etc/profile.d/rbenv.sh | |
| source /etc/profile.d/rbenv.sh | |
| git clone https://github.com/sstephenson/ruby-build.git /usr/local/rbenv/plugins/ruby-build | |
| rbenv install 1.9.3-p392 |