Skip to content

Instantly share code, notes, and snippets.

View louisthomas's full-sized avatar

ltlamontagne louisthomas

  • Montreal
View GitHub Profile
@louisthomas
louisthomas / itsatrap
Created March 20, 2019 18:28
You could set a "trap" to execute on exit or on a control-c to clean up. create a directory in which to place all my temporary files, and then immediately after, create an EXIT handler to clean up this directory when the script exits. https://stack
tempfile="$(mktemp)"
trap "rm -rf \"${tempfile}\"" EXIT
jq "..."> $tempfile && mv $tempfile ${CLUSTER_DEFINITION}
$ wget https://github.com/concourse/concourse/releases/download/v3.4.0/concourse-lite.yml
--2017-08-16 21:21:06--  https://github.com/concourse/concourse/releases/download/v3.4.0/concourse-lite.yml
Resolving github.com... 192.30.255.112, 192.30.255.113
Connecting to github.com|192.30.255.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/18950460/26572024-81a6-11e7-8223-cbbc80527a80?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20170816%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170816T122107Z&X-Amz-Expires=300&X-Amz-Signature=8ca2deb5ca5b8df6d9c233236786f63c67a164e1f22a36a3ca4e6616d879ffe6&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dconcourse-lite.yml&response-content-type=application%2Foctet-stream [following]
--2017-08-16 21:21:08--  https://github-production-release-asset-2e65be.s3.amazonaws.com/18950460/26572024-81a6-11e7-8223-cbb
sftp -oIdentityFile=ssh_key user@host:/path/
docker run -v $PWD/upload:/home/foo/upload -p 2222:22 -d atmoz/sftp foo:pass::::upload
keytool -list -v -keystore $JAVA_HOME/jre/lib/security/cacerts
docker run -it --rm openjdk:9-jdk bash
find / -name cacerts

Keybase proof

I hereby claim:

  • I am louisthomas on github.
  • I am ltlamontagne (https://keybase.io/ltlamontagne) on keybase.
  • I have a public key ASBS5L5KltsZrPfcEBO98YeZGa1TSK3fKv8gqDkSm_qCKAo

To claim this, I am signing this object: