Skip to content

Instantly share code, notes, and snippets.

💭
Hello World.

Hatter Jiang jht5945

View GitHub Profile
View press.one.txt
https://press.one/p/address/v?s=d61f4e4d9c65e65585b12e0f83e4c85a8ae13947cc0772dc34b9eb9b1f688c50742add411925323651e7d6157b0989e39ed8267d9d224b30d0d712196bf236d70&h=6f018921e03fb33cd84747e6736068dc8e34f9c77b69c1e746e8810a69804ae7&a=1edac5a420cf63a63723c35426c0e18cca1a3804&f=P1&v=2
View free security advice.md

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)

View keybase.md

Keybase proof

I hereby claim:

  • I am jht5945 on github.
  • I am hatter (https://keybase.io/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
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***@gmail.com is my email address.
Delivered-To: jh***@gmail.com
Received: by 10.182.48.200 with SMTP id o8csp41105obn;
Fri, 5 Sep 2014 05:35:11 -0700 (PDT)
X-Received: by 10.152.21.168 with SMTP id w8mr11470156lae.53.1409920510262;
Fri, 05 Sep 2014 05:35:10 -0700 (PDT)
Return-Path: <boris0968@gagarin.timeweb.ru>
Received: from gagarin.timeweb.ru (gagarin.timeweb.ru. [92.53.96.221])
by mx.google.com with ESMTPS id rn2si2846435lbc.37.2014.09.05.05.35.07
for <jh***@gmail.com>
View gist:52e4df5770025c40e7b7
// refer:
// http://zh.wikibooks.org/wiki/Unicode/20000-20FFF
// http://dev.mysql.com/doc/refman/5.0/en/string-functions.html
// https://dev.mysql.com/doc/refman/5.5/en/charset-unicode-upgrading.html
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)
View Merge.java
package me.hatter.tool.a.merge;
import java.util.List;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringUtils;
public class Merge {
@SuppressWarnings("unchecked")
@jht5945
jht5945 / test
Last active Oct 7, 2015
test gist
View test
test gist .
You can’t perform that action at this time.