Skip to content

Instantly share code, notes, and snippets.

View lbr77's full-sized avatar
๐Ÿ’ญ
Looking for jobs

Borui Li lbr77

๐Ÿ’ญ
Looking for jobs
View GitHub Profile
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@lbr77
lbr77 / install.sh
Created August 10, 2022 14:29
Scripts for Synology DS120j or similar machines to install docker
#!/usr/bin/env bash
# Description: Install docker-aarch64 for ds120j
# System Required: Synology
# Author: lbr77
# some scrpts from github.com/P3TERX
#
# MIT License
#
@lbr77
lbr77 / index.js
Created May 29, 2021 07:01
ๅŸบไบŽCF-Workers็š„็ซ™็‚นPV็ปŸ่ฎก
addEventListener("fetch", (event) => {
event.respondWith(
handleRequest(event)
);
});
async function handleRequest(event){
const url = new URL(event.request.url);
const method = event.request.method;
if(method === "GET"){
let record = await JSON.parse(await KV.get("RECORD"))
@lbr77
lbr77 / index.js
Created May 22, 2021 10:53
CDNๅผ€ๆบ
addEventListener("fetch", event => {
event.respondWith(handleRequest(event))
})
const BUCKET_NAME = "lbr77/CDN@main"
const BUCKET_URL = `http://cdn.jsdelivr.net/gh/${BUCKET_NAME}`
async function serveAsset(event) {
const url = new URL(event.request.url)
const cache = caches.default
C++ ๐Ÿ•“ 6h36m โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 75.9%
YAML ๐Ÿ•“ 29m โ–ˆโ–Œโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 5.6%
JavaScript ๐Ÿ•“ 28m โ–ˆโ–Œโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 5.5%
Python ๐Ÿ•“ 20m โ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 3.9%
Other ๐Ÿ•“ 16m โ–‰โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 3.1%
@lbr77
lbr77 / ๐ŸŽฎ ๆœ€่ฟ‘ๆˆ‘ๅœจ็Žฉโ€ฆ
Last active June 23, 2021 00:56
steamๆดปๅŠจ่ฎฐๅฝ•
๐Ÿšซ ๅ•Šๅ“ฆ๏ผŒๆœ€่ฟ‘ๅฅฝๅƒๆฒกๆœ‰็Žฉ่ฟ‡ๆธธๆˆๅ‘ข

Keybase proof

I hereby claim:

  • I am lbr77 on github.
  • I am lbr77 (https://keybase.io/lbr77) on keybase.
  • I have a public key whose fingerprint is 5662 9CE9 1E3C 4E14 9421 F81F B7CB C14B 9515 95E9

To claim this, I am signing this object:

@lbr77
lbr77 / Dockerfile
Last active April 3, 2020 02:24
aria2docker
# Dockerfile to build aria2 Windows binary using ubuntu mingw-w64
# cross compiler chain.
#
# $ sudo docker build -t aria2-mingw - < Dockerfile.mingw
#
# After successful build, windows binary is located at
# /aria2/src/aria2c.exe. You can copy the binary using following
# commands:
#
# $ id=$(sudo docker create aria2-mingw)