This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import requests | |
import os | |
import pathlib | |
SONARR_TOKEN = os.environ.get("SONARR_TOKEN") | |
# directory where hardlinks will be created for renaming purposes | |
HARDLINK_TARGET = os.environ.get("HARDLINK_TARGET") | |
# DRY_RUN=true to test without touching the filesystem | |
DRY_RUN = os.environ.get("DRY_RUN", "false").lower() == "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import requests | |
import os | |
import pathlib | |
RADARR_TOKEN = os.environ.get("RADARR_TOKEN") | |
# directory where hardlinks will be created for renaming purposes | |
HARDLINK_TARGET = os.environ.get("HARDLINK_TARGET") | |
# DRY_RUN=true to test without touching the filesystem | |
DRY_RUN = os.environ.get("DRY_RUN", "false").lower() == "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const file = await import(process.argv[2], { assert: { type: "json" } }) | |
function getValues(obj) { | |
const values = [] | |
if (typeof obj !== "object") { | |
return values | |
} | |
for (const key of Object.keys(obj)) { | |
if (typeof obj[key] === "object") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const MagicImageBytes = { | |
640: 0b1011001001110011n, | |
300: 0b0001111000000010n, | |
64: 0b0100100001010001n, | |
} as const; | |
/** | |
* Converts a spotify link to a new size. | |
* | |
* @see |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CARD_NUMBER = "1234123412341234" | |
const CARD_OWNER = "John Doe" | |
const CARD_CVV = 999 | |
const CARD_EXPIRY = "3/26" | |
// Change above this line | |
function typeString(elementId, str, callback) { | |
let element = document.getElementById(elementId) | |
if (!element) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"storeId": "d1d14969-c3e3-e711-80e0-005056010583", | |
"storeName": "Kahve Dünyası - Promenade", | |
"storeCode": "509", | |
"city": "HAWALLİ", | |
"state": "AL KUWAİT", | |
"district": "AL MOTASEM STREET", | |
"country": "KUVEYT", | |
"address": "Inside The Sultan Center, Al Motasem Street, Al Kuwait Hawalli", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Optional | |
import requests | |
import re | |
import datetime | |
def check_turkish_ban_date(site: str) -> Optional[datetime.date]: | |
""" | |
Looks up when a site (domain + tld) was banned in turkey. | |
Returns None if the site isn't banned. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from hashlib import sha1 | |
import hmac | |
import time | |
import base64 | |
import requests | |
import urllib.parse | |
js_link_regex = re.compile("src=\"(.+\/main.*\.js)\"") | |
secret_key_regex = re.compile("return\s?\"([a-fA-F0-9]+)\"") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Random from "seedrandom"; | |
import express from "express"; | |
const alphabet = "abcdefghijklmnoprstuvwyz123456789////"; | |
const random = (rnd: () => number, len: number, min = 0) => | |
Math.floor(rnd() * (len - min)) + min; | |
function generateEndpoints(salts: string[]) { | |
return salts.map((salt) => { |
NewerOlder