Skip to content

Instantly share code, notes, and snippets.

View tprado's full-sized avatar
🎯
Focusing

Thiago Prado tprado

🎯
Focusing
View GitHub Profile
docker_ps_exited() {
docker ps -a -q -f status=exited
}
docker_dangling_images() {
docker images -f 'dangling=true' -q
}
docker_cleanup() {
local pids
set-option -g default-command $SHELL
set-option -g status-fg white
set-option -g status-bg default
set-option -g status-interval 5
set-option -g message-fg white
set-option -g message-bg default
set-option -g message-attr bright
set-option -g pane-border-fg black
@tprado
tprado / RandomSpike.java
Last active August 29, 2015 14:26
java random spike
import java.util.Random;
public class RandomSpike {
private static final int PERCENTAGE = 50;
public static void main(String[] args) {
intNext100Example();
intNext100KExample();
doubleExample();