Skip to content

Instantly share code, notes, and snippets.

Avatar

Tahir H. Butt majorgreys

View GitHub Profile
@majorgreys
majorgreys / index.html
Created Oct 29, 2012
Experiment using D3.js to create a logo for HMNY 2013. View at http://bl.ocks.org/majorgreys/31e48e69bdbc98acd99a
View index.html
<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 Aug 29, 2015
The Grapevine dataset (http://education.illinoisstate.edu/grapevine/) dataset in YAML format
View grapevine.yaml
# 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 Mar 18, 2019
ITF Spring 2015 Databases Skills Share
View README.md

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 Aug 29, 2015
pandoc bibliography formatting issues
View Makefile
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 Mar 23, 2016
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.
View stopcunycuts.tex
\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 Apr 4, 2016
tufteify pandocfilter
View test.md

% 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 Mar 28, 2017
setting up a docker environment for CAC
@majorgreys
majorgreys / Dockerfile
Last active Nov 29, 2016
Headaches with docker-compose and xdebug
View Dockerfile
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 Jan 8, 2017 — 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)
View reclaimWindows10.ps1
##########
# 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
View MigrateTrelloWunderlist.md

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