Skip to content

Instantly share code, notes, and snippets.

View lushl9301's full-sized avatar
🙃
hi

˥n Sɥǝuƃlᴉɐuƃ lushl9301

🙃
hi
View GitHub Profile
split -a4 -d -l 10000000 tx.csv chunk

for X in chunk*; do echo $X; sort -k4g -k5g -t',' $X > sorted-$X.csv; sleep 10s; done

sort --parallel=120 -k4g -k5g -t',' -m sorted-chunk0* > sorted_tx.csv
npm install dotenv --save\
npx hardhat compile
npm install --save-dev hardhat
npm install --save-dev @nomiclabs/hardhat-etherscan\
npm install @openzeppelin/contracts
npx hardhat compile
npx hardhat compile
npm install --save-dev @nomiclabs/hardhat-ethers
npx hardhat compile
npx hardhat run --network rinkeby scripts/deploy-burner.js
{
"title": "Left Control -> Hyper/F18",
"rules": [
{
"description": "Remap Left Control to Hyper (ctrl + alt + cmd) if used in combination with other keys, otherwise map it to F18.",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_control",
@lushl9301
lushl9301 / system information
Created January 2, 2019 03:01
System information
nvidia-smi
lscpu
lshw -short -C disk
lshw -class disk -class storage
sudo dmidecode --type 17
@lushl9301
lushl9301 / gist:8a4bfbb824e220d8d949bc919cd34ad5
Created December 27, 2018 06:31
disk installation on p100
fdisk -l
parted /dev/sdc
mkfs.ext4 -L data1 /dev/sdc1
mkdir data1
vim /etc/fstab
mount -a
mount -o remount /data
df -h
yum -y install epel-release
yum -y install pssh
echo "installing essential tools and libraries for CentOS"
yum -y groupinstall "Development Tools"
yum -y groupinstall "Development Libraries"
yum -y install gcc-g++ git-core wget links zip unzip unrar
yum -y install mysql-server mysql-client mysql-devel
void PrintToHex(const char *memory_space, unsigned long offset) {
const auto *a = reinterpret_cast<const unsigned char *>(&memory_space);
std::cout << std::endl;
for (size_t i = 0; i < offset; ++i) {
std::cout << std::right << std::setw(2) << std::hex << static_cast<unsigned int>(a[i]) << " ";
// std::cout << std::right << std::setw(2) << std::hex << '1' << " ";
// std::cout << memory_space[i] << " ";
if (i % 10 == 0) {
std::cout << std::endl;
Verifying my Blockstack ID is secured with the address 1HhKwoCiGGwHdeefnsRTNVikX5Qz4hoj7E https://explorer.blockstack.org/address/1HhKwoCiGGwHdeefnsRTNVikX5Qz4hoj7E
sudo nvidia-install --uninstall
sudo reboot
sudo service gdm stop
sh cuda_install.sh
@lushl9301
lushl9301 / README.md
Last active November 25, 2017 15:28
Automated Image Annotation Aide for Chest X-Rays Project README

Prepare data

cd 0.get_data
python2 scraper.py ../data/ims
./clean_name.pl ../data/img
cd ..
jupyter notebook
# run from [1] to [9]