Skip to content

Instantly share code, notes, and snippets.

@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
// ==UserScript==
// @name Bing Rewards Supersonic Quiz Clicker
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.bing.com/*
// @icon https://www.google.com/s2/favicons?domain=bing.com
// @grant none
// ==/UserScript==
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 / 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."

@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 / 2fa.txt
Created September 10, 2017 21:26
u2f supported sites.
http://www.dongleauth.info/
git clone git@github.com: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 / tmux-cheatsheet.markdown
Created August 22, 2017 14:04 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@dmn001
dmn001 / apple tv screensavers download command.txt
Last active December 9, 2023 00:50
apple tv screensavers
cat urls.csv | sed 's/\([^,]*\),\(.*mov\)\r/wget "\1" -O "\2"/' | sh
the location and time of day are prepended to the filename.
@dmn001
dmn001 / hotukdeals-imagus.txt
Last active July 18, 2017 13:12
hotukdeals sieve for imagus
{"hotukdeals":{"img":"(images\\.hotukdeals\\.com/threads/thread_)([a-z_]+)+","to":"$1full_screen"}}
@dmn001
dmn001 / market_history_json_parse.py
Last active June 27, 2016 11:48
parse sold item date, name and price
import json
from bs4 import BeautifulSoup
import re
of = open("all_output.txt", "wb")
for file_num in range(1,102):
filename = "%03d.json" % file_num
print filename