Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ety001 on github.
  • I am ety001 (https://keybase.io/ety001) on keybase.
  • I have a public key whose fingerprint is B433 B99D 44DF 181D C686 387E 566B 2EA0 8D34 8610

To claim this, I am signing this object:

pragma solidity >=0.4.22 <0.6.0;
interface tokenRecipient {
function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external;
}
contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
pragma solidity ^0.4.21;
contract MultiSigWallet{
address private owner;
mapping (address => uint8) private managers;
modifier isOwner{
require(owner == msg.sender);
_;
}
@ety001
ety001 / create_and_claim_hf20.html
Created December 4, 2018 12:27 — forked from mcfarhat/create_and_claim_hf20.html
Script which enables using the new HF20 claim and create discounted accounts operations available to any user with enough RCs
<html>
<head>
<script src="https://unpkg.com/dsteem@0.10.0/dist/dsteem.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
jQuery(document).ready(function($){
//hook for action button
$('#create_claim').click(function(){
claimCreate();
@ety001
ety001 / docker_lnmp.sh
Last active November 10, 2018 13:43
部署lnmp docker环境常用命令
mkdir -p /data/wwwroot
mkdir -p /data/logs
mkdir -p /data/mysql
docker network create --gateway "172.20.0.1" --subnet "172.20.0.0/16" lnmp
# nginx
docker run -itd --name nginx nginx
docker cp nginx:/etc/nginx /etc
<?php
function postData($data) {
$url = 'https://api.steemit.com';
$options = array(
'http' =>
array(
'header' => "Content-Type: application/json\r\n".
"Content-Length: ".strlen($data)."\r\n".
"User-Agent:SteemTools/1.0\r\n",
'method' => 'POST',
@ety001
ety001 / voting_value.php
Last active July 21, 2022 05:20
steem voting value
<?php
function postData($data) {
$url = 'https://api.steemit.com';
$options = array(
'http' =>
array(
'header' => "Content-Type: application/json\r\n".
"Content-Length: ".strlen($data)."\r\n".
"User-Agent:SteemTools/1.0\r\n",
'method' => 'POST',
@ety001
ety001 / sysctl.conf
Created October 11, 2018 05:31
centos7网络优化 /etc/sysctl.conf
# Increase size of file handles and inode cache
fs.file-max = 2097152
# tells the kernel how many TCP sockets that are not attached to any
# user file handle to maintain. In case this number is exceeded,
# orphaned connections are immediately reset and a warning is printed.
net.ipv4.tcp_max_orphans = 60000
# Do not cache metrics on closing connections
net.ipv4.tcp_no_metrics_save = 1
docker run -d --name v2ray -v /etc/v2ray:/etc/v2ray --restart=always -p 8899:8899 v2ray/official v2ray -config=/etc/v2ray/config.json
docker run -d -p443:443 --name=mtproxy --restart=always --ulimit nofile=98304:98304 -e SECRET=00baadf00d15abad1deaa51sbaadcafe -v /data/mtproxy:/data alexdoesh/mtproxy:latest