Skip to content

Instantly share code, notes, and snippets.

View chrismattmann's full-sized avatar

Chris Mattmann chrismattmann

View GitHub Profile
@chrismattmann
chrismattmann / git_remember_password.md
Created March 24, 2019 04:29 — forked from ankurk91/git_remember_password.md
Git credential cache, why type password again and again

Git tip: Tired of entering password again and again ?

Run this command to remember your password:

git config --global credential.helper 'cache --timeout 28800'

Above command will tell git to cache your password for 8 hours.

@chrismattmann
chrismattmann / facebook-contact-info-summary.rb
Created March 31, 2018 01:09 — forked from dylanmckay/facebook-contact-info-summary.rb
A Ruby script for collecting phone record statistics from a Facebook user data dump
#! /usr/bin/env ruby
# NOTE: Requires Ruby 2.1 or greater.
# This script can be used to parse and dump the information from
# the 'html/contact_info.htm' file in a Facebook user data ZIP download.
#
# It prints all cell phone call + SMS message + MMS records, plus a summary of each.
#
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created
@chrismattmann
chrismattmann / gist:3ca50b1e598a43bb46830c5c6438af35
Created August 4, 2017 17:21 — forked from thomseddon/gist:3511330
AngularJS byte format filter
app.filter('bytes', function() {
return function(bytes, precision) {
if (isNaN(parseFloat(bytes)) || !isFinite(bytes)) return '-';
if (typeof precision === 'undefined') precision = 1;
var units = ['bytes', 'kB', 'MB', 'GB', 'TB', 'PB'],
number = Math.floor(Math.log(bytes) / Math.log(1024));
return (bytes / Math.pow(1024, Math.floor(number))).toFixed(precision) + ' ' + units[number];
}
});
FROM girder/girder
RUN mkdir /assetstore
RUN git clone https://github.com/memex-explorer/image_space.git
RUN girder-install plugin -s image_space/imagespace
RUN girder-install plugin -s image_space/imagespace_smqtk
RUN npm install --only=prod --unsafe-perm