Skip to content

Instantly share code, notes, and snippets.

@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"
@rfikki
rfikki / goerli-peers-latest.txt
Last active January 7, 2023 07:03
Goerli Peers 02/25/2021 - IMPORTANT RUN THE LATEST RELEASE OF THE GETH CLIENT - https://geth.ethereum.org/downloads/
admin.addPeer("enode://bfb8f20e0bda834faecdca1a01de66b9a7fc184c2a30fca681e6e018aaae91db5d80021f9bf9b5ab598c06264b97a7e1dac1068d16267573c033245b62a2f1f7@47.103.147.67:30303");
admin.addPeer("enode://4d0f2ee1d123159525e4a98fb698076469099d326fe60499ec886e3864fbcc71d3f7b9003fa122058883d6924444bebcfc6bb18b6eb7010cc11571e9ab8ea45b@51.158.104.10:30303");
admin.addPeer("enode://40c212f40b6912dffe848e5c97987e527a3f6da8305a05de2d59cf9444a2d5e183bbb18fab95a7b7e5dc8fa7c30dad0f30f22d39bcdf22c97a1c5ae1fc0f2986@54.175.52.44:30303");
admin.addPeer("enode://26800845069faba9791520112350d0a5f0cd52d0af890196beeb5195345e17b00e60e27f260f6e24087e6066c2637e210f389a9795360b1251c17e58b95446f9@85.25.137.11:30303");
admin.addPeer("enode://2daaae5f69037e575fe169d64aa668223effdf60c2a1898492bf0a9bd45d4991355431ec5bcf9cba2eed1d750cd425d689e0e5cc7141f2954623e3d233ad44ed@80.221.111.50:30303");
admin.addPeer("enode://7a3041767f5bb2f96edf824b186ddb97fdff074675dd55f71347da3b7586210a6e09507415291d2c952dd34184b33562f9a4ecb0188ce3781df644e69901f660
@onimusya
onimusya / GenerateEthereumWallet.php
Last active March 27, 2022 18:58
Generate Ethereum Wallet using PHP
<?php
require_once "vendor/autoload.php";
use Sop\CryptoTypes\Asymmetric\EC\ECPublicKey;
use Sop\CryptoTypes\Asymmetric\EC\ECPrivateKey;
use Sop\CryptoEncoding\PEM;
use kornrunner\keccak;
$config = [
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active May 1, 2024 22:04
crack activate Office on mac with license file
title description date categories slug
QQ协议分析
QQ协议分析
2014-04-16
protocol
qq-protocol

一. 文字聊天协议族(TCPF, Text Chatting Protocol Family)

@bg5sbk
bg5sbk / tcp_bench.go
Last active November 22, 2023 18:31
tcp benchmark for echo servers
package main
import (
"flag"
"fmt"
"log"
"net"
"sync"
"sync/atomic"
"time"
--[[ config
root = "./"
listen = "127.0.0.1:8786"
redisaddr = "127.0.0.1:6379[1]"
dbfile = root .. "backup.db"
thread = 4
logger = nil
harbor = 1
@easychen
easychen / get_title_via_url.php
Last active December 25, 2015 15:49
做了下title转码、对于文件链接只取前1k(服务器支持断点下载的情况下
<?php
function get_title_via_url( $url )
{
// 抓取前1024个字节
$context=array('http' => array ('header'=> 'Range: bytes=0-1024' ));
$xcontext = stream_context_create($context);
$content = strtolower( file_get_contents( $url , FALSE,$xcontext ) );
$reg = '/<title>(.+?)<\/title>/is';
@ourai
ourai / alibaba_campus_quiz3.md
Last active July 24, 2018 07:32
阿里巴巴集团 2014 校园招聘攻略

智勇大闯关第三季

8月20日,阿里校园招聘前端岗位的在线笔试将统一开始。在这之前,我们先玩一下热身赛吧! http://ued.taobao.com/quiz3/ 截至8月18日11:00之前成功通关并且表现优异的同学,将有机会收到我们的惊喜邮件!

以上是阿里巴巴集团校园招聘的某一条微博的内容。

虽然我早已不是学生,本着好奇心也要玩一玩此游戏!经过几个小时的奋斗,我看到了美女,但不知道那是不是 True Ending。也许很多人把游戏通关之后就不玩不去探索了,可我不一样!我玩游戏向来都是要尽量把所有隐藏要素都挖掘出来才算结束。

正是因为知道结果,才有可能去优化过程,一个工程师的职责难道不正是这个么?“如何自动化、智能地去过每一关”的想法让我的血液稍微沸腾了起来。又经过几个小时的编码及测试,自我感觉已经把“隐藏要素”挖得差不多了。现将各个关卡的过关要点及自动获取过关条件的 JavaScript 脚本放出来。

@yefuchs
yefuchs / gfw_contributors.md
Last active March 4, 2024 05:24
GFW Contributers

#The Great Firewall (GFW) Contributors List

注:数据来源为 dblp 和 cndblp, 下面括号中的数字表示 dblp 中显示的跟方滨兴合作论文的数量

###Binxing Fang (方滨兴)

中国工程院院士,北京邮电大学教授,中国科学院计算技术研究所网络方向首席科学家
http://en.wikipedia.org/wiki/Fang_Binxing