screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
ls -l /var/lib/docker/
(inspiration: https://stackoverflow.com/questions/38532483/where-is-var-lib-docker-on-mac-os-x)
curl -X PATCH http://localhost:8080/Users/7234e4cd-eb7f-4a96-953e-3bd11439efcf -H 'Content-Type: application/json' -d @- <<BODY | |
{ | |
"emails": [ | |
"a@b.com", | |
"b@c.com" | |
] | |
} | |
BODY |
curl -k -H "Accept: application/vnd.docker.distribution.manifest.v2+json" https://registry-devel.a.mgt:5000/v2/<image_name>/manifests/<image_tag> |
$ docker exec -u 0 -it openam bash | |
root@192:/usr/local/tomcat# whoami | |
root | |
(user 0 is root, but it works with any other userid from /etc/passwd of the container) |
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
ls -l /var/lib/docker/
(inspiration: https://stackoverflow.com/questions/38532483/where-is-var-lib-docker-on-mac-os-x)
docker exec [CONTAINER_NAME] rabbitmq-plugins enable rabbitmq_management | |
# inspiration was: https://github.com/docker-library/rabbitmq/issues/45 |
Steps: | |
1. run: ssh-add | |
2. when connecting use: ssh -A DEST_SERVER_NAME | |
inspiration: | |
http://apple.stackexchange.com/questions/37184/ssh-a-doesnt-properly-enable-forwarding-of-authentication-agent-connection | |
Note: no changes in ssh_config are necessary (as described in https://developer.github.com/guides/using-ssh-agent-forwarding/#setting-up-ssh-agent-forwarding) |
# for example | |
find . -type f -name '*.java' -print0 | xargs -0 grep -l 'implements MyInterface' |
2 easy steps: | |
1) echo -n | openssl s_client -connect AD_SERVER:AD_SERVER_PORT | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ldapserver.pem | |
2) keytool -import -trustcacerts -file ldapserver.pem -alias ALIAS_GOES_HERE -keystore /Users/.../Apps/jxplorer-3.3.1-osx/jxplorer-3.3.1.app/Contents/Resources/security/cacerts |
Example: | |
java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=4000,suspend=n My.class |
# Usage: `git review branchName` (tested on Linux and Git bash) | |
review = !sh -c 'git push origin HEAD:refs/for/$1%r=a@b.com,c@d.com' - |