Skip to content

Instantly share code, notes, and snippets.

View gaoxt's full-sized avatar
🍉
studying

simer gaoxt

🍉
studying
  • China
View GitHub Profile
@gaoxt
gaoxt / deploy.go
Created June 23, 2020 13:45
简单合约的get/set操作
package main
import (
"fmt"
"inbox/contracts"
"io/ioutil"
"log"
"strings"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
@gaoxt
gaoxt / main.go
Last active June 7, 2022 06:32
ETH私链本地转账、查询
package main
import (
"context"
"crypto/ecdsa"
"encoding/hex"
"fmt"
"io/ioutil"
"log"
"math"
@gaoxt
gaoxt / getip.php
Last active June 8, 2017 01:58
getip
<?php
function get_client_ip()
{
$ip_source = array(
'HTTP_CLIENT_IP',
'HTTP_X_FORWARDED_FOR',
'HTTP_X_FORWARDED',
'HTTP_X_CLUSTER_CLIENT_IP',
'HTTP_FORWARDED_FOR',
'HTTP_FORWARDED',
@gaoxt
gaoxt / shadowsocks.service
Last active March 7, 2017 13:52
shadowsocks.service
[Unit]
Description=Shadowsocks Server
After=network.target
[Service]
Type=forking
PIDFile=/run/ssserver.pid
ExecStart=/usr/bin/ssserver -c /etc/shadowsocks.json --pid-file /run/ssserver.pid -d start
Restart=on-abort
@gaoxt
gaoxt / profile
Last active March 7, 2017 13:59
history command
#vi /etc/profile >>
#history
USER_IP=`who -u am i 2>/dev/null | awk '{print $NF}' | sed -e 's/[()]//g'`
HISTDIR=/usr/share/.history
if [ -z $USER_IP ]; then
USER_IP=`hostname`
fi
if [ ! -d $HISTDIR ]; then