(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:
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| ############################################# | |
| # Push de la rama actual | |
| git push origin $rama_actual | |
| ############################################# | |
| # Volver a un commit anterior, descartando los cambios | |
| git reset --HARD $SHA1 | |
| ############################################# | |
| # Ver y descargar Ramas remotas |
| <?php | |
| $certificateCAcer = '/certificate.cer'; | |
| $certificateCAcerContent = file_get_contents($certificateCAcer); | |
| /* Convert .cer to .pem, cURL uses .pem */ | |
| $certificateCApemContent = '-----BEGIN CERTIFICATE-----'.PHP_EOL | |
| .chunk_split(base64_encode($certificateCAcerContent), 64, PHP_EOL) | |
| .'-----END CERTIFICATE-----'.PHP_EOL; |
Create an empty git repo or reinitialize an existing one
git init| <?php | |
| class BlogController extends Controller | |
| { | |
| /** | |
| * Posts | |
| * | |
| * @return void | |
| */ | |
| public function showPosts() |
-- Firstly, remove PRIMARY KEY attribute of former PRIMARY KEY
ALTER TABLE <table_name> DROP CONSTRAINT <table_name>_pkey;-- Then change column name of your PRIMARY KEY and PRIMARY KEY candidates properly.
ALTER TABLE <table_name> RENAME COLUMN <primary_key_candidate> TO id;| helpfull links | |
| (1) https://gist.github.com/cbednarski/5379830 | |
| (2) http://www.clarifylinux.org/2012/04/ubuntu-1204-tweak-and-hack-round-up.html | |
| (3) http://jeffhendricks.net/?p=68 | |
| (4) BEST for 64 bit http://www.randomhacks.co.uk/how-to-install-balsamiq-mockups-on-ubuntu-13-10/ | |
| The steps I did | |
| RUN>> | |
| locate libgnome-keyring.so /usr/lib/i386-linux-gnu/libgnome-keyring.so.0 /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 |
| $ cd ~ | |
| $ sudo curl -sS https://getcomposer.org/installer | sudo php | |
| $ sudo mv composer.phar /usr/local/bin/composer | |
| $ sudo ln -s /usr/local/bin/composer /usr/bin/composer | |
| then you can run | |
| $ sudo composer install |