Skip to content

Instantly share code, notes, and snippets.

View eightyknots's full-sized avatar
🤷‍♂️
yeah, sure, lgtm

Chester eightyknots

🤷‍♂️
yeah, sure, lgtm
View GitHub Profile
#!/bin/bash
CF_DEBUG=0
CF_TEMP_FILE="<OUTPUT LOG FILE>"
CF_API_TOKEN="<API KEY SCOPED TO UPDATE RECORDS>"
CF_ZONE_ID="<DNS ZONE / DOMAIN ID>"
CF_RECORD_ID="<DNS RECORD ID FOR A RECORD FROM CLOUDFLARE>"
@eightyknots
eightyknots / config.gateway.json
Created January 12, 2018 22:22
A sample Unifi gateway config.gateway.json file working with the AT&T Fiber network 6rd IPv6 infrastructure (using /64 prefix).
{
"firewall": {
"ipv6-name": {
"wan_in-6": {
"default-action": "drop",
"description": "ipv6 packets from internet to intranet",
"rule": {
"1": {
"action": "accept",
"description": "Allow Enabled/Related state",
### Keybase proof
I hereby claim:
* I am yectep on github.
* I am eightyknots (https://keybase.io/eightyknots) on keybase.
* I have a public key ASDY8Ni35-_58Wy1neQkx1teB43InXCCW5RG8KgA9g-H9Ao
To claim this, I am signing this object:
@eightyknots
eightyknots / filter.js
Last active August 18, 2016 07:17
A column filter based on a cell's value in Google Apps Scripting
/**
* Basically, we only want this to run when you edit something in this spreadsheet.
*
* The "onEdit" function is a reserved function that is triggered whenever you edit
* anything in the sheet.
*
* Save this, then make sure you've selected "onEdit" as the function to run. Whenever
* you edit the filterCell value, it should automatically run this function without
* you having this window open.
*
@eightyknots
eightyknots / avregex.md
Last active July 30, 2024 08:49
AvReg: Aviation regex match toolkit

AvReg: The Aviation RegEx Match Toolkit

General Tips

  • The PCRE flavour of RegEx is used here.
  • Append the i modifier to the end of the regex to make any pattern case-insensitive.

Aircraft

| Purpose | Description | RegEx | Example |

@eightyknots
eightyknots / enigma.php
Last active August 29, 2015 14:23
[19JUN15] Encryption exercise
<?php
namespace Enigma;
class Encrypt {
protected $_cyphertext;
protected $_salt;
protected $_iv;
protected $_vernamtext;
@eightyknots
eightyknots / KLAXKDFW140703.pln
Created July 4, 2014 00:11
03JUL14 KLAX-KDFW [AAL2400] Flightplan
AMERICAN AIRLINES FLIGHTPLAN - IFR AAL2400 N113AB KLAX-KDFW
--------------------------------------------------------------------------------
ALL WEIGHTS IN POUNDS (LB) STD 03JUL/0045Z
--------------------------------------------------------------------------------
OFP 1 - PREPARED 04JUL/0007Z BY CHESTER LI
AA2400/AAL2400 N113AB/B737-8ERW CF ROUTE: KLAXKDFW02
DEP: KLAX/LAX 25R ELEV 126 FT MACH: M.78 TTL G/C DIST: 1073 NM
ARR: KDFW/DFW 13L ELEV 607 FT INIT ALT: FL390 TTL F/P DIST: 1133 NM
@eightyknots
eightyknots / fsx.cfg
Last active August 29, 2015 14:01
FSX Configuration
[MAPVIEW_MAP]
SHOW_AIRPORTS=1
SHOW_AIRSPACE=1
SHOW_APPROACHES=1
SHOW_DATATAGS=1
SHOW_FLIGHTPLAN=1
SHOW_INTERSECTIONS=0
SHOW_JET=0
SHOW_NDBS=1
SHOW_TERRAIN=1