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 | |
# Usage: findjar <class name or pattern> <directories> | |
# Example: findjar StringUtils . | |
class=$1 | |
shift | |
for f in `find $* -type f -name "*.jar"`; do | |
match=$(jar tf $f 2>/dev/null| grep $class); |
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/sh | |
# Usage: jgrep foo | |
# Searches all java files under the current directory | |
grep -i "$*" `find . -name '*.java'` |
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/sh | |
grep $* pom.xml */pom.xml |
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
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist | |
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist |
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
sudo tcpdump -ntlp port 514 2>/dev/null| perl -ne 'next unless /^IP (.*).[0-9]* >/; print $1,$/ if !$d{$1}++' |
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
lsof -a +L1 / | grep deleted | wc -l |
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
# To listen on eth0 | |
tshark -ln -i eth0 -q -d udp.port==17019,syslog -T fields -E separator=" " -e ip.src -e syslog.msg -f 'udp port 17019' | |
# Older versions supported this syntax: | |
tshark -ln -i eth0 -q -d udp.port==17019,syslog -T fields -E separator=" " -e ip.src -e syslog.msg udp port 17019 |
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
import logging | |
import os | |
from glob import glob | |
from distutils.version import LooseVersion | |
log = logging.getLogger(__name__) | |
def __virtual__(): | |
''' | |
Restrict this to Ubuntu minions |
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
minikube start --vm-driver hyperv --hyperv-virtual-switch "minikube" -v=10 | |
# Also needed to add an external "minikube" virtual switch | |
# Network performance was poor until I updated my wireless network driver |
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
Remove the credsStore line from ~/.docker/config.json | |
This worked fine for me with Docker Desktop, but stopped working with Docker Toolbox | |
~/.m2/settings.xml | |
Update with the token from `aws ecr get-login --no-include-email` | |
Ugly solution but it works. | |
If that doesn't work, try restarting docker toolbox: | |
docker-machine stop | |
docker-machine start |
OlderNewer