Skip to content

Instantly share code, notes, and snippets.

View majorgreys's full-sized avatar

Tahir H. Butt majorgreys

  • Brooklyn, NY
  • 12:28 (UTC -12:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am majorgreys on github.
  • I am tahirb (https://keybase.io/tahirb) on keybase.
  • I have a public key ASDR0IGm3hHET9yfuZCys8qnePcgzoFh-8fccK39Mt7iggo

To claim this, I am signing this object:

#load @".paket/load/net45/canopy.fsx"
#load @".paket/load/net45/FSharp.Data.fsx"
open FSharp.Data
open canopy
open OpenQA.Selenium
open System.Text.RegularExpressions
open FSharp.Data.HttpContentTypes
// `choco install selenium-all-drivers`
C:\Users\tahir\dev\test-fable-electron\samples\material-ui [master ≡]> npm install
┌───────────────────────────────────────────────────────────────────────────────────────┐
│ npm update check failed │
│ Try running with sudo or get access │
│ to the local update config store via │
│ sudo chown -R $USER:$(id -gn $USER) C:\WINDOWS\system32\config\systemprofile\\.config │
└───────────────────────────────────────────────────────────────────────────────────────┘
> uglifyjs-webpack-plugin@0.4.6 postinstall C:\Users\tahir\dev\test-fable-electron\samples\material-ui\node_modules\uglifyjs-webpack-plugin
root@LAPTOP-TU9VCUM6:~# rm -fr /etc/pacman.d/gnupg; pacman-key --init; pacman-key --populate archlinux
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
gpg: Generating pacman keyring master key...
gpg: key A8841C7BE8350423 marked as ultimately trusted
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/A74835A61AD5404EE3F0C9A1A8841C7BE8350423.rev
@majorgreys
majorgreys / README.md
Created February 8, 2017 17:10
CA and NY public systems mapping for IPEDS

I could not figure out how to get a mapping table for IPEDS ID to system out of the IPED data center. So instead I had to rebuild it by downloading data from NY and CA and adding the "System" varaible in the output. From there I used the following in R to create a "cleaned" system value since it was clear the IPEDS data system didn't provide exactly the system labels I was hoping for:

df %>% 
  mutate(
    system_cleaned = case_when(
      (str_detect(tolower(.$system), 'state university of new york') | 
         str_detect(tolower(.$system), 'suny')
       ) ~ 'SUNY',
      (str_detect(tolower(.$system), 'city university of ny') |

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
@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
@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 / .dockerignore
Last active March 28, 2017 19:37
setting up a docker environment for CAC
.data
@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.