View spotify_image_size.ts
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 |
View ivd-autofill.js
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
// 🇺🇸 Turkey has the world's dumbest government portal for corporate taxes that require you to | |
// use a virtual keypad with shuffled buttons as if that does literally ANYTHING to benefit security | |
// LOL https://media.discordapp.net/attachments/244230771232079873/1090222467894755328/image.png | |
// 🇹🇷 IVDnin 2001de kalmış vergi ödeme portalındaki salak keypadi hızlıca geçmek için kullanılır | |
// creditCardNumber ve diğer kısımlara kendi bilginizi girin. | |
// Consolea yapıştırmadan önce keypadin açık olduğundan emin olun | |
const creditCardNumber = "xxxx xxxx xxxx xxxx" |
View kahve_dunyasi.json
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", |
View ban_check.py
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. |
View armongate.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View weverse_post.py
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]+)\"") |
View metrics.js
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) => { |
View weverse.js
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 forge = require('node-forge') | |
const fetch = require('node-fetch') | |
const publicKey = `-----BEGIN RSA PUBLIC KEY----- | |
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAu/OhimOynajYomJmBsNvQxSDwekunsp986l7s/zMN/8jHXFlTqT79ZOsOwzVdZcKnkWYXwJg4nhIFpaIsPzklQCImp2kfKUJQV3jzw7/Qtq6NrOOh9YBADr+b99SHYcc7E7cDHjGXgWlC5jEI9h80R822wBU0HcbODkAQ3uosvFhSq3gLpxwdimesZofkJ5ZbAmGIMj1GEWAfMGA49mxkv/cDFWry+6FM4mUW6A0301QUg4wK/8n6RrzRj1NUkevZj1smizHeqmBE+0BU5H/fR9HclErx3LMHlVlxSgEEEjNUx3B0bLO0OHppmEb4B3Tk1O3ZsquYyqZyb2lBTbrQwIDAQAB | |
-----END RSA PUBLIC KEY-----` | |
const key = forge.pki.publicKeyFromPem(publicKey); | |
const encryptedPassword = key.encrypt("your-password-here", 'RSA-OAEP') | |
console.log(encryptedPassword); |
View fix_fonts.sh
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 bash | |
#check if font is installed | |
fc-match "Noto Color Emoji" | |
#if not installed install with following line | |
apt-get install fonts-noto-color-emoji -y | |
curl -L https://noto-website-2.storage.googleapis.com/pkgs/NotoColorEmoji-unhinted.zip -o NotoColorEmoji.zip | |
unzip NotoColorEmoji.zip |
View nested-find.js
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
// Aggregates are a powerful mongodb tool that allows us to craft complex queries. | |
// In this case it helps prevent repetition in a situation where we would have to | |
// query a document with a filter, then use a duplicate `Array.find` logic to | |
// extract the subdocument we were already expecting to find in the first place. | |
// Example person document | |
{ | |
name: "jason", | |
pets: [{ | |
type: "dog", |
NewerOlder