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
| # Generated by Powerlevel10k configuration wizard on 2025-05-12 at 13:34 +07. | |
| # Based on romkatv/powerlevel10k/config/p10k-lean.zsh. | |
| # Wizard options: powerline, unicode, lean, 24h time, 2 lines, solid, no frame, | |
| # dark-ornaments, sparse, concise, transient_prompt, instant_prompt=quiet. | |
| # Type `p10k configure` to generate another config. | |
| # | |
| # Config for Powerlevel10k with lean prompt style. Type `p10k configure` to generate | |
| # your own config based on it. | |
| # | |
| # Tip: Looking for a nice color? Here's a one-liner to print colormap. |
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
| #!/usr/bin/env bash | |
| export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin | |
| COMPOSER_HOME=$HOME/.composer/config | |
| COMPOSER_CACHE_DIR=$HOME/.composer/cache | |
| docker pull composer | |
| echo "Current working directory: '"$(pwd)"'" | |
| docker run -it --rm \ | |
| --user $(id -u):$(id -g) \ | |
| -v $SSH_AUTH_SOCK:/ssh-auth.sock \ | |
| -v /etc/passwd:/etc/passwd:ro \ |
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
| #!/usr/bin/env bash | |
| #============================================================================== | |
| # title: swap.sh | |
| # description: This script automatically creates a swap size that's 20% of total RAM | |
| # and comments out the old swap device in /etc/fstab. | |
| # author: Kawin Viriyaprasopsook <kawin.v@kkumail.com> | |
| # usage: bash swap.sh | |
| # notes: need `sudo dd sed` packages | |
| #============================================================================== |
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
| #!/usr/bin/env bash | |
| MAIL_DOMAIN="your.mail.domain" | |
| # Run once | |
| # Download Java Cryptography Extension (JCE) from http://www.oracle.com/technetwork/java/javase/downloads/index.html | |
| # and extract .jar replace in /opt/zimbra/common/lib/jvm/java/jre/lib/security | |
| # Use strong cipher for nginx | |
| #su - zimbra -c "zmprov mcf zimbraReverseProxySSLCiphers 'ECDHE+CHACHA20:ECDHE+AESGCM:DHE+AESGCM:ECDHE+AES:DHE+AES:RSA+AESGCM:RSA+AES:!DES-CBC3-SHA:!DSS'" | |
| #su - zimbra -c 'zmprov mcf +zimbraResponseHeader "Strict-Transport-Security: max-age=31536000"' | |
| #su - zimbra -c "zmdhparam set -new 4096" | |
| # Disable weak ciphers |
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
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters] | |
| "SMB1"=dword:00000000 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanWorkstation] | |
| "DependOnService"=hex(7):42,00,6f,00,77,00,73,00,65,00,72,00,00,00,4d,00,52,00,\ | |
| 78,00,53,00,6d,00,62,00,32,00,30,00,00,00,4e,00,53,00,49,00,00,00,00,00 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\mrxsmb10] |
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
| #!/usr/bin/env bash | |
| sudo apt-get -y install --no-install-recommends gnome-panel | |
| gnome-desktop-item-edit --create-new ~/Desktop | |
| exit 0 |
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
| #!/usr/bin/env bash | |
| echo "deb http://httpredir.debian.org/debian/ jessie-backports main" | tee /etc/apt/sources.list.d/jessie-backports.list | |
| echo "deb http://packages.openmediavault.org/public/ erasmus main" | tee /etc/apt/sources.list.d/openmediavault.list | |
| apt-get update | |
| apt-get -y install --force-yes openmediavault-keyring postfix | |
| apt-get update && apt-get -y dist-upgrade | |
| apt-get -y install --force-yes openmediavault | |
| omv-initsystem | |
| wget http://omv-extras.org/openmediavault-omvextrasorg_latest_all3.deb && dpkg -i openmediavault-omvextrasorg_latest_all3.deb | |
| rm -rf openmediavault-omvextrasorg_latest_all3.deb |
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
| # favicon.ico | |
| location = /favicon.ico { | |
| log_not_found off; | |
| access_log off; | |
| } | |
| # robots.txt | |
| location = /robots.txt { | |
| log_not_found off; | |
| access_log off; |
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
| #!/usr/bin/env python3 | |
| """Thai National ID Card Reader - Refactored for Python 3. | |
| Author: Kawin Viriyaprasopsook<kawin.v@kkumail.com> | |
| Date: 2025-06-15 | |
| Requirements: sudo apt-get -y install pcscd python3-pyscard python3-pil | |
| Refactoring improvements: | |
| - Context manager support for automatic resource cleanup | |
| - Enum for status words and constants |
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
| [DEFAULT] | |
| username=Administrator | |
| groups=Administrators | |
| inject_user_password=true | |
| config_drive_raw_hhd=true | |
| config_drive_cdrom=true | |
| config_drive_vfat=true | |
| bsdtar_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\bsdtar.exe | |
| mtools_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\ | |
| verbose=true |
OlderNewer