Skip to content

Instantly share code, notes, and snippets.

View AimeeKnight's full-sized avatar
👩‍💻
MLOpsing

Aimee Knight AimeeKnight

👩‍💻
MLOpsing
View GitHub Profile
{"lastUpload":"2020-03-25T21:31:13.539Z","extensionVersion":"v3.4.3"}
@AimeeKnight
AimeeKnight / bio.md
Last active July 23, 2020 20:02
Bio

Aimee Knight is a Software Architect and former professional figure skater currently residing in Nashville TN. Outside of work, she's a Google Developer Expert in Web Technologies specializing in performance, a panelist on the JavaScript Jabber podcast, and an international keynote speaker. Currently, she specializes in DevOps, JavaScript, React, and CSS however, she's worked extensively in Angular, Node, and Ruby on Rails. Her past involvement includes working at npm, Inc., being a weekly panelist on the Angular Air podcast, a co-organizer for CharmCityJS, and a mentor for Baltimore NodeSchool and Rails Bridge.

@AimeeKnight
AimeeKnight / cloudSettings
Last active February 12, 2021 19:35
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-02-12T19:33:59.219Z","extensionVersion":"v3.4.3"}
@AimeeKnight
AimeeKnight / kubectl.txt
Created January 31, 2022 19:17
Kubectl shortcuts
componentstatuses = cs
configmaps = cm
endpoints = ep
events = ev
limitranges = limits
namespaces = ns
nodes = no
persistentvolumeclaims = pvc
persistentvolumes = pv
pods = po
@AimeeKnight
AimeeKnight / request-id.vcl
Created July 28, 2022 20:46 — forked from mshmsh5000/request-id.vcl
Fastly VCL for X-Request-ID header
# Unique request ID header
sub vcl_recv {
set req.http.X-Request-ID = digest.hash_sha256(now randomstr(64) req.http.host req.url req.http.Fastly-Client-IP server.identity);
#FASTLY recv
}
@AimeeKnight
AimeeKnight / ip-cider.js
Created January 19, 2024 21:51
ip-cider.js
const ipToNumber = (ip) => ip.split('.').reduce((acc, octet) => (acc << 8) + parseInt(octet, 10), 0);
const findConsecutiveIPs = (ips) => {
ips.sort((a, b) => ipToNumber(a) - ipToNumber(b));
const result = [];
let startIP = ips[0];
let endIP = ips[0];
for (let i = 1; i < ips.length; i++) {