Skip to content

Instantly share code, notes, and snippets.


Matt Ralston MatthewRalston

View GitHub Profile
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
makeMarkdownTable <- function
(file, peers = 2, out = paste(c(file,"md"), collapse = '.'),
subtitle = NULL,
joerx / index.js
Created Mar 20, 2015
Clear require cache in Node.js
View index.js
//based on
function clearRequireCache() {
Object.keys(require.cache).forEach(function(key) {
delete require.cache[key];
var myModule1 = require('./my-module');
console.log(myModule1.counter); // 0
davetang /
Last active Apr 9, 2021
A more documented version of my script at
#!/usr/bin/env perl
use strict;
use warnings;
=head1 NAME
This scripts converts a psl file into a bed file written by Dave Tang.
dylanmckay / facebook-contact-info-summary.rb
Last active May 6, 2021
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 / 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
gbuesing /
Last active Jul 13, 2021
Resources for Machine Learning in Ruby

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


naholyr /
Created Dec 13, 2012
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.


Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
luukvbaal / cacheremove.hook
Last active Oct 16, 2021
yay paccache hooks
View cacheremove.hook
Operation = Remove
Type = Package
Target = *
Description = Clearing cache...
When = PostTransaction
Exec = /home/<user>/.local/bin/tools/removehook
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:


start new with session name: