This file contains hidden or 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 |
This file contains hidden or 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); |
This file contains hidden or 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) => { |
This file contains hidden or 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]+)\"") |
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 hidden or 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. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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") { |