Skip to content

Instantly share code, notes, and snippets.

Avatar

Jon Keegan jonkeegan

View GitHub Profile
View sample.json
[
{
"timestamp_EST": "2021-01-07 00:00:36",
"n_users": 4,
"url_domain": "washingtontimes.com",
"url": "https://www.washingtontimes.com/news/2021/jan/6/xrvision-firm-claims-antifa-infiltrated-protesters/",
"description": "washingtontimes.com Facial recognition firm claims antifa infiltrated Trump protesters who stormed Capitol Trump supporters say that antifa members disguised as one of them infiltrated the protesters who stormed the U.S. Capitol on Wednesday."
},
{
"timestamp_EST": "2021-01-07 00:04:15",
@jonkeegan
jonkeegan / mueller_quilt.md
Last active Jul 23, 2019
Make a Mueller Report quilt from the original PDF using Imagemagick
View mueller_quilt.md

Make a Mueller Report quilt from the original PDF using Imagemagick

These commands will let you make a thumbnail quilt of all 448 pages of the Mueller Report PDF.

Make a new directory...

mkdir mueller_quilt

...then cd into it.

@jonkeegan
jonkeegan / trump_cinco_tweet.json
Created Nov 19, 2018
The full metadata of a single tweet from Twitter's API
View trump_cinco_tweet.json
{
"created_at": "Thu May 05 18:57:30 +0000 2016",
"id": 728297587418247168,
"id_str": "728297587418247168",
"text": "Happy #CincoDeMayo! The best taco bowls are made in Trump Tower Grill. I love Hispanics! https:\/\/t.co\/ufoTeQd8yA https:\/\/t.co\/k01Mc6CuDI",
"truncated": false,
"entities": {
"hashtags": [{
"text": "CincoDeMayo",
"indices": [6, 18]
View gist:9689ba5893b3d7ed3e3b162afa3418db
+---------------------+------------------------------+--------------------------+
| | @kairyssdal | @mollywood |
+---------------------+------------------------------+--------------------------+
| Joined | April 9, 2009 | May 31, 2007 |
| Time elapsed | 9 years 6 months and 29 days | 11 years 5 months 7 days |
| Days elapsed | 3,499 days | 4,178 days |
| Followers | 157,270 | 123,399 |
| Following | 373 | 1,188 |
| Included on lists | 2,888 | 6,989 |
| Likes / faves | 124 | 7,825 |
@jonkeegan
jonkeegan / hardrockintlent_tweets.csv
Created Oct 26, 2018
Here's the 3000 most recent tweets (as of 10/26/18) from the @hardrockintlent account, which was owned by Cesar Altieri Sayoc Jr.. Sayoc was arrested and charged by the FBI on 10/26/18 for sending bombs through the mail to major figures in the Democratic party.
View hardrockintlent_tweets.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 2 columns, instead of 1. in line 1.
1054856272170938370 Oct 23 18:05 @hardrockintlent Undercover FBI agent got Gillum ‘Hamilton’ tickets, texts show https://t.co/9pHihlhfbV
1054519269919281152 Oct 22 19:46 @hardrockintlent https://t.co/9XHR453Gux
1054519255423688704 Oct 22 19:45 @hardrockintlent https://t.co/Y6Kuub9GF1
1054519181385887745 Oct 22 19:45 @hardrockintlent https://t.co/I6Syw3bnIL
1054519009536827398 Oct 22 19:44 @hardrockintlent https://t.co/bdIDycZ03x
1054518985180483584 Oct 22 19:44 @hardrockintlent https://t.co/JUVDd77VEc
1054518949226917888 Oct 22 19:44 @hardrockintlent https://t.co/X5ezOSjKk9
1054518848010010624 Oct 22 19:44 @hardrockintlent https://t.co/cNRUVe249q
1054518802971590656 Oct 22 19:44 @hardrockintlent https://t.co/WzL1aWhD4U
1054518786177544192 Oct 22 19:44 @hardrockintlent https://t.co/vmzmv58v4e
View keybase.md

Keybase proof

I hereby claim:

  • I am jonkeegan on github.
  • I am jonkeegan (https://keybase.io/jonkeegan) on keybase.
  • I have a public key ASCecMp5Yuh7tphQhRBtlLA_6xKJpQom1O582ffX7dindQo

To claim this, I am signing this object:

@jonkeegan
jonkeegan / gist:f394e9f633c5625b9a8f
Last active Jul 11, 2018
This is a snippet of code to render histograms from a bitmap to json. I used this technique in this project: http://graphics.wsj.com/avengers/
View gist:f394e9f633c5625b9a8f
// requires ImageMagick (http://www.imagemagick.org/) and csvkit (https://github.com/onyxfish/csvkit)
// You need to have a schmea csv file like this in the same directory:histogram_schema.csv
column,start,length
count,0,10
color,26,7
// This takes a color bitmap, turns it to 64 colors (to keep it a resonable size), generates a histogram, exports the colors and counts to a json object
convert my_bitmap.png -dither Riemersma -colors 64 -format %c histogram:info:- | in2csv -f fixed -s histogram_schema.csv | csvjson > 397.json
@jonkeegan
jonkeegan / Configuration.h
Last active Aug 29, 2015
Configuration.h - 2.3.15
View Configuration.h
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
// This configuration file contains the basic settings.
// Advanced settings can be found in Configuration_adv.h
// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
//===========================================================================
//============================= DELTA Printer ===============================
//===========================================================================
@jonkeegan
jonkeegan / gist:fd70ae686449ef6b9607
Created Jun 4, 2014
Marlin - Configuration.h file
View gist:fd70ae686449ef6b9607
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
// This configuration file contains the basic settings.
// Advanced settings can be found in Configuration_adv.h
// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
//===========================================================================
//============================= DELTA Printer ===============================
//===========================================================================
@jonkeegan
jonkeegan / iPhoto Faces
Created Mar 5, 2013
Here's a nice little one liner for your Mac that will create a giant mosaic image of all the faces iPhoto has found in your photos taken in 2013. Requires imagemagick, and assumes your iPhoto Library is in it's regular spot. This is for the latest version of iPhoto '11. The faces are ALL of the faces iPhoto can find, even if they haven't ben nam…
View iPhoto Faces
montage null: ~/Pictures/iPhoto\ Library/Thumbnails/2013*/*/*/*/IMG_*_face*.jpg null: -gravity center ~/Desktop/2013_faces.png