Skip to content

Instantly share code, notes, and snippets.

@dmn001
dmn001 / 2fa.txt
Created September 10, 2017 21:26
u2f supported sites.
http://www.dongleauth.info/
git clone [email protected]:Nitrokey/dongleauth.git
git grep -B5 "u2f: Yes"
CONTRIBUTING.md- - name: YouTube
CONTRIBUTING.md- url: https://www.youtube.com/
CONTRIBUTING.md- img: youtube.png
CONTRIBUTING.md- tfa: Yes
CONTRIBUTING.md- otp: Yes
@dmn001
dmn001 / readme.txt
Last active October 31, 2021 19:53
apple 4k SDR screensavers
download command:
cat urls_4k.csv | sed 's/\([^,]*\),\(.*mov\)\r/wget "\1" -O "\2"/' | sh
if you want the HDR you need to extract the urls from https://sylvan.apple.com/Aerials/2x/entries.json
https://www.reddit.com/r/apple/comments/771n8q/download_links_for_the_4k_apple_tv_screensavers/doj9tg1/
aria command:
@dmn001
dmn001 / apple 4k SDR screensavers (2018-09).md
Last active October 31, 2021 19:55
apple 4k SDR screensavers (2018-09)

here are the latest set of urls for the apple 4k sdr videos/screensavers ( https://9to5mac.com/2018/09/17/tvos-12-features/ ) which includes the nasa/ISS space flyovers:

the url was found here:

JohnCoates/Aerial#463 (comment)

quote:

"The format changed somewhat; you need to extract the JSON out of here https://sylvan.apple.com/Aerials/resources.tar. The JSON includes the URLs to the videos and the time markers for the tvOS 12 captions as a dictionary, keyed by time. The values of this dictionary are keys which can be found in the strings plists."

https://standardebooks.org/ebooks/abraham-merritt/the-moon-pool/dist/abraham-merritt_the-moon-pool.epub
https://standardebooks.org/ebooks/aesop/fables/v-s-vernon-jones/dist/aesop_fables.epub
https://standardebooks.org/ebooks/agatha-christie/the-murder-on-the-links/dist/agatha-christie_the-murder-on-the-links.epub
https://standardebooks.org/ebooks/agatha-christie/the-mysterious-affair-at-styles/dist/agatha-christie_the-mysterious-affair-at-styles.epub
https://standardebooks.org/ebooks/agatha-christie/the-secret-adversary/dist/agatha-christie_the-secret-adversary.epub
https://standardebooks.org/ebooks/alexandre-dumas/the-black-tulip/p-f-collier-and-son/dist/alexandre-dumas_the-black-tulip.epub
https://standardebooks.org/ebooks/alfred-lord-tennyson/idylls-of-the-king/gustave-dore/dist/alfred-lord-tennyson_idylls-of-the-king.epub
https://standardebooks.org/ebooks/algis-budrys/short-fiction/dist/algis-budrys_short-fiction.epub
https://standardebooks.org/ebooks/andre-norton/star-hunter/dist/andre-norton_star-hunter
@dmn001
dmn001 / remover2.py
Created March 4, 2023 22:35
Google Drive batch file deleter
import httplib2
import os
from oauth2client.file import Storage
from apiclient import discovery
from oauth2client import client
from oauth2client import tools
from pprint import pprint
# modified from https://medium.com/@staticmukesh/how-i-managed-to-delete-1-billions-files-from-my-google-drive-account-9fdc67e6aaca
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import subprocess
import pygetwindow as gw
import pyautogui
import time
original_mouse_pos = pyautogui.position()
# Launch colorcpl.exe
subprocess.Popen("colorcpl.exe")
time.sleep(0.5) # Wait for the window to open