Skip to content

Instantly share code, notes, and snippets.

let scrollCounter = 0;
//error watcher
setInterval(() => {
if (document.querySelector(`[aria-label="Something went wrong"]`)) {
location.reload();
}
}, 100)
@TfTHacker
TfTHacker / Hypothesidian.js
Last active October 7, 2024 21:32
Hypothes.is - retrieve your annotations into Obsidian (for templater plugin)
<%*
/*
# Hypothes.idian a templater script for retrieving annotations from Hypothes.is
Dev: TfTHacker https://twitter.com/TfTHacker
# Prerequisites:
+ Templater plugin by https://github.com/SilentVoid13/Templater
+ Free Hypothes.is developer token from: https://hypothes.is/account/developer
+ This script will prompt you for his token and save it to a file called "hypothesis config.md"
+ This file store your configuration and can be located any where in your vault.
@ta264
ta264 / get-docker.sh
Last active February 26, 2024 13:46
Install docker on arm64 synology
#!/bin/bash
set -e
ARCH=aarch64
DOCKER_VERSION=20.10.0
DOCKER_DIR=/volume1/@docker
echo "Downloading docker $DOCKER_VERSION-$ARCH"
curl "https://download.docker.com/linux/static/stable/$ARCH/docker-$DOCKER_VERSION.tgz" | tar -xz -C /usr/local/bin --strip-components=1
@ta264
ta264 / run.sh
Created December 11, 2020 18:29
docker-compose
#!/bin/sh
#
# Forked from https://github.com/linuxserver/docker-docker-compose/blob/master/run.sh
#
# Run docker-compose in a container
#
# This script will attempt to mirror the host paths by using volumes for the
# following paths:
# * $(pwd)
# * $(dirname $COMPOSE_FILE) if it's set
@Davoleo
Davoleo / hosts
Last active February 12, 2024 09:49
The hosts file entries to block Spotify audio ad servers. | v: 1.0.66.478.g1296534d
############## SPOTIFY - ADS - BEGIN
127.0.0.1 media-match.com
127.0.0.1 adclick.g.doublecklick.net
127.0.0.1 www.googleadservices.com
127.0.0.1 pagead2.googlesyndication.com
127.0.0.1 googleads.g.doubleclick.net
127.0.0.1 pubads.g.doubleclick.net
127.0.0.1 securepubads.g.doubleclick.net
127.0.0.1 www.omaze.com
127.0.0.1 omaze.com
@po5
po5 / universal-torrent-gallery.user.js
Last active September 18, 2024 16:41
Gallery view for trackers
@AveYo
AveYo / !BlackLess.md
Last active October 13, 2024 00:43
A High Contrast based neutral / less blues tone Windows Dark / Light Theme by AveYo

Blackless.theme

@dannguyen
dannguyen / tweet-selenium.py
Last active December 14, 2022 07:45
how to send a tweet through Firefox using Python + Selenium
"""
Tweeting by controlling Firefox via Python + selenium
http://selenium-python.readthedocs.org/
This script:
- Opens up Firefox
- Goes to https://www.twitter.com
- Clicks the login button
- logs you in (assuming you have your twitter password in a file named `mypassword.txt`...)
@hofmannsven
hofmannsven / README.md
Last active November 10, 2024 13:48
Git CLI Cheatsheet