Parameter | Arguments | Description | Version | Reference |
---|---|---|---|---|
-32bit | launch directly in 32bit mode |
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
// starter was this very helpful post from @lpinca | |
// https://github.com/websockets/ws/issues/2052#issuecomment-1142529734 | |
// installation: npm install ws | |
const WebSocketServer = require("ws"); | |
const http = require('http'); | |
const PORT = process.env.PORT || 8084; |
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
server { | |
set $monitorId <YOUR_ID>; | |
server_name status.<YOUR_DOMAIN>; | |
listen 80; | |
location / { | |
proxy_set_header Host "stats.uptimerobot.com"; | |
proxy_set_header Accept-Encoding ""; | |
proxy_pass_request_headers on; |
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 magnitude = { | |
'十': 1e1, | |
'百': 1e2, | |
'千': 1e3, | |
'万': 1e4, | |
'亿': 1e8, | |
}; | |
const num = {}; |
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
const _ = require('lodash') | |
const fs = require('fs') | |
const sha1 = require('sha1') | |
const path = require('path') | |
const glob = require("glob") | |
const sharp = require('sharp') | |
const fetch = require('node-fetch') | |
const rimraf = require("rimraf") | |
const imagemin = require('imagemin') | |
const domParser = require('dom-parser') |
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 code is intended to use with Arduinix Shield | |
* | |
* 2019-12-22: Basic functionalities by Kay Lin | |
* | |
* This is free and unencumbered software released into the public domain. | |
* | |
* Anyone is free to copy, modify, publish, use, compile, sell, or | |
* distribute this software, either in source code form or as a compiled | |
* binary, for any purpose, commercial or non-commercial, and by any |
- Install the USB drivers for your device (Google has a list of some universal USB drivers here)
- Download the ADB binary for your particular OS (Windows, Mac, Linux)
- Extract the zip file into a folder that you can quickly access.
- On your phone, go to Settings and tap on About Phone. Find the Build Number and tap on it 7 times to enable Developer Options.
- Now enter Developer Options and find USB Debugging. Enable it.
- On your computer, browse to the directory where you extracted the ADB binary.
- Launch a Command Prompt in your ADB folder. For Windows users, this can be done by holding Shift and Right-clicking then selecting the “open command prompt here” option.
- Once you’re in the command
- Download & Install Sublime Text 3.2.2 Build 3211
- Visit https://hexed.it/
- Open file select sublime_text.exe
- Offset
0x8545
: Original84
->85
- Offset
0x08FF19
: Original75
->EB
- Offset
0x1932C7
: Original75
->74
(remove UNREGISTERED in title bar, so no need to use a license)
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 itertools | |
import sys,re | |
from PIL import Image | |
import zbarlight | |
colors = "LRUDFB" | |
def loadImage(filename): | |
img = Image.open(filename) |
NewerOlder