sudo apt purge hostapd dnsmasq
if these setting files are existed, here is how to roll back
#_preseed_V1 | |
#### Contents of the preconfiguration file (for bullseye) | |
### Localization | |
# Preseeding only locale sets language, country and locale. | |
d-i debian-installer/locale string en_US | |
# The values can also be preseeded individually for greater flexibility. | |
#d-i debian-installer/language string en | |
#d-i debian-installer/country string NL | |
#d-i debian-installer/locale string en_GB.UTF-8 |
#!/bin/bash | |
clear | |
while : | |
do | |
if [ ! -f /usr/bin/neofetch ] | |
then | |
echo -e 'Please install neofetch\nsudo apt install neofetch' | |
exit | |
else | |
neofetch |
#!/bin/bash | |
if [ -f "$1" ] | |
then | |
hour=$(ffmpeg -hide_banner -report -i "$1" 2>&1 | grep "Dura" | awk {'print $2'} | cut -f 1 -d ":") | |
min=$(ffmpeg -hide_banner -report -i "$1" 2>&1 | grep "Dura" | awk {'print $2'} | cut -f 2 -d ":") | |
filename=$(basename -- "$1") | |
filename="${filename%.*}" | |
filename=$(echo "${filename// /_}") |
อ้างอิง https://stackoverflow.com/questions/20408597/htop-with-web-interface
[sudo] apt-get install shellinabox
[sudo] service shellinaboxd stop
[sudo] update-rc.d -f shellinaboxd remove
[sudo] shellinaboxd -t -b -p 8888 --no-beep -s '/htop_app/:nobody:nogroup:/:htop -d 10'
Options:
def chkpid(pid): | |
pid = "".join(pid.split()) | |
thai_num = "๐๑๒๓๔๕๖๗๘๙" | |
if len(pid) != 13: | |
return False | |
if not(pid.isdigit()): | |
return False | |
if pid[0] in thai_num: | |
return False |
เป็นการเอา computing resources (PC, Mobile, Server) ของเราที่เหลืออยู่ เข้าไปช่วยในการประมวลผลในโครงการด้านต่างๆ
ในการนำ computing resources ของเราเข้าร่วมนั้น ก่อนอื่นต้องทำการลงทะเบียน account กับโครงการต่างๆ เพื่อที่นำ account key มาใช้ใน boinc-client
โครงการที่แนะนำ ก็มี
$ python3 -m venv .venv
$ . .venv/bin/activate
(.venv) $ pip install python-telegram-bot
#!/app/bot/.venv/bin/python
#!/path/to/venv/python
in the first line$ sudo systemctl edit --force --full name.service
. In the editor complete at least these statments,[Unit]
Description=Python Service
Wants=network.target
After=network.target
[Service]
ExecStartPre=/bin/sleep 10
#!/bin/bash | |
### Author: cHoo | |
### Date: August 2019 | |
### Version: 1.01 | |
### Description: Script to check diskspace. | |
# Import global variable | |
CONFLE="/opt/scripts/setting-global.ini" | |
if [ -f $CONFLE ] | |
then |