Skip to content

Instantly share code, notes, and snippets.

View vincent-dm's full-sized avatar

Vincent vincent-dm

View GitHub Profile
@vincent-dm
vincent-dm / build.clj
Last active April 11, 2016 19:38
Closure compiler does not eliminate dead branches based on branching the goog.LOCALE setting. (File paths are converted to underscores in the file names)
(require 'cljs.build.api)
(cljs.build.api/build "src"
{:output-to "out/main.js"
:optimizations :advanced
:pretty-print true
:closure-defines {
'goog.DEBUG false
'goog.LOCALE "nl"}})
@vincent-dm
vincent-dm / gist:211f90e4abc547282b7c
Last active November 22, 2016 17:12
How to add Azure File Service storage as an SMB mount in Ubuntu Linux
sudo mkdir /shared
sudo mkdir /shared/folder
sudo chown ubuntuusername:ubuntuusername /shared/folder
touch ~/.credentials
echo "username=storageaccountname" | sudo tee ~/.credentials
echo "password=azureaccesskey" | sudo tee ~/.credentials
chmod 600 ~/.credentials
echo "" | sudo tee -a /etc/fstab
echo "//storageaccountname.file.core.windows.net/filesharename /shared/folder cifs vers=2.1,credentials=/home/username/.credentials 0 0" | sudo tee -a /etc/fstab