Skip to content

Instantly share code, notes, and snippets.

View GrantBirki's full-sized avatar
:octocat:
Security @github

Grant Birkinbine GrantBirki

:octocat:
Security @github
View GitHub Profile
@GrantBirki
GrantBirki / down-detector-screenshot.py
Last active January 9, 2022 05:32
DownDetector Screenshot Scraper
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from PIL import Image
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from io import BytesIO
options = Options()
# Enable headless mode (optional)
@GrantBirki
GrantBirki / grantbirki-gpg.sh
Created July 23, 2021 23:03
Encrypt a message to me using my public GPG key
curl -s https://github.com/grantbirki.gpg | gpg --import > /dev/null 2>&1; echo "<message>" | gpg -ear [email protected]
@GrantBirki
GrantBirki / nrql.sql
Last active April 9, 2021 05:56
Fastly-to-Insights NRQL
SELECT average(status_2xx) FROM FastlyLogAggregate since 30 minutes ago TIMESERIES 15 minutes facet service
SELECT average(status_3xx) FROM FastlyLogAggregate since 30 minutes ago TIMESERIES 15 minutes facet service
SELECT average(status_4xx) FROM FastlyLogAggregate since 30 minutes ago TIMESERIES 15 minutes facet service
SELECT average(status_5xx) FROM FastlyLogAggregate since 30 minutes ago TIMESERIES 15 minutes facet service
SELECT average(hits) FROM FastlyLogAggregate since 30 minutes ago TIMESERIES 15 minutes facet service
SELECT average(miss) FROM FastlyLogAggregate since 30 minutes ago TIMESERIES 15 minutes facet service
SELECT average(miss_time) FROM FastlyLogAggregate since 30 minutes ago TIMESERIES 15 minutes facet service

Keybase proof

I hereby claim:

  • I am grantbirki on github.
  • I am grantbirki (https://keybase.io/grantbirki) on keybase.
  • I have a public key ASA_HXw0Co0Kp4OjSiZH51tCpt4iMobjf17_r-VpJ0cz7wo

To claim this, I am signing this object: