Skip to content

Instantly share code, notes, and snippets.

@milingo
milingo / git.md
Last active January 29, 2016 09:56
Git

Tutorial

###Remove a merged branch git branch -d BRANCH

git push origin --delete BRANCH

Merge develop with feature branch

git checkout develop

@milingo
milingo / integration
Last active May 29, 2017 11:01
Unit Tests in Java
# Run only failed test on cucumber
mvn test -Dcucumber.options="@target/cucumber-failed.txt"
# Run only a feature on cucumber
mvn clean test -Dcucumber.options="/path/to/feature:37"
or
mvn clean test -Dcucumber.options="--tags @NonGeoLocatedBid"
// Init
new String[]{"a", "b"}
List<String> list = new ArrayList<String>(
Arrays.asList("String A", "String B", "String C")
);
Map<String, Owner> owners = new HashMap<String, Owner>() {{
put("no-money", createOwnerWithoutMoney());
@milingo
milingo / bash.md
Last active April 21, 2017 08:19
Useful shell commands

###tcpdump: tcpdump -lnnvi any -w tcpdump-xvm18.out -s 0

###To list all open ports and their processes: sudo netstat -lpAinet

###To get ips without hostnames: sudo netstat -lpnAinet

###To list only what's using tcp port 443: