Skip to content

Instantly share code, notes, and snippets.

My responses are limited; you must ask the right questions.


My responses are limited; you must ask the right questions.
Block or report user

Report or block NewAlexandria

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
"""AWS EC2 SSH config Generator."""
# edit these:
# * path_to_config
# * path_to_ssh_key
# remember the path_to_config must be write-able by the script
# before running, install aws_cli and login with your credentials
# then move to your .ssh folder and in your .ssh/config file
NewAlexandria /
Created Jan 3, 2017
keybase prove github newalexandria

Keybase proof

I hereby claim:

  • I am newalexandria on github.
  • I am newalexandria ( on keybase.
  • I have a public key ASC1Scdtf-36b4jiLY8AvgvFFqjVow1-Cnbiw43f6vzmjgo

To claim this, I am signing this object:

# from
import os
import sys
import csv
import datetime
import time
import twitter
NewAlexandria /
Last active Jan 20, 2016
test dupe from sprintly's culture repo


What's this PR do?

Where should the reviewer start?

How should this be manually tested?

NewAlexandria / chord.rb
Created Jan 1, 2016 — forked from Aearnus/chord.rb
circle modular multiplication chord renderer
View chord.rb
# with reference to rendered output but the OP
# and a video guide
require "rmagick"
def localToGlobalCoords(n)
NewAlexandria / brew_inventory.rb
Created Oct 19, 2015
A quickie copypasta for getting your main brew packages
View brew_inventory.rb
#!/usr/bin/env ruby
bl = `brew list`.split ;1
bdl = bl.reduce({}) {|h, pkg| h.merge({pkg => `brew deps #{pkg}`.split }) } ;1
bi = bl - bdl.values.flatten.sort'apps_brew.txt', 'w') {|f| f.write bi.join("\n") }
View submodules_to_neobundle.rb".vimrc","a") do |f|
f.write File.readlines('.gitmodules')
# remove extras
.reject do |l|
l.scan('[').any? || # submodule defs
l.scan(/^path/).any? || # submodules paths
l.empty? # blank lines
# remap URLs to user/repo names
NewAlexandria / recent_papers_we_love.js
Created Jun 8, 2015
A list of the 10 most-recent submissions to papers we love
View recent_papers_we_love.js
if (!window.jQuery) { document.write('<script src=""><\/script>') };
var recent_papers = [];
var commits = {};
var base_commit = '';
while (recent_papers.length < 10) {
commits_url = ""+base_commit;
url: commits_url,
success: function(data) {
$(data).each( function(idx) {
NewAlexandria / letter permutation
Created Apr 9, 2015
Outputs string combinatorics
View letter permutation
r = ('a'..'z'){|l|{|w|{|q| q+w+l} } }.flatten{|l|{|w|{|q|{|t| q+w+l+t } }} }.flatten.size
# add exclusions
# add recursion
NewAlexandria / lucidchart.js
Created Nov 26, 2014
The unminified source of Lucidcharts, as of 2014-11-26
View lucidchart.js
This file has been truncated, but you can view the full file.
(function() {
var h, ba = ba || {},
ca = this;
function da(a) {
return void 0 !== a
function ha(a) {
You can’t perform that action at this time.