Skip to content

Instantly share code, notes, and snippets.

View simongle's full-sized avatar

Simon Glenn-Gregg simongle

View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 33 columns, instead of 6. in line 1.
2021-10-18 17:00:01 ORD51-C3 619 10.249.110.7 HEAD db0jycymls79j.cloudfront.net /washpost-audio-articles/SRG3CMLDORBSVJDAKY5JDQUZOM/20211012-135043.435/current.mp3/current.mp3_ebb47ef39d897e1e07c7f36e947d3891_5265251.mp3 200 https://www.washingtonpost.com/ Mozilla/5.0%20(iPhone;%20CPU%20iPhone%20OS%209_1%20like%20Mac%20OS%20X)%20AppleWebKit/601.1.46%20(KHTML,%20like%20Gecko)%20Version/9.0%20Mobile/13B143%20Safari/601.1%20(compatible;%20AdsBot-Google-Mobile;%20+http://www.google.com/mobile/adsbot.html) awCollectionId=%252Flifestyle%252Fhome-garden&awEpisodeId=SRG3CMLDORBSVJDAKY5JDQUZOM&tags=thyo%257Cmagnet-homeyouown&check=source&hash_redirect=1&x-total-bytes=5265251&x-ais-classified=streaming&listeningSessionID=0CD_382_290__169c29ff555160c505ed541a6a543b252e729dca - Miss h5mXzYwbFSVa8NbBCpR0TtFM1-ZeXBwMjBolBgY11DLKu-7Y8Ldg5Q== redirect.washpostpodcasts.com https 899 0.081 - TLSv1.3 TLS_AES_128_GCM_SHA256 Miss HTTP/1.1 - - 60444 0.081 Miss audio/mpeg 5265251 - -
2021-10-18 17:00:01 SIN52-C3 428 10.128.245.68 H

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@simongle
simongle / SettingupPGPandGit.md
Last active September 18, 2023 13:38
A guide for PGP and Git

Setting up PGP with Git

#PGP

If you are reading this, you have taken the first step towards encryption self-righteousness. The steps below are my preferred method for configuration after years of suffering through alternative, more archaic/byzantine steps.

Note, if you already have a PGP key, skip to step #4. Second note: I know UNIX best, so I’m not going to embarrass myself by attempting to write a windows guide. The good people over at EFF have your back: How to: Use PGP for Windows | Surveillance Self-Defense

[A point of clarification: PGP stands for pretty good privacy and is the original underlying protocol, GPG stands for Gnu Privacy Guard, and is an open source program that is compliant with PGP; the two acronyms are often used interchangeably.]

  1. Download your GPG client
@simongle
simongle / chapter_post.sh
Created July 23, 2017 20:06
Bash script for reading data from JSON and posting it to a CMS using automated cURL requests
#!/bin/bash
length=$(jq 'length' new_ids.json)
for i in `seq $length`; do
name=$(jq '.['"$i"'].name' new_ids.json | sed 's/.$//' | sed 's/^.//')
password=$(jq '.['"$i"'].password' new_ids.json | sed 's/.$//' | sed 's/^.//')
email=$(jq '.['"$i"'].email' new_ids.json | sed 's/.$//' | sed 's/^.//')
chapter_id=$(jq '.['"$i"'].chapter_id' new_ids.json | sed 's/.$//' | sed 's/^.//')
@simongle
simongle / program.js
Last active May 19, 2017 19:54
Learnyounode exercises
console.log("HELLO WORLD");
@simongle
simongle / index.html
Last active August 15, 2016 19:40
Diversity of Morris Township, NJ
<!DOCTYPE html>
<html>
<head>
<title>Morristown Diversity | CartoDB.js</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<style>
html, body, #map {
height: 100%;
@simongle
simongle / index.html
Created July 15, 2016 15:09
Turkey General Elections 2007-2015
<!DOCTYPE html>
<html>
<head>
<title>Turkey Election Results 2007 - 2015</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<style>
html, body, #map {
height: 100%;
@simongle
simongle / index.html
Last active July 17, 2017 18:28
Map of AirBnB hosts with multiple listings in NYC, made with D3js
<!DOCTYPE html>
<meta charset="utf-8">
<style type="text/css">
.neighbourhoods {
stroke: grey;
fill: #e5c494;
fill-opacity: 0.2;
}
@simongle
simongle / .gistup
Created June 7, 2016 02:39
Class 2
gistup