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
version: "3" | |
services: | |
v2ray: | |
image: v2fly/v2fly-core:v4.45.2 | |
restart: always | |
command: v2ray -config /config.json | |
volumes: | |
- ./config.json:/config.json | |
ports: |
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
#!/usr/bin/env bash | |
trap 'echo "Killing ssh-agent" && eval "$(ssh-agent -k)"' EXIT | |
eval "$(ssh-agent -s)" | |
ssh-add ~/.ssh/id_ed25519 | |
echo "Shell activated" | |
bash |
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
*.8197cb8c.nip.io { | |
tls internal | |
@portNum header_regexp "Host" ([0-9]+)\.8197cb8c\.nip\.io | |
handle @portNum { | |
reverse_proxy localhost:{http.regexp.1} | |
} | |
handle { | |
respond "bad port" | |
} |
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
#- Default reverse proxy | |
location / { | |
proxy_pass http://127.0.0.1:3000; | |
include proxy_params; | |
} | |
#- Reverse proxy w/ path + path removal | |
location /api { | |
# Removes /api prefix | |
rewrite ^/api/(.*) /$1 break; |
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
### SRC: https://github.com/steebchen/nginx-spa | |
server { | |
listen 80 default_server; | |
gzip on; | |
gzip_min_length 1000; | |
gzip_types text/plain text/xml application/javascript text/css; | |
root /app; |
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
{ pkgs ? import <nixpkgs> { } }: | |
let | |
ld_library_path = pkgs.lib.makeLibraryPath (with pkgs; [ | |
stdenv.cc.cc # for greenlet support | |
]); | |
in | |
pkgs.symlinkJoin { | |
name = "dev-env-python311-cc-libpq"; | |
paths = with pkgs; [ python311 postgresql ]; | |
nativeBuildInputs = [ pkgs.makeWrapper ]; |
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
{ | |
"name": "minecraft-yatopia", | |
"display": "Yatopia - Minecraft", | |
"type": "minecraft-java", | |
"install": [ | |
{ | |
"files": [ | |
"https://api.yatopiamc.org/v2/build/${build}/download?branch=ver/${version}" | |
], | |
"type": "download" |
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
##Regex | |
`regex_patern = r'^\/(command)+(\@username_of_bot\w*(_\w+)*)?([ \f\n\r\t\v\u00A0\u2028\u2029].*)?$'` | |
Commands like that will handle | |
/command | |
/command arg1 arg2 ... | |
/command@username_of_bot | |
/command@username_of_bot arg1 arg2 ... | |
but | |
/command@other_bot |