docker ps -aq -f status=exited
docker ps -aq --no-trunc -f status=exited | xargs docker rm
docker images -q --filter dangling=true | xargs docker rmi
There are two types of employment permit. Most likely you'll need critical skills permit.
There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore
is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules
directory) as well as files that are generated (and regenerated) as artifacts of a build process.
All other files should be in your own global gitignore file. Create a file called .gitignore
in your home directory and add anything you want to ignore. You then need to tell git where your global gitignore file is.
git config --global core.excludesfile ~/.gitignore
git config --global core.excludesfile %USERPROFILE%\.gitignore
I hereby claim:
To claim this, I am signing this object:
for host in hd1pxx2{1..6}lx; do echo $host; ssh $host "grep \"FATAL\" /home/bmadmin/bmsPRD2012/log/*_website_activity.log | wc -l"; done
grep -rnw '/path/to/somewhere/' -e 'pattern'
-r or -R is recursive,
_complete_ssh_hosts () | |
{ | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \ | |
cut -f 1 -d ' ' | \ | |
sed -e s/,.*//g | \ | |
grep -v ^# | \ | |
uniq | \ | |
grep -v "\[" ; |
#!/bin/sh | |
sbt test |
#!/bin/sh | |
# Files (not deleted) in the index | |
files=$(git diff-index --name-status --cached HEAD | grep -v ^D | cut -c3-) | |
if [ "$files" != "" ] | |
then | |
for f in $files | |
do | |
# Only examine known text files | |
if [[ "$f" =~ [.](scala|java|conf|json|html|js|properties|xml|yml|md|txt)$ ]] |
#!/bin/sh | |
# | |
# Setting up my mac for development. | |
# | |
#Change default screenshots directory | |
mkdir ~/Desktop/screenshots | |
defaults write com.apple.screencapture location ~/Desktop/screenshots && killall SystemUIServer | |
#install brew and brew cask | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |