安裝 snap install terraform --classic main.tf意思是我要使用由 kreuzwerker 提供的 docker Provider」,並且要求版本在 2.x 之間連接本地 Docker Engine定義要建立的資源terraform initterraform apply terraform { required_providers { docker = { source = "kreuzwerker/docker" version = "~> 2.0"
infra brew install tfenv tfenv install 1.5.7 tfenv use 1.5.7 git clone https://github.com/tfutils/tfenv.git ~/.tfenv echo 'export PATH="$HOME/.tfenv/bin:$PATH"' >> ~/.bashrc source ~/.bashrc tfenv install 1.5.7 sudo apt install unzip -y tfenv use 1.5.7 terraform -v
開外網 /etc/mysql/mysql.conf.d/mysqld.cnf 重啟 sudo systemctl restart mysql 安裝 sudo apt install mysql-server 進入 sudo mysql -u root -p 改密 ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewRootPass'; FLUSH PRIVILEGES; 創建用戶 CREATE USER 'hacker'@'localhost' IDENTI
Get-ChildItem C:\ arp -a ssh -Y -p 1998 hacker@192.168.1.104 go run main.go runas /user:12345646 “N:\XL\FFO\FFOnline\Launcher.exe”
sudo apt install nmapsnap install nmap while read ip; do echo “== Scanning $ip ==” | tee -a 456.txt nmap -sV “$ip” | tee -a 456.txt echo “” >> 456.txtdone < 123.txt nmap -sV -iL 123.txt -oN 456.txt nmap –script=ftp-brute -p21-sS 安靜查詢 nmap itamiokanjiro.ddn
備份與使用數據庫 sudo -u postgres createdb -E UTF8 -T template0 gf_gs pg_dump -U postgres gf_gs > /var/www/html/old_db.sql psql -U postgres gf_gs < /var/www/html/old_db.sql 斷開連結 SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = 'gf_gs'; ./omg start your_postgres_pas
sudo apt install net-tools 安裝網路 寬頻撥號 sudo apt install pppoeconf sudo pppoeconf apt install net-tools nginx安裝cert sudo apt install certbot python3-certbot-nginx sudo certbot --nginx -d grandfantasia.ddns.net sudo certbot renew --dry-run sudo crontab -e 0 0,12 * * * certbot renew --quiet sudo crontab
改密碼可登入ssh ls /etc/ssh/sshd_config.d/ sudo nano /etc/ssh/sshd_config.d/* 改成yes 失敗 sudo nano /etc/ssh/sshd_config 重啟 sudo systemctl restart sshd
曾經的我 用python寫了很多代碼 自從我用了C++後 發現python真TM狗屎 打包難打包成exe就算了 會整台電腦一起打包 此時當你有安裝大型項目 例如TensorFlow, PyTorch 會涼涼 也無法真正並行