@echo off
@cls
for /F "delims= tokens=1" %%i in (C:\code.txt) do (
IF /I %%i==your_code ( GOTO ISOK ) ELSE ( GOTO ISNG )
)
@echo Check Error
GOTO ISEND
:ISOK
@echo Check Pass
GOTO ISEND
:ISNG
@echo Check Fail
:ISEND
@echo Done
@echo off
@cls
for /F "delims= tokens=1" %%i in (C:\code.txt) do (
IF /I %%i==your_code ( GOTO ISOK ) ELSE ( GOTO ISNG )
)
@echo Check Error
GOTO ISEND
:ISOK
@echo Check Pass
GOTO ISEND
:ISNG
@echo Check Fail
:ISEND
@echo Done
@wevtutil cl Security
@wevtutil cl Application
@wevtutil cl Setup
@wevtutil cl System
@wevtutil cl "DFS Replication"
@wevtutil cl "Windows PowerShell"
@echo off
@cls
@set subject=[Subject Title]
@setlocal enabledelayedexpansion
@set logfile=log_%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%%time:~9,2%.txt
@echo ================== >> %logfile%
@echo %date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%%time:~9,2% Begin %subject% >> %logfile%
for /F "delims=; tokens=1" %%i in (C:\list.txt) do (
@ping -n 1 %%i | find "最小值"
@if !ERRORLEVEL!==1 (
@echo %%i is down >> %logfile%
) else (
@echo %%i is life >> %logfile%
@shutdown -s -t 0 -m \\%%i
)
@echo --------- >> %logfile%
)
@echo %date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%%time:~9,2% End %subject% >> %logfile%
@echo ================== >> %logfile%
list.txt like below:
IP
IP
IP
......
有人在玩nft嗎
其實有玩遊戲的朋友 你一直都在用nft
為什麼呢 因為你在遊戲中的任何道具 都是在資料庫有一個唯一的代碼,而道具可以在交易中心再規則下進行交易,交易金額會隨著需求變化,雖然道具同類型的會有很多,但這個道具在資料庫中仍會是唯一的。只是你不知道他的編號是多少。
而且他只在特定的遊戲裡面使用及交易,並沒有公開、開放非玩家交易,如此而已。
可以想像,你的郵件也是NFT的一種喔!只是你看不到也無法交易,但不代表以後不能交易喲!
然而,新的遊戲就會有新的風險,如果這個NFT被入侵、被駭客修改或是倒閉,那麼你的NFT還會有多少價值與公信力呢?
(1)source:
### see: https://dev.mysql.com/downloads/repo/yum/ ###
wget http://repo.mysql.com/mysql80-community-release-el6-3.noarch.rpm
yum localinstall mysql80-community-release-el6-3.noarch.rpm -y
yum module disable mysql
yum install mysql-community-server -y
systemctl enable mysqld
systemctl start mysqld
systemctl status mysqld
(2)getpswd:
mysql_secure_installation
grep 'temporary password' /var/log/mysqld.log
login mysql -u root -p, to test and quit
mysql>\s
mysql>quit
(3)set use utf8
nano /etc/my.cnf
### find:
pid-file=/var/run/mysqld/mysqld.pid
### after add:
-------
init_connect='SET collation_connection = utf8mb4_unicode_ci'
init_connect='SET NAMES utf8mb4'
character-set-server=utf8mb4
#character-set-database=utf8mb4
collation-server=utf8mb4_unicode_ci
skip-character-set-client-handshake
[client]
default-character-set=utf8mb4
[mysql]
default-character-set=utf8mb4
--------
systemctl restart mysqld
(4)grant(all on db.* to 'ur'@'localhost' identified by `pswd`)
CREATE USER 'ur'@'localhost' IDENTIFIED BY 'pswd';
GRANT ALL PRIVILEGES ON db.* TO 'ur'@'localhost';
flush privileges;
:server
1.install
yum install git -y
2.add user
adduser git
passwd git
3.create directory for sample project
su git
cd ~
mkdir project.git
cd project.git
git init --bare
4.create ssh directory and file
cd ..
mkdir .ssh
cd .ssh
touch authorized_keys
chmod 700 ~/.ssh/
chmod 600 ~/.ssh/authorized_keys
5.create ssh key
su root
cd ~
ssh-keygen
scp ~/.ssh/id_rsa.pub git@gitserver:~/.ssh/authorized_keys
# or cat ~/.ssh/id_rsa.pub >> /home/git/.ssh/authorized_keys
:client
1.config
git config --global user.name "Your Name"
git config --global user.email "Your_Mail@example.com"
2.type1:clone
:server create directory in /home/project.git
git clone git@gitserver:~/project.git
cd project
touch test.txt
git add --all
git commit -a -m "First Version"
git push origin master
3.type2:create new project
:server create directory in /home/new_project.git
mkdir new_project
cd new_project
git init
git remote add origin git@gitserver:~/new_project.git
touch test.txt
git add --all
git commit -a -m "First Version"
git push origin master