Skip to content

Instantly share code, notes, and snippets.

Avatar
🎶
I may be slow to respond.

Bobby BobbyWibowo

🎶
I may be slow to respond.
View GitHub Profile
@BobbyWibowo
BobbyWibowo / genshinimpact-3120x1440.json
Last active Nov 10, 2022
QtScrcpy custom key maps for Genshin Impact.
View genshinimpact-3120x1440.json
{
"switchKey": "Key_QuoteLeft",
"mouseMoveMap": {
"startPos": {
"x": 0.5,
"y": 0.32
},
"speedRatio": 3.5
},
"keyMapNodes": [
@BobbyWibowo
BobbyWibowo / README.md
Created Oct 12, 2022
regex.test vs known string.startsWith
View README.md
View SimpleUpload.ps1
#Requires -Version 7
# For simplicity's sake, this only accepts uploading 1 file at a time
Param(
[Parameter(ValueFromPipeline)][string] $File,
[string] $Token,
[int] $AlbumID,
[switch] $Silent = $False
)
View MoveOldScreenshots.ps1
$Dirs =
"E:\Pictures\Screenshots",
"E:\Pictures\Steam Screenshots",
"E:\Videos\Recordings\GeForce Experience\Autodesk Flow Design",
"E:\Videos\Recordings\GeForce Experience\Autodesk Flow Design\FFBatch",
"E:\Videos\Recordings\GeForce Experience\Genshin Impact",
"E:\Videos\Recordings\GeForce Experience\Genshin Impact\FFBatch",
"E:\Pictures\bh3rd",
"E:\Pictures\Genshin Impact Screenshots"
$TargetSubDir = "old"
View Magane-Custom-Packs.md

My Magane Custom Packs

Upgrade Notice

Using the console APIs, as described in this Gist, is an older method!

New recommended method is importing custom packs via Magane's Import tab (PR merged to upstream).

Importable JSON config files of my custom packs can be found here: https://magane.fiery.me/configs/.

View nginx-geoip2-ubuntu.md

This is only for Official NGINX mainline Ubuntu releases
https://nginx.org/en/linux_packages.html#Ubuntu

  • Install NGINX build dependencies
    Redo after every NGINX upstream updates, in case of new build dependencies
apt build-dep nginx
  • Install additional build dependencies
View conf.d_yourdomain.com.conf
server {
listen 80;
server_name yoursite.com;
# set $google_analytics_id and include the google_analytics file below
set $google_analytics_id "UA-12345678-9";
include /usr/local/nginx/conf/google-analytics.conf;
location / {
# your normal config goes here...
View autocannon-0003.out
# Hyper-Express
$ autocannon http://localhost:3001/api/check --renderStatusCodes --debug --warmup [ -c 2500 -d 30 ] -c 2500 -d 30 -p 4
┌─────────┬────────┬────────┬────────┬────────┬───────────┬──────────┬────────┐
│ Stat │ 2.5% │ 50% │ 97.5% │ 99% │ Avg │ Stdev │ Max │
├─────────┼────────┼────────┼────────┼────────┼───────────┼──────────┼────────┤
│ Latency │ 267 ms │ 447 ms │ 622 ms │ 645 ms │ 427.02 ms │ 76.18 ms │ 708 ms │
└─────────┴────────┴────────┴────────┴────────┴───────────┴──────────┴────────┘
┌───────────┬─────────┬─────────┬─────────┬────────┬──────────┬──────────┬─────────┐
@BobbyWibowo
BobbyWibowo / No-skip-urls-list
Last active Jun 30, 2022
Skip Redirect extension backups configs
View No-skip-urls-list
/abp
/account
/adfs
/auth
/cookie
/download
/login
/logoff
/logon
/logout