Skip to content

Instantly share code, notes, and snippets.

View Misaka13514's full-sized avatar

欠陥電気 Misaka13514

View GitHub Profile
@RigoLigoRLC
RigoLigoRLC / template.svg
Created April 13, 2024 07:33
红色电音极地大冲击模板 (CC BY-NC 4.0)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ZenithalHourlyRate
ZenithalHourlyRate / GUD.md
Last active July 19, 2024 19:43
Use old phone as a second display: USB GUD with postmarketOS

Demo

Xiaomi Redmi 2 with resolution 1280x720 (GUD RGB565 with compression)

9.mp4
10.mp4

#!/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'"
@Esonhugh
Esonhugh / shodan-favicon-figerprint.py
Last active December 7, 2021 15:49 — forked from yehgdotnet/get-shodan-favicon-hash.py
Get Shodan FAVICON Hash (Eson modified)
# 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
@SharzyL
SharzyL / crawl.py
Last active June 6, 2021 03:47
Telegram Relation Graph
# 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
@thalamus
thalamus / ArchLinuxARM-M1
Last active July 16, 2024 18:15
How to boot Arch Linux ARM in QEMU (patched for M1)
/*
* 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
@moesoha
moesoha / worker.js
Last active May 5, 2022 15:12
Auto kick added member from Telegram group (deployed on CloudFlare Worker)
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)
@abc1763613206
abc1763613206 / bvtest.py
Last active July 15, 2024 09:28
BVID Validate
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',
@bonnee
bonnee / stm32vscode.md
Last active July 15, 2024 17:13
STM32 developement on Visual Studio Code

STM32 developement on Visual Studio Code

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.

Warning

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.

@ihciah
ihciah / README.MD
Last active July 9, 2024 13:41
A reverse proxy for Telegram Bot API on Aliyun Function Compute / Cloudflare Workers

A reverse proxy for Telegram Bot API on Aliyun Function Compute / Cloudflare Workers

To help users in China mainland access telegram api stably and conveniently with low cost, this script maybe the one you need.

The server-less means you don't have to run a server to proxy the requests, just pay as you go.

Usage

Edit key_prefix, set it to the prefix of you bot address(like /bot563441998:) can avoid abusing.