This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
type Foo struct { | |
FirstName string `tag_name:"tag 1"` | |
LastName string `tag_name:"tag 2"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ask for the user password | |
# Script only works if sudo caches the password for a few minutes | |
sudo true | |
# Install kernel extra's to enable docker aufs support | |
sudo apt-get -y install linux-image-extra-$(uname -r) | |
# Add Docker PPA and install latest version | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -qO- https://get.docker.io/gpg | sudo apt-key add - | |
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" | |
sudo apt-get update | |
sudo apt-get install lxc-docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "public_network" | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo apt-get update | |
curl -sSL https://get.docker.com/ubuntu/ | sudo sh | |
SHELL | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install new or upgrades to latest | |
curl -sSL https://get.docker.com/ | sudo bash | |
note: | |
If you would like to use Docker as a non-root user, you should now consider | |
adding your user to the "docker" group with something like: | |
sudo usermod -aG docker your-user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tree -L 1 | |
. | |
| - HEAD # The git branch in which the project is currently in the | |
| - Config # project configuration information, git config command will change it | |
| - Description # description of project | |
| - Hooks / # system default hook scripts directory | |
| - Index # index file | |
| - History logs / # of each refs | |
| - Objects / # Git local repository for all objects (commits, trees, blobs, tags) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Undoing a merge: | |
$ git pull $REMOTE $BRANCH | |
# uh oh, that wasn't right | |
$ git reset --hard ORIG_HEAD | |
# should be ok now... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://nvie.com/posts/a-successful-git-branching-model/ | |
https://github.com/sitaramc/gitolite | |
http://gitlabhq.com/ | |
http://marklodato.github.com/visual-git-guide/index-en.html | |
http://gitimmersion.com/ | |
http://try.github.com/levels/1/challenges/1 | |
https://jellyjelly.net/blog/2012/05/04/our-git-development-workflow/ | |
http://help.github.com/git-cheat-sheets/ | |
http://gitref.org/ | |
http://schacon.github.com/git/user-manual.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://viget.com/extend/effectively-using-git-with-subversion | |
http://viget.com/extend/a-gaggle-of-git-tips | |
http://john.albin.net/git/convert-subversion-to-git | |
http://help.github.com/import-from-subversion/ | |
http://git.or.cz/course/svn.html | |
http://subgit.com/about/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a new branch and fetch frome remote branch | |
$ git checkout -b hotfix origin/hotfix | |
// Create a branch based one commit | |
// Fix branch | |
$ git checkout -b hotfix 7bda10c6488835f4c54079cec78cc539a0c152c6 | |
$ git push origin hotfix | |
// Create a new branch hotfix based on master | |
$ git checkout -b hotfix master |
OlderNewer