Gist deleted. Use https://github.com/jcaraballo/ubuntu-idea-fix-keybindings instead
In Github, click on Fork. For example, if you go to https://github.com/timt/naive-http and click on Fork, I'll get my own copy on https://github.com/jcaraballo/naive-http
Clone your copy of the repo
$ git clone https://github.com/jcaraballo/naive-http
Now you have a master branch
$ git branch
- master
Every now and then I have to reinstall a system from scratch, putting the contents on the side. Before I used to go through the system and decide what to manually copy. Nowadays it's so much easier and relatively cheap to copy the whole thing.
In order to copy the partition /dev/sda1 to an image file:
sudo dd if=/dev/sda1 of=image-file.ddimg bs=4M
(The bs size depends on the hardware)
This will probably work gzipping the image on the fly:
Copy to *
buffer, with for example gg"*yG
. You will be able to paste with the mouse middle button) From http://stackoverflow.com/questions/1620018/vi-editor-copy-all-the-lines-to-clipboard
Copy ftdetect/scala.vim
indent/scala.vim
and syntax/scala.vim
from https://github.com/scala/scala-dist/tree/master/tool-support/src/vim to ~/.vim
Add syntax on
to ~/.vimrc
#Getting the fingerprints
The one associated to the server's ECDSA public key (the one that's normally shown when ssh-ing for the first time):
$ ssh-keygen -l -f /etc/ssh/ssh_host_ecdsa_key.pub
Or, if RSA is negociated, the RSA public key
$ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub
Basically, follow the instructions in the Ubuntu site https://help.ubuntu.com/community/CitrixICAClientHowTo#Citrix_ICA_Client_12.1_on_Ubuntu_11.10_64-bit
They have a link to a patched version of the broken official package. Alternatively, download the official one and fix as follows:
Extract control.tar.gz:
$ mkdir fiddle
$ cd fiddle
$ ar x ../icaclient_12.1.0_amd64.deb control.tar.gz
#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync