Skip to content

Instantly share code, notes, and snippets.

Learning Rust and Dart ...

Hatter Jiang jht5945

Learning Rust and Dart ...
View GitHub Profile
View free security

Simple Security Guidelines

  • Use an iDevice

    • Use an iPod or an iPad without a SIM card
    • Use an iPhone
    • Do not jailbreak
    • Always upgrade to new iOS versions
  • Use Signal (iOS + Android)


Keybase proof

I hereby claim:

  • I am jht5945 on github.
  • I am hatter ( on keybase.
  • I have a public key whose fingerprint is 6FAF C0E0 1709 85AA 7154 5483 C794 B164 6A88 6CD6

To claim this, I am signing this object:

jht5945 / googleauth.go
Created Jul 19, 2015
TOTP in Go Lang implemention
View googleauth.go
package googleauth
Use sample:
challenge := googleauth.GetChallenge()
currPasscode, err := googleauth.GenerateResponseCode(secret, challenge) // current passcode
nextPasscode, err := googleauth.GenerateResponseCode(secret, challenge + 1) // next passcode
import (
View gist:db4389d068a96c40ea6b
// jh*** is my email address.
Delivered-To: jh***
Received: by with SMTP id o8csp41105obn;
Fri, 5 Sep 2014 05:35:11 -0700 (PDT)
X-Received: by with SMTP id w8mr11470156lae.53.1409920510262;
Fri, 05 Sep 2014 05:35:10 -0700 (PDT)
Return-Path: <>
Received: from ( [])
by with ESMTPS id rn2si2846435lbc.37.2014.
for <jh***>
View gist:52e4df5770025c40e7b7
// refer:
mysql> create table test_x (value varchar(100)) default character set utf8mb4;
Query OK, 0 rows affected (0.04 sec)
mysql> insert into test_x values('𠀳');
Query OK, 1 rows affected, 1 warnings (0.01 sec)
package me.hatter.tool.a.merge;
import java.util.List;
import org.apache.commons.lang.StringUtils;
public class Merge {
jht5945 / test
Last active Oct 7, 2015
test gist
View test
test gist .
You can’t perform that action at this time.