群襬搖搖 笑知小鳥
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
from tcboeira | |
``` | |
# Preseeding only locale sets language, country and locale. | |
d-i debian-installer/locale string pt_BR | |
# Set language, country and locale. | |
d-i debian-installer/language string pt_BR | |
d-i debian-installer/country string BR | |
d-i debian-installer/locale string pt_BR.UTF-8 |
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/bash | |
# This script will take a snapshot of the database | |
# It will then gzip it | |
# It will save it in the 'storage' directory | |
# it will delete any old db snapshots > 7 days. | |
echo "===== Starting Snapshot ====" | |
# add two vars | |
database_name='test_db' | |
database_user='test_user' |
command
| tr -d " " | sed 's/[0-9]*$/0\/24/'
result
echo "192.168.1.1" | tr -d " " | sed 's/[0-9]*$/0\/24/'
192.168.1.0/24
you will not be able to run command bat after you install bat package from apt. were is how to fix it.
2023-07-10 11:06:50 [chchang@us ~ ]$ sudo update-alternatives --install
update-alternatives: --install needs <link> <name> <path> <priority>
Use 'update-alternatives --help' for program usage information.
2023-07-10 11:07:39 [chchang@us ~ ]$