Skip to content

Instantly share code, notes, and snippets.

View majorgreys's full-sized avatar

Tahir H. Butt majorgreys

  • Brooklyn, NY
  • 15:08 (UTC -12:00)
View GitHub Profile
@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') |
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
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
#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`

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:

<?php
/**
* @package Make GCDI
*/
/**
* The GC Digital Initiatives Child Theme of Make
*
*
* @see MAKE_Setup_Scripts::enqueue_frontend_styles()
Checking /home/tbutt/.emacs.d/.local/packages/elpa...
Checking /home/tbutt/.emacs.d/.local/packages/elpa/ac-alchemist-20150907.2356...
Compiling /home/tbutt/.emacs.d/.local/packages/elpa/ac-alchemist-20150907.2356/ac-alchemist-autoloads.el...
Compiling /home/tbutt/.emacs.d/.local/packages/elpa/ac-alchemist-20150907.2356/ac-alchemist-pkg.el...
Compiling /home/tbutt/.emacs.d/.local/packages/elpa/ac-alchemist-20150907.2356/ac-alchemist.el...
Checking /home/tbutt/.emacs.d/.local/packages/elpa/ac-php-core-20180222.224...
Compiling /home/tbutt/.emacs.d/.local/packages/elpa/ac-php-core-20180222.224/ac-php-comm-tags-data.el...
Compiling /home/tbutt/.emacs.d/.local/packages/elpa/ac-php-core-20180222.224/ac-php-core-autoloads.el...
Compiling /home/tbutt/.emacs.d/.local/packages/elpa/ac-php-core-20180222.224/ac-php-core-pkg.el...
Compiling /home/tbutt/.emacs.d/.local/packages/elpa/ac-php-core-20180222.224/ac-php-core.el...
@majorgreys
majorgreys / gist:aa5db32158b6e2f45eac9c35b7a27457
Created March 8, 2018 19:18
Citation key format for Better BibTex
[auth:lower][>0][year]|[PublicationTitle:lower:abbr][>0]:[month:lower][year:lower]|[title:capitalize][year]
@majorgreys
majorgreys / README.org
Last active April 6, 2022 18:55
mbsync+mu cleanup

In moving my email from gmail to outlook, it would seem that I’ve ended up with multiple copies of emails. How many such emails there are and how to remove them I am still struggling to figure out. The problem seems to be that the same message ID but have different X-TUID.

$ mu find msgid:CY1PR15MB0155CB9AAD45DA010FFFC2FCF15E0@CY1PR15MB0155.namprd15.prod.outlook.com -f 'l'
/home/tbutt/.mail/outlook/Sent/cur/1522002651.16857_33.knuckles,U=36:2,S
/home/tbutt/.mail/outlook/Archive/cur/1522002326.15658_3659.knuckles,U=236990:2,S
/home/tbutt/.mail/outlook/Archive/cur/1521978114.18576_998.knuckles,U=2593:2,S
/home/tbutt/.mail/gc/Archive/cur/1522211460.25821_33.knuckles,U=34:2,S
/home/tbutt/.mail/outlook/Archive/cur/1521979684.21093_9183.knuckles,U=20859:2,S

$ diff /home/tbutt/.mail/outlook/Archive/cur/1522002326.15658_3659.knuckles,U=236990:2,S /home/tbutt/.mail/outlook/Archive/cur/1521978114.18576_998.knuckles,U=2593:2,S