Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Ralston MatthewRalston

View GitHub Profile
@dylanmckay
dylanmckay / facebook-contact-info-summary.rb
Last active Nov 13, 2020
A Ruby script for collecting phone record statistics from a Facebook user data dump
View facebook-contact-info-summary.rb
#! /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
anonymous
anonymous / conky_orange_4k.lua
Created Oct 27, 2017
conky orange 4k resolution config files
View conky_orange_4k.lua
--==============================================================================
-- conky_orange.lua
--
-- author : SLK
-- version : v2011062101
-- license : Distributed under the terms of GNU GPL version 2 or later
--
-- modified: me
-- version : v20171027
-- notes : works on 4k screen. uses conky conf newer >v1.1
@maptracker
maptracker / StudentListToGitHubWiki.R
Last active Feb 24, 2016
First pass at getting #random reviewer/reviewee assignments
View StudentListToGitHubWiki.R
## Generate a markdown table of permuted peer assignments
## Designed for putting into output into GitHub Wiki
## Permutation code
source("https://gist.github.com/maptracker/f0ec01bed4d1c1583bf6/raw/a9cbd9983703a293584e826d903f21a8556e41a3/StudentPeerReview.R")
makeMarkdownTable <- function
(file, peers = 2, out = paste(c(file,"md"), collapse = '.'),
subtitle = NULL,
@joerx
joerx / index.js
Created Mar 20, 2015
Clear require cache in Node.js
View index.js
//based on http://stackoverflow.com/questions/9210542/node-js-require-cache-possible-to-invalidate
function clearRequireCache() {
Object.keys(require.cache).forEach(function(key) {
delete require.cache[key];
});
}
var myModule1 = require('./my-module');
console.log(myModule1.counter); // 0
@gbuesing
gbuesing / ml-ruby.md
Last active Nov 28, 2020
Resources for Machine Learning in Ruby
View ml-ruby.md

UPDATE a fork of this gist has been used as a starting point for a community-maintained "awesome" list: machine-learning-with-ruby Please look here for the most up-to-date info!

Resources for Machine Learning in Ruby

Gems

@davetang
davetang / psl_to_bed_best_score.pl
Last active Nov 20, 2017
A more documented version of my psl_to_bed_best_score.pl script at http://davetang.org/wiki/tiki-index.php?page=Blat.
View psl_to_bed_best_score.pl
#!/usr/bin/env perl
use strict;
use warnings;
=head1 NAME
This scripts converts a psl file into a bed file written by Dave Tang.
=head1 SYNOPSIS
@naholyr
naholyr / _service.md
Created Dec 13, 2012
Sample /etc/init.d script
View _service.md

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

You can’t perform that action at this time.