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
import { useState } from 'react' | |
import { ethers } from 'ethers' | |
import { create as ipfsHttpClient } from 'ipfs-http-client' | |
import { useRouter } from 'next/router' | |
import axios from 'axios' | |
import { NFTStorage } from 'nft.storage' | |
const client = ipfsHttpClient('https://ipfs.infura.io:5001/api/v0') | |
import { | |
nftaddress, nftmarketaddress |
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
#!/bin/bash | |
# generate file containing all URIs to execute to retrieve data from hacker news firebase API | |
# api docs: https://github.com/HackerNews/API | |
echo generating file hn-uri.txt | |
URICOUNT=10000000 | |
echo file will contain $URICOUNT lines |
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
第一步,在/etc/yum.repos.d/目录下创建一个源配置文件nginx.repo: | |
cd /etc/yum.repos.d/ | |
vim nginx.repo | |
填写如下内容: | |
[nginx] | |
name=nginx repo |
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
###### | |
# 本归档每周末收录当周的Tips | |
###### | |
# 以root身份执行上一条命令 | |
$ sudo!! | |
# 返回用户主目录 | |
$ cd |