openssl req -x509 -nodes -days 36500 -newkey rsa:2048 \
-keyout nginx.key -out nginx.crt -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=localhost"
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 |
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
{ 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
### 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
*.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
#!/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
version: "3" | |
services: | |
v2ray: | |
image: v2fly/v2fly-core:v4.45.2 | |
restart: always | |
command: v2ray -config /config.json | |
volumes: | |
- ./config.json:/config.json | |
ports: |
https://www.yeehawup.com/2011/07/mapping-a-network-drive-to-webdav-share-in-windows-7/
Latest versions of Windows WebDav in Explorer uses Digest Authorization only, but Apache with LDAP supports only Basic Auth.
To enable back support of Basic Authorization we should enable WebClient service (set automatic in services.msc) and allow Basic Auth using regedit for WebClient