Skip to content

Instantly share code, notes, and snippets.

View majorgreys's full-sized avatar

Tahir H. Butt majorgreys

  • Brooklyn, NY
  • 18:56 (UTC -12:00)
View GitHub Profile
@majorgreys
majorgreys / index.html
Created October 29, 2012 18:25
Experiment using D3.js to create a logo for HMNY 2013. View at http://bl.ocks.org/majorgreys/31e48e69bdbc98acd99a
<html>
<script src="http://d3js.org/d3.v2.js"></script>
<link href='http://fonts.googleapis.com/css?family=Arvo' rel='stylesheet' type='text/css'>
<style>
body { font-family: 'Arvo', serif; }
div#logo1 { font-family: 'Helvetica'; }
div#logo2 { font-family: 'Arvo'; }
</style>
<body>
@majorgreys
majorgreys / grapevine.yaml
Last active August 29, 2015 13:57
The Grapevine dataset (http://education.illinoisstate.edu/grapevine/) dataset in YAML format
# Grapevine Project state-level summary data on state appropriations FY1960 to FY2014
# Transcribed by Tahir Butt <tahir.butt@gmail.com>
- fiscalyear: 2014
sourcefile: tables/FY14/Table6f_GPV14.xlsx
note: Column E Total State Support (Less Returns and Portions of Multi-Year Appropriations
total: 76238167052
states:
-
AL: 1440862304
AK: 383128100
@majorgreys
majorgreys / README.md
Last active March 18, 2019 19:29
ITF Spring 2015 Databases Skills Share

Contained here are the instructions for getting your laptop set up for databases skills share as well as my presentation.

@majorgreys
majorgreys / Makefile
Last active August 29, 2015 14:25
pandoc bibliography formatting issues
all: pandocpdf pandoctexcsl pandoctexbiblatex
pandocpdf: test.md
pandoc -s -S --bibliography=test.bib -o pandocpdf.pdf test.md
pandoctexcsl: test.md
pandoc -s -S --bibliography=test.bib -o pandoctexcsl.tex test.md
pdflatex pandoctexcsl.tex
pandoctexbiblatex: test.md
@majorgreys
majorgreys / stopcunycuts.tex
Created March 23, 2016 19:06
Latex file for generating PDF that I used to create posters for a rally. I projected the PDF onto a wall using an LCD projector and then traced the letters onto poster board.
\documentclass{article}
\usepackage[letterpaper,margin=1.0in]{geometry}
\usepackage[T1]{fontenc}
\usepackage[sfdefault]{universalis}
% \usepackage{fontspec}
% \usepackage{xunicode}
% \usepackage{xltxtra}
% \setmainfont[Mapping=tex-text]{Lucida Sans Unicode}
\usepackage{tikz}
\usetikzlibrary{matrix,shapes.misc}
@majorgreys
majorgreys / test.md
Last active April 4, 2016 02:15
tufteify pandocfilter

% An appealing title % Tahir

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper.^[See the following note.] Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus.

@majorgreys
majorgreys / .dockerignore
Last active March 28, 2017 19:37
setting up a docker environment for CAC
.data
@majorgreys
majorgreys / Dockerfile
Last active November 29, 2016 20:35
Headaches with docker-compose and xdebug
FROM wordpress
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini
@majorgreys
majorgreys / reclaimWindows10.ps1
Created January 8, 2017 16:44 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1

In order to migrate from Trello to Wunderlist, the following simple steps can be used to create Wunderlist tasks for each Trello card in a board:

  1. Find the short link for Trello board: e.g., https://trello.com/b/yzDiOoCC => yzDiOoCC
  2. Download https://trello.com/b/<SHORT_LINKE>.json after logging into Trello in a web browser
  3. $ cat <SHORT_LINK>.json | jq -r '.cards[] | select(.closed == false) | .name' | wunderline add --stdin

Of course you will need to have jq and wunderline installed:

$ sudo apt install jq