Skip to content

Instantly share code, notes, and snippets.

View AarenWang's full-sized avatar

Aaren Wang AarenWang

  • Programmer
  • Hang Zhou
View GitHub Profile
@AarenWang
AarenWang / token.json
Last active September 30, 2022 08:48
{
"name": "Test Tokens List",
"version": {
"major": 1,
"minor": 0,
"patch": 0
},
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0/logo.png",
"timestamp": "2022-09-23 00:00:00.000+00:00",
"tokens": [
@AarenWang
AarenWang / ethereum-hd-wallet-generate.js
Last active June 6, 2022 07:13
generate bip39 hdwallet by nodejs
/**
* npm init
* yarn add bip39 ethereum-hdwallet
*/
const bip39 = require('bip39')
const HDWallet = require('ethereum-hdwallet')
//const mnemonic_chinese = bip39.generateMnemonic(128, null, bip39.wordlists.chinese_simplified)
//console.log("助记词:" + mnemonic_chinese) //生成中文助记词
const mnemonic = bip39.generateMnemonic(128)
console.log("mnemonic:" + mnemonic)
import com.alibaba.fastjson.JSON;
import com.aliyuncs.*;
import com.aliyuncs.ecs.model.v20140526.RunInstancesRequest;
import com.aliyuncs.ecs.model.v20140526.RunInstancesRequest.DataDisk;
import com.aliyuncs.ecs.model.v20140526.RunInstancesRequest.NetworkInterface;
import com.aliyuncs.ecs.model.v20140526.RunInstancesRequest.Tag;
import com.aliyuncs.ecs.model.v20140526.RunInstancesResponse;
import com.aliyuncs.ecs.model.v20140526.DescribeInstancesRequest;
import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse;
import com.aliyuncs.exceptions.ClientException;
@AarenWang
AarenWang / nohup.c
Created August 29, 2018 06:43
GNU coreutils nohup.c
/* nohup -- run a command immune to hangups, with output to a non-tty
Copyright (C) 2003-2018 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@AarenWang
AarenWang / httpd.c
Created May 4, 2017 06:14
J. David's webserver This is a simple webserver Created November 1999 by J. David Blackstone CSE 4344 (Network concepts), Prof. Zeigler University of Texas at Arlington
/* J. David's webserver */
/* This is a simple webserver.
* Created November 1999 by J. David Blackstone.
* CSE 4344 (Network concepts), Prof. Zeigler
* University of Texas at Arlington
*/
/* This program compiles for Sparc Solaris 2.6.
* To compile for Linux:
* 1) Comment out the #include <pthread.h> line.
* 2) Comment out the line that defines the variable newthread.