Skip to content

Instantly share code, notes, and snippets.

www.youtube.com##ytd-guide-renderer a.yt-simple-endpoint[title="Shorts"]:upward(ytd-guide-entry-renderer)
www.youtube.com##ytd-mini-guide-renderer a.yt-simple-endpoint[title="Shorts"]:upward(ytd-mini-guide-entry-renderer)
www.youtube.com##ytd-browse #dismissible ytd-rich-grid-slim-media[is-short]:upward(ytd-rich-section-renderer)
www.youtube.com##ytd-browse ytd-grid-video-renderer:has(span.ytd-thumbnail-overlay-time-status-renderer:has-text(/\s(0:\d\d|1:0\d)\s/))
www.youtube.com##ytd-browse ytd-rich-item-renderer:has(span.ytd-thumbnail-overlay-time-status-renderer:has-text(/\s(0:\d\d|1:0\d)\s/))
www.youtube.com##ytd-search ytd-video-renderer:has(span.ytd-thumbnail-overlay-time-status-renderer:has-text(/\s(0:\d\d|1:0\d)\s/))
www.youtube.com##ytd-watch-next-secondary-results-renderer ytd-compact-video-renderer:has(span.ytd-thumbnail-overlay-time-status-renderer:has-text(/\s(0:\d\d|1:0\d)\s/))
www.youtube.com##ytd-browse ytd-grid-video-renderer:has(span.ytd-thumbnail-overlay-time-status-renderer[aria-label="Shor
@DarthNerdus
DarthNerdus / tmcleanup.md
Created May 30, 2021 23:31 — forked from linjer/tmcleanup.md
Script to automatically remote old Mac OSX Time Machine Backups older than a specified number of days

Prerequisites

  • gfind (via brew install findutils)
  • Time Machine drive mounted on your computer (or you can change path from standard /Volume/Time\ Machine\ Backups/Backups.backup.db/
  • Admin/sudo access in the OSX terminal

Script

  • Be sure to set the correct machine name. You can check the actual folder things are going into by looking in the backup location.
  • By default, it erases all backups older than 30 days. Adjust as desired.
#!/system/bin/sh
[[ -f /sdcard/pingreboot ]] || exit
c=0
while :; do
if ping -c 1 1.1.1.1 > /dev/null
then
c=0
log -t ProtoWifi "network passing"
@DarthNerdus
DarthNerdus / pvpRanker.js
Last active October 1, 2019 01:00
PokéKeys Renamer
/*
PokéKeys PVP Rank/Moveset script
This script will generate a custom name for scanned pokemon using the
following format:
[PVP IV Rank]:[Pokemon Name]:[Moves]
For PVP IV rank, it will only be prepended if the IV is rank 400 or higher.
The generation is implemented based on Webhook-Data-Receiver and should
match Go-Stadium's ranking system.
[date:"2018-04-09T01:32:00Z"]
[timeout:240]
[bbox:{{bbox}}];
(
// ZOOM IN TO A SMALL AREA NEAR YOUR SUSPECTED NESTS BEFORE CLICKING 'RUN' AT THE TOP LEFT. IF YOUR AREA IS TOO LARGE, IT WILL TAKE TOO LONG TO SCAN.
// If Niantic updates the OSM version for EX raid eligibility criteria, these tags will classify gyms as 'parks'. BUT THERE IS NO CONFIRMATION THAT NIANTIC HAS DONE ANY UPDATE FOR EX RAIDS YET. Previously nests and EX raid criteria were INDEPENDENT.
way[leisure=park];
way[landuse=recreation_ground];
@DarthNerdus
DarthNerdus / IngressDualMap.user.js
Created July 26, 2019 01:49 — forked from Terrance/IngressDualMap.user.js
An IITC plugin that exports portals currently in view as a CSV list for use with Ingress Dual Map.
// ==UserScript==
// @id iitc-plugin-ingressdualmap-exporter@OllieTerrance
// @name IITC plugin: Ingress Dual Map Exporter
// @category Keys
// @version 0.0.0.1
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @description Exports portals currently in view as a CSV list for use with Ingress Dual Map.
// @include https://www.ingress.com/intel*
// @include http://www.ingress.com/intel*
// @include http://*.ingress.com/intel*

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@DarthNerdus
DarthNerdus / gist:5785778
Created June 14, 2013 22:29
Install isolated ruby 2.0.0 on OS X [REDACTED]
# Install openssl via homebrew
CONFIGURE_OPTS="--with-openssl-dir=/usr/local/opt/openssl --with-out-ext=tk --without-gcc" rbenv install 2.0.0-p195
@DarthNerdus
DarthNerdus / addToAshes
Created May 23, 2013 16:40
Add to OmniFocus from @ashesapp
ashes://addOpenURL?title=Add%20to%20OmniFocus&url=omnifocus%3A%2F%2F%2Fadd%3Fname%3D%5B%5B%5Btitle%5D%5D%5D%26note%3D%5B%5B%5Bpost%5D%5D%5D