Simple Introduction to Scalaz
Recently InfoQ published a presentation named "Scalaz for Rest of us" by Adam Rosien, which introduces some basic building blocks of scalaz. Explanations are really simple and will help you to shed your fears on scalaz.
This is collection of useful GIT commands I use in my day today work. Just posting here to keep as my own reference.
Revert changes made to your working copy:
git checkout .
Revert changes made to the index (i.e., that you have added):
git reset
Revert a change that you have committed, do this:
git revert ...
View commits not yet pushed to remote:
git log --branches --not --remotes
Not pushed most recent commit with branch name:
git log --branches --not --remotes --simplify-by-decoration --decorate --oneline
Difference between two branches:
git diff --stat --color master..branch
Here the order of branch name is merge-target..merge-source.
Create remote tracking branch:
git branch --track feature1 origin/my-remote-branch
Here git fetch/pull from feature1 branch will get the updates from my-remote-branch
Create new local branch from remote branch:
git branch --no-track feature2 origin/master
Push local branch to remote repository:
git push origing feature2
Checkout specific file from differrent branch:
git checkout remote/branch path/to/file
sudo groupadd wireshark sudo usermod -a -G wireshark YOUR_USER_NAME sudo chgrp wireshark /usr/bin/dumpcap sudo chmod 750 /usr/bin/dumpcap sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap sudo getcap /usr/bin/dumpcap
sudo chmod +xs /usr/bin/dumpcap
# hms-git
Host hms-git
HostName git.myoffice.com
User git
IdentityFile /home/sandarenu/.ssh/id_rsa
# github
Host github.com
HostName github.com
User git
IdentityFile /home/sandarenu/.ssh/id_rsa_github
Once this config file is saved I could clone office git projects usingclass Order { private List<Item> items; //more code ... } class Item { private String itemId; private String name; //more code ... }
<plugins>
....<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<directory>
${project.build.directory}/minimized
</directory>
<targetPath>/</targetPath>
<filtering>false</filtering>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
<groupId>net.sf.alchim</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>0.7.1</version>
<executions>
<execution>
<goals>
<goal>compress</goal>
</goals>
</execution>
</executions>
<configuration>
<webappDirectory>
${project.build.directory}/minimized
</webappDirectory>
<nosuffix>true</nosuffix>
</configuration>
</plugin>
....</plugins>
Glued Ideas Subtle designed by Christopher Frazier, Blogger Templates by Blogcrowds.