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
| # Usage: At first send the file to your saved messages. Make sure it's the last message and run this script with python | |
| # At first install Telethon and humanize with pip3 install telethon humanize cryptg | |
| # Note that cryptg is optional and only is used for speeding up the downloads | |
| import asyncio | |
| import humanize | |
| from telethon import TelegramClient | |
| # These example values won't work. You must get your own api_id and | |
| # api_hash from https://my.telegram.org, under API Development. | |
| api_id = 12345 |
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
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "log" | |
| "mime/multipart" | |
| "net/http" |
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
| package main | |
| import ( | |
| "context" | |
| "log" | |
| "math/rand" | |
| "net/http" | |
| "os" | |
| "os/exec" | |
| "os/signal" |
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
| package main | |
| import ( | |
| "fmt" | |
| tls "github.com/refraction-networking/utls" | |
| "net" | |
| "time" | |
| ) | |
| var requestHostname = "cloudfront.com" |
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
| ./configure --prefix=/etc/nginx \ | |
| --sbin-path=/usr/sbin/nginx \ | |
| --modules-path=/usr/lib64/nginx/modules \ | |
| --conf-path=/etc/nginx/nginx.conf \ | |
| --error-log-path=/var/log/nginx/error.log \ | |
| --pid-path=/var/run/nginx.pid \ | |
| --lock-path=/var/run/nginx.lock \ | |
| --build=CentOS \ | |
| --with-select_module \ | |
| --with-poll_module \ |
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 json | |
| import os | |
| import requests | |
| import shutil | |
| import spotipy | |
| import sys | |
| from bs4 import BeautifulSoup | |
| from deezloader import Login # https://github.com/An0nimia/deezloader | |
| from glob import glob |
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
| // Inspired by https://github.com/Iku/Google-Forms-to-Discord | |
| const BOT_API = "YOUT_BOT_API"; | |
| const CHAT_ID = "CHAT_ID"; | |
| function onSubmit(e) { | |
| var form = FormApp.getActiveForm(); | |
| var allResponses = form.getResponses(); | |
| var latestResponse = allResponses[allResponses.length - 1]; | |
| var response = latestResponse.getItemResponses(); | |
| var result = ""; |
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
| unsigned long long floor_sqrt(unsigned long long x) | |
| { | |
| unsigned long long low = 0, high = x; | |
| // prevent integer overflow on pow2 | |
| if (high > 18446744065119617025) | |
| return 4294967296; | |
| if (high > 4294967296 * 2 - 1) | |
| high = 4294967296 * 2 - 1; | |
| // use binary search | |
| while(low <= high) |
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
| // ==UserScript== | |
| // @name PDF Dark Mode | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1 | |
| // @description A tampermonkey script to enable dark mode even on local files. | |
| // @author Hirbod Behnam | |
| // @match *://*/*.pdf | |
| // @grant none | |
| // ==/UserScript== |
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
| #include <stdint.h> | |
| #include <string.h> | |
| static uint32_t rotl(uint32_t a, uint32_t b) { | |
| return (a << b) | (a >> (32 - b)); | |
| } | |
| static void qr(uint32_t x[], uint32_t a, uint32_t b, uint32_t c, uint32_t d) { | |
| x[a] = x[a] + x[b]; | |
| x[d] = rotl(x[d] ^ x[a], 16); |