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
#!/bin/bash | |
docker stats --format "table {{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}" $(docker ps|grep -v "NAMES"|awk '{ print $NF }'|tr "\n" " ") |
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
# Docker & Java | |
## Context | |
How to deal with memory when a JVM is running in a docker container ? | |
## Analyze and solutions | |
- read [Java inside docker: What you must know to not FAIL](https://developers.redhat.com/blog/2017/03/14/java-inside-docker/) | |
- use fabrivio java docker container [Fabric8 Java Base Image OpenJDK 8 (JDK)](https://hub.docker.com/r/fabric8/java-jboss-openjdk8-jdk/) |
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
# Docker & Java | |
## Context | |
How to deal with memory when a JVM is running in a docker container ? | |
## Analyze and solutions | |
- read [Java inside docker: What you must know to not FAIL](https://developers.redhat.com/blog/2017/03/14/java-inside-docker/) | |
- use fabrivio java docker container [Fabric8 Java Base Image OpenJDK 8 (JDK)](https://hub.docker.com/r/fabric8/java-jboss-openjdk8-jdk/) |
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
# From http://garmoncheg.blogspot.com/2012/06/pretty-git-log.html | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --" |
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://resthooks.org/ : REST Hooks itself is not a specification, it is a collection of patterns that treat webhooks like subscriptions. These subscriptions are manipulated via a REST API just like any other resource. That's it. Really. |
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
# Randoop -> create junit tests | |
# Cognizant test scripter |
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
# Set in .git/gitconfig | |
[diff] | |
tool = meld | |
[difftool] | |
prompt = false | |
[difftool "meld"] | |
trustExitCode = true | |
cmd = open -W -a Meld --args \"$LOCAL\" \"$REMOTE\" | |
[merge] | |
tool = meld |
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
# Set in .git/gitconfig | |
[diff] | |
tool = meld | |
[difftool] | |
prompt = false | |
[difftool "meld"] | |
trustExitCode = true | |
cmd = open -W -a Meld --args \"$LOCAL\" \"$REMOTE\" | |
[merge] | |
tool = meld |
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
[diff] | |
tool = winmerge | |
[difftool "winmerge"] | |
name = WinMerge | |
trustExitCode = true | |
cmd = "/c/Program\\ Files\\ \\(x86\\)/WinMerge/WinMergeU.exe" -u -e $LOCAL $REMOTE | |
[merge] | |
tool = winmerge |
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
# Debian 9 "Stretch" | |
sudo apt-get install -y virtualbox | |
echo "deb http://download.virtualbox.org/virtualbox/debian stretch contrib" > /etc/apt/sources.list.d/virtualbox.list | |
wget https://www.virtualbox.org/download/oracle_vbox_2016.asc | |
sudo apt-key add oracle_vbox_2016.asc | |
sudo apt-get -o Acquire::ForceIPv4=true -y update | |
sudo apt-get install -y virtualbox-5.1 | |
# TODO : fix issue | |
# N: Skipping acquire of configured file 'contrib/binary-armhf/Packages' as repository 'http://download.virtualbox.org/virtualbox/debian stretch InRelease' doesn't support architecture 'armhf' |