This file contains hidden or 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
| function hideallfiles(){ | |
| defaults write com.apple.finder AppleShowAllFiles -bool NO | |
| killall Finder | |
| } | |
| function showallfiles(){ | |
| defaults write com.apple.finder AppleShowAllFiles -bool YES | |
| killall Finder | |
| } | |
| # Path to your oh-my-zsh installation. |
This file contains hidden or 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
| import java.time.Duration; | |
| import java.util.*; | |
| import static java.util.stream.Collectors.toList; | |
| import static java.util.stream.Collectors.*; | |
| /** | |
| * source: | |
| * https://dzone.com/articles/a-java-8-streams-cookbook [last visited on 02/21/17] | |
| **/ | |
| public class Winner { |
This file contains hidden or 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
| # remove all exited containers | |
| docker rm $(docker ps --all -q -f status=exited) | |
| # remove all dangling (not used by any created container) images | |
| docker rmi $(docker images -f "dangling=true" -q) | |
| # remove all images with name (with or without wildcards) | |
| docker rmi -f $(docker images | grep "docker-reg.host.com/imagename.or.partofimagename.*" | awk "{print $3}") | |
| # run docker registry garbage collection |
This file contains hidden or 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
| # opening and closing windows and popovers | |
| defaults write -g NSAutomaticWindowAnimationsEnabled -bool false | |
| # smooth scrolling | |
| defaults write -g NSScrollAnimationEnabled -bool false | |
| # showing and hiding sheets, resizing preference windows, zooming windows | |
| # float 0 doesn't work | |
| defaults write -g NSWindowResizeTime -float 0.001 |
NewerOlder