Skip to content

Instantly share code, notes, and snippets.

View BobbyWibowo's full-sized avatar
🎶
I may be slow to respond.

Bobby BobbyWibowo

🎶
I may be slow to respond.
View GitHub Profile
# 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 │
└─────────┴────────┴────────┴────────┴────────┴───────────┴──────────┴────────┘
┌───────────┬─────────┬─────────┬─────────┬────────┬──────────┬──────────┬─────────┐

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
# Materia Dark (PapirusDevelopmentTeam/materia-kde)
background #181818
foreground #eff0f1
cursor #eff0f1
selection_background #ffffff
selection_foreground #2d2c2d
color0 #181818
color1 #e14245
{
"ArrowAlphaScript" : 0,
"ArrowHAnchorScript" : "Left",
"ArrowPosXScript" : 0,
"ArrowPosYScript" : 712,
"ArrowScaleScript" : 100,
"ArrowVAnchorScript" : "bottom",
"ArrowWidgetScript" : 0,
"AttributeAlphaScript" : 0,
"AttributeHAnchorScript" : "Left",
@BobbyWibowo
BobbyWibowo / alacritty-one-dark.yml
Last active January 3, 2022 14:40
One Dark (to be paired with Qogir KDE/GTK+ theme) colorscheme for Alacritty
# If `true`, bold text is drawn using the bright color variants.
draw_bold_text_with_bright_colors: true
# Colors (One Dark - to be paired with Qogir KDE/GTK+ theme)
colors:
# Default colors
primary:
background: '0x1e222a'
foreground: '0xfcfcfc'
:root {
--yt-icon-active-color: #3daee9 !important;
/* --iron-icon-fill-color: #ffffff !important; */
}
/** Disable Miniplayer button **/
.ytp-chrome-controls .ytp-button.ytp-miniplayer-button {
display: none;
}
curl \
-H "token: YOUR_TOKEN_HERE" \
-H "albumid: YOUR_ALBUM_ID_HERE" \
-H "filelength: NUMBER_FROM_5_TO_32" \
-H "age: HOURS" \
-H "striptags: 1_IF_YES" \
-F "files[]=@PATH_TO_FILE" \
https://safe.fiery.me/api/upload
@BobbyWibowo
BobbyWibowo / genshinimpact-3120x1440.json
Last active February 25, 2025 05:38
QtScrcpy custom key maps for Genshin Impact.
{
"switchKey": "Key_QuoteLeft",
"mouseMoveMap": {
"startPos": {
"x": 0.5,
"y": 0.32
},
"speedRatio": 3.5
},
"keyMapNodes": [
#!/usr/bin/env bash
NGINX_CONF_PATH="/usr/local/nginx/conf/deny-ips.conf"
if ! [ -f "$NGINX_CONF_PATH" ]; then
echo "Error: '$NGINX_CONF_PATH' is not found."
exit 1
fi
SCRIPT_NAME=$(basename $(readlink -f $0))