This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"basics": { | |
"name": "Robert Trencheny", | |
"label": "Head Of Infrastructure at Flatfile Inc.", | |
"picture": "", | |
"email": "[email protected]", | |
"phone": "9258843728", | |
"website": "", | |
"summary": "Experienced Internet Consultant with a demonstrated history of working in the internet industry. Skilled in Web Applications, Amazon Web Services (AWS), PaaS, Docker and Kubernetes. Strong operations professional graduated from Y Combinator. ", | |
"location": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. On your computer, go to https://www.instagram.com/accounts/access_tool/ads_interests | |
// 2. Open dev tools by right clicking on the page and selecting "Inspect" | |
// 3. Click Console | |
// 4. Paste the following code | |
// 5. Hit enter | |
// 6. Wait | |
// 7. It will print out your list of interests once its done. | |
var allInterests = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// swiftlint:disable all | |
// Generated using SwiftGen — https://github.com/SwiftGen/SwiftGen | |
import UIKit | |
{% if families %} | |
{% set accessModifier %}{% if param.publicAccess %}public{% else %}internal{% endif %}{% endset %} | |
{% for family in families %} | |
{% set enumName %}{{param.enumName|default:family.name}}{% endset %} | |
/** A wrapper class for Objective-C compatibility. */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run this on https://developer.apple.com/design/human-interface-guidelines/watchos/icons-and-images/complication-images/ | |
function pascalCase(str) { | |
var fixed = str.replace(/(\w)(\w*)/g, function(g0,g1,g2){return g1.toUpperCase() + g2.toLowerCase();}).split(' ').join(''); | |
if(fixed.indexOf('(') > -1) { | |
fixed = fixed.substring(0, fixed.indexOf('(')); | |
} | |
return fixed; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python | |
""" | |
Import and activate a SSL/TLS certificate generated by dehydrated.sh into FreeNAS 11.1 or later | |
Uses the FreeNAS API to make the change, so everything's properly saved | |
in the config database and captured in a backup. | |
Requires paths to the cert (including the any intermediate CA certs) and | |
private key, and username, password, and FQDN of your FreeNAS system. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "Nazran, Russia (%u0)", | |
"key": "%u0", | |
"latitude": "43.323815", | |
"longitude": "45.017761" | |
}, | |
{ | |
"name": "Youngstown, United States (04G)", | |
"key": "04G", |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"key": "UTK", | |
"longitude": "169.86667", | |
"iso": "MH", | |
"status": 1, | |
"name": "Utirik Airport", | |
"continent": "OC", | |
"type": "airport", | |
"latitude": "11.233333", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Sample a Motorola Surfboard modem's signal. | |
This script is meant to be run with the Motorola SB6121 Surfboard Modem. | |
If you run it on a different modem, it might not work, but it's worth a try... | |
It should be run as a cron job, every minute (or whatever interval you'd like) | |
into a text file. The file can later be used by a json parser to analyze the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import colorsys | |
def hsb2rgb(hsb): | |
''' | |
Transforms a hsb array to the corresponding rgb tuple | |
In: hsb = array of three ints (h between 0 and 360, s and v between 0 and 100) | |
Out: rgb = array of three ints (between 0 and 255) | |
''' | |
H = float(hsb[0] / 360.0) | |
S = float(hsb[1] / 100.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import aiohttp | |
from aiohttp import web | |
from zeroconf import ServiceInfo, ServiceBrowser, Zeroconf | |
import socket | |
import struct | |
import random | |
import hashlib | |
NewerOlder