For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
| wget http://download.mono-project.com/repo/xamarin.gpg | |
| sudo apt-key add xamarin.gpg | |
| echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee --append /etc/apt/sources.list.d/mono-xamarin.list | |
| sudo apt-get update | |
| sudo apt-get install mono-complete | |
| sudo certmgr -ssl -m https://go.microsoft.com | |
| sudo certmgr -ssl -m https://nugetgallery.blob.core.windows.net | |
| sudo certmgr -ssl -m https://nuget.org | |
| mozroots --import --sync |
| import ebaysdk | |
| from ebaysdk import finding | |
| api = finding(siteid='EBAY-GB', appid='<REPLACE WITH YOUR OWN APPID>') | |
| api.execute('findItemsAdvanced', { | |
| 'keywords': 'laptop', | |
| 'categoryId' : ['177', '111422'], | |
| 'itemFilter': [ | |
| {'name': 'Condition', 'value': 'Used'}, |
| wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1 | |
| # --no-check-cerftificate was necessary for me to have wget not puke about https | |
| curl -LJO https://github.com/joyent/node/tarball/v0.7.1 |
| # -*- coding: utf-8 -*- | |
| import sys, os | |
| sys.path.insert(0, os.path.abspath('extensions')) | |
| extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', | |
| 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig', | |
| 'epub2', 'mobi', 'autoimage', 'code_example'] |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
Update 2022: git checkout -p <other-branch> is basically a shortcut for all this.
FYI This was written in 2010, though I guess people still find it useful at least as of 2021. I haven't had to do it ever again, so if it goes out of date I probably won't know.
Example: You have a branch refactor that is quite different from master. You can't merge all of the
commits, or even every hunk in any single commit or master will break, but you have made a lot of
improvements there that you would like to bring over to master.
Note: This will not preserve the original change authors. Only use if necessary, or if you don't mind losing that information, or if you are only merging your own work.