Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View afucher's full-sized avatar

Arthur Fücher afucher

View GitHub Profile
@afucher
afucher / git-anonymize
Created October 13, 2019 23:07 — forked from pozorvlak/git-anonymize
Anonymise Git history
#!/bin/sh
# Suppose you want to do blind reviewing of code (eg for job interview
# purposes). Unfortunately, the candidates' names and email addresses are
# stored on every commit! You probably want to assess each candidate's version
# control practices, so just `rm -rf .git` throws away too much information.
# Here's what you can do instead.
# Rewrite all commits to hide the author's name and email
for branch in `ls .git/refs/heads`; do
@afucher
afucher / ConsoleWrapper.cs
Created September 13, 2017 22:01 — forked from logicseed/ConsoleWrapper.cs
C# .NET 4.5 Console Wrapper
//-----------------------------------------------------------------------------
// C# .NET 4.5 Console Wrapper
//
// Marc King < mjking@umich.edu >
// v1.0 2015-04-26
//-----------------------------------------------------------------------------
using SysConsole = System.Console;
using System;
using System.IO;
"use strict";
var path = require("path");
var fs = require("fs");
var Twit = require('twit');
var rateLimiter = {};
var luckyNumber = Math.round(Math.random()*60);
var re = /\d+/;
var oauth = JSON.parse(fs.readFileSync("./config/twitter_credentials.js", "UTF8"));