20220106

[備忘]智能合約相關資源連結

目前在學solidity用到的幾個網站
陸續再增加

線上智能合約IDE http://remix.ethereum.org/
Openzeppelin合約精靈 https://docs.openzeppelin.com/contracts/4.x/wizard

Rinkeby Test Block Explorer https://rinkeby.etherscan.io
Get Rinkeby Test Eth https://faucet.rinkeby.io/
Get Rinkeby Test Eth https://faucets.chain.link/rinkeby
Opensea TestNet https://testnets.opensea.io/

IPFS https://ipfs.io/ 在做NFT圖檔或JSON檔時可存放的區塊鏈空間
上傳 https://anarkrypto.github.io/upload-files-to-ipfs-from-browser-panel/public/
展示 https://ipfs.io/ipfs/{HASH}
或(cloudflare限定只能看圖片)
https://cloudflare-ipfs.com/ipfs/{HASH}

20211229

BSC TEST NET

BSC TEST NET

https://data-seed-prebsc-1-s1.binance.org:8545

97

BNB

https://explorer.binance.org/smart-testnet


取測試幣 https://testnet.binance.org/faucet-smart

20200812

[WINDOWS]刪除20天前的資料

forfiles -p "D:\userDataDir" -d -20 -c "cmd /c IF @isdir == TRUE rd /S /Q @path"

20191028

VirtualBox 調整CentOS VM硬碟大小配置

"c:\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifyhd Core20-Comp-03-disk1.vdi --resize 25000

接下來進入VM以root執行以下指令
fdisk /dev/sda
d
2
n
p
2
ENTER
ENTER
w
reboot
pvresize /dev/sda2
pvscan
lvextend -l +100%FREE /dev/mapper/centos_core20--desktop--1-root
xfs_growfs /dev/mapper/centos_core20--desktop--1-root
df -h


20181212

xml2json

function xml2json($fileContents) {
  $fileContents = str_replace(array("\n", "\r", "\t"), '', $fileContents);
  $fileContents = trim(str_replace('"', "'", $fileContents));
  $simpleXml = simplexml_load_string($fileContents);
  $json = json_encode($simpleXml,1);
  return $json;
}