Skip to content

Instantly share code, notes, and snippets.

@gyng
gyng / README.md
Last active March 6, 2024 14:02
Get Google Maps Location History manually from the browser

Get Google Maps Location History manually from the browser

  1. Modify startDate and endDate
  2. Paste this into your browser while logged in to Google
  3. Manually open each URL in the browser: it should download the KML for the day

Notes

  • Google's API only returns a maximum of one day's of data
  • You have to merge the resulting KML yourself
@gyng
gyng / config-no-hass.yaml
Last active April 30, 2024 10:32
Setting up AirGradient ONE v9 with ESPHome to export Prometheus metrics
# AirGradient ONE - Board v9
# https://www.airgradient.com/open-airgradient/instructions/overview/
#
# This configuration was blatantly yoinked from:
# https://github.com/MallocArray/airgradient_esphome/blob/main/airgradient-one.yaml
#
# (see https://github.com/geerlingguy/airgradient-prometheus/issues/39)
# Needs ESPHome 2023.7.0 or later
@gyng
gyng / rtmaze.mermaid
Last active December 18, 2023 18:21
40K Rogue Trader Act 4 Quetza Temer jungle maze template, random?
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gyng
gyng / config.md
Created May 4, 2022 09:16
Setting up VSCode remote SSH server for Ubuntu
@gyng
gyng / gist:959936064ce4509cc9b0a199a88239e5
Created March 9, 2022 19:52
Twitter promoted tweets ublock filter
twitter.com##article div[aria-describedby="tweet-education-header"][role=button] > div > span > span:has-text(/^Follow Topic$/):upward(article):upward(3)
twitter.com##[data-testid="tweet"]:has-text(Follow Topic):upward(3)
using Dummiesman;
using System.IO;
using System.Text;
using UnityEngine;
using UnityEngine.Networking;
using System.Collections;
public class OBJGenerator : MonoBehaviour
{
@gyng
gyng / a.md
Last active March 16, 2023 08:19
Awair Grafana dashboard

https://i.imgur.com/mPgtdla.png

@gyng
gyng / debug.py
Created August 25, 2021 06:29
Python debuggin for vscode
import debugpy
try:
debugpy.listen(("0.0.0.0", 5678))
debugpy.wait_for_client()
except RuntimeError:
pass
breakpoint()
@gyng
gyng / index.d.ts
Created October 2, 2020 05:46
SVGR TypeScript + Jest definitions
declare module "*.svg" {
import * as React from "react";
const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
export { ReactComponent };
export default ReactComponent;
}
@gyng
gyng / filters.md
Last active April 10, 2020 19:13
Useful uBlock Origin filters

Useful uBlock Origin filters

A small collection of useful, but hard to find uBlock Origin filters I've personally found useful

uBlock Origin Wiki: Static-filter-syntax

Block external scripts on a site

||example.com$csp=script-src 'none'