Skip to content

Instantly share code, notes, and snippets.

View pganti's full-sized avatar

Paddy Ganti pganti

  • Instart Logic
  • Bay Area,CA
View GitHub Profile
@pganti
pganti / plot.awk
Created April 15, 2024 21:15 — forked from katef/plot.awk
#!/usr/bin/awk -f
# This program is a copy of guff, a plot device. https://github.com/silentbicycle/guff
# My copy here is written in awk instead of C, has no compelling benefit.
# Public domain. @thingskatedid
# Run as awk -v x=xyz ... or env variables for stuff?
# Assumptions: the data is evenly spaced along the x-axis
# TODO: moving average
@pganti
pganti / download_chrome41.js
Created May 6, 2019 22:06 — forked from ebidel/download_chrome41.js
For when you need to test your site in Google Search (Chrome 41).
/**
* Copyright 2018 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@pganti
pganti / chrome.py
Created February 27, 2017 03:35 — forked from zweizeichen/chrome.py
Check your browsing history for sites using Cloudflare
import sqlite3
import tldextract
history_domains = set()
cf_domains = None
print("Loading domains from Chrome browsing history...")
# Copy history from ~/Library/Application Support/Google/Chrome/Default/History
conn = sqlite3.connect('History')