Skip to content

Instantly share code, notes, and snippets.

@larrymyers
larrymyers / gist:6e909ae332aa6e0bd0ba5ebcef10243e
Created February 7, 2017 20:39
Visual Studio Code OS X : Change status bar color
echo ".monaco-workbench>.part.statusbar{background-color:#333;}" | tee -a /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/electron-browser/workbench.main.css
@larrymyers
larrymyers / gist:ac268aa5d1de2783309cfd065fb39b4d
Created November 3, 2016 17:13
List all dependencies of a golang program
go list -f '{{ join .Deps "\n" }}' .
@larrymyers
larrymyers / gist:2c1100167d01e62fd74383d40e9e6a1e
Created September 11, 2016 11:54
Upload gzipped assets to S3
find . -type f -exec gzip -9 {} \; -exec mv {}.gz {} \;
aws s3 cp . s3://<bucket-name> --content-encoding=gzip --recursive
@larrymyers
larrymyers / gist:1220765
Created September 15, 2011 23:14
Get the absolute current directory of the running bash script.
"$( cd "$( dirname "$0")" && pwd )"
@larrymyers
larrymyers / gist:1219952
Created September 15, 2011 17:51
Create a version.txt file for builds via Jenkins / Hudson and Git
echo "JOB: $JOB_NAME" > version.txt
echo "BUILD NUMBER: $BUILD_NUMBER" >> version.txt
echo "GIT REVISION:" >> version.txt
git log -n 1 >> version.txt