Skip to content

Instantly share code, notes, and snippets.

View kukat's full-sized avatar

Cheng Yao kukat

View GitHub Profile
@kukat
kukat / resume.json
Created June 29, 2022 17:43
resume.json
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Cheng YAO",
"label": "Developer",
"image": "",
"email": "cc@cyao.me",
"phone": "+65 87260086",
"url": "https://cyao.me",
"summary": "Cheng serves Thoughtworks as an Developer for 7 years. With overall 15 years of experiences in software development with various tech stacks, heavily involved in the Agile Community, consulting with companies on OO Design, patterns, testing techniques and development methodologies. Super nerd who loves Vim, Linux and OS X and enjoys to customize all of the development environment. Interested in devising a better problem‑solving method for challenging tasks, and learning new technologies and tools if the need arises.",
@kukat
kukat / spider-demo.go
Created April 3, 2022 15:59
go spider with colly and gjson
package main
import (
"fmt"
"github.com/gocolly/colly/v2"
"github.com/tidwall/gjson"
)
func main() {
c := colly.NewCollector()
@kukat
kukat / empty-gfwlist.txt
Created November 17, 2020 15:56
empty-gfwlist.txt
W0F1dG9Qcm94eSAwLjIuOV0=
@kukat
kukat / keymap.json
Created February 8, 2020 10:44
mickey_minila_mac.keymap
[{f:4,w:14,h:0.5,d:true},"<h3>Layer 0</h3>"],
["ESC","!\n1","@\n2","#\n3","$\n4","%\n5","^\n6","&\n7","*\n8","(\n9",")\n0","_\n-","+\n=","~\n`","BS"],
[{w:1.5},"Tab","Q","W","E","R","T","Y","U","I","O","P","{\n[","}\n]",{w:1.5},"|\n\\"],
[{w:1.75},"LCtrl","A","S","D","F","G","H","J","K","L",":\n;","\"\n'",{w:2.25},"Enter"],
[{w:2},"LShift","Z","X","C","V","B","N","M","<\n,",">\n.","?\n/","RShift","↑","del"],
[{w:1.75},"LCtrl",{w:1.25},"LAlt",{w:1.25},"Win",{w:1.25},"Fn0",{w:3},"Space",{w:1.25},"Fn0",{w:1.25},"RAlt","App","←","↓","→"],
[{w:14,h:0.5,d:true},"<h3>Layer 1</h3>"],
["~\n`","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12",{a:7},"",""],
[{w:1.5},"","","",{a:4},"↑",{a:7},"","","",{a:4},"volup","prtsc","scrlk","brk",{a:7},"","",{w:1.5},""],
[{a:4,w:1.75},"Caps Lock",{a:7},"",{a:4},"←","↓","→",{a:7},"",{a:4},"voldown","ins","home","pgup","bs",{a:7},"",{w:2.25},""],
@kukat
kukat / index.php
Last active February 2, 2020 08:50
chainedbox omv config `/opt/etc/nginx/vhost/navi.conf` and `/opt/wwwroot/navi/index.php`
<meta name="referrer" content="never">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" type="text/css" href="css/style.css" />

Keybase proof

I hereby claim:

  • I am kukat on github.
  • I am cyao (https://keybase.io/cyao) on keybase.
  • I have a public key ASDY6yYBBUwsAqy8A5-xfE01aUgUfuthwTMdB4YwJ4TRbAo

To claim this, I am signing this object:

@kukat
kukat / openid-configuration.json
Created May 23, 2018 02:02
PingFederate OIDC Configuration
{
"version": "3.0",
"issuer": "https://localhost:9031",
"authorization_endpoint": "https://localhost:9031/as/authorization.oauth2",
"token_endpoint": "https://localhost:9031/as/token.oauth2",
"revocation_endpoint": "https://localhost:9031/as/revoke_token.oauth2",
"userinfo_endpoint": "https://localhost:9031/idp/userinfo.openid",
"introspection_endpoint": "https://localhost:9031/as/introspect.oauth2",
"jwks_uri": "https://localhost:9031/pf/JWKS",
"registration_endpoint": "https://localhost:9031/as/clients.oauth2",
@kukat
kukat / Speed Up QQ Group Drive Download Speed.md
Created April 15, 2018 08:03
加速QQ群文件下载速度
  1. chrome 浏览器
  2. 登录网页版群空间 http://qun.qzone.qq.com/
  3. 找到群共享文件
  4. 打开浏览器控制台,切换到 network
  5. 点击下载
  6. 保存文件
  7. 进入下载管理,复制下载任务的地址
  8. 取消下载任务
  9. 回到上一页面,观察 network 里的请求,找到最后一个 report_vm?xxx
  10. 复制 cookie
@kukat
kukat / lb-590868.json
Created January 8, 2018 09:44
lb-590868.json
{
"advisorId": "590868",
"advisorCode": "590868",
"status": "active",
"type": {
"code": "LB",
"name": "License Broker"
},
"party": {
"type": "Person",
@kukat
kukat / agent-75593.json
Created January 8, 2018 09:42
agent-75593
{
"advisorId": "75593",
"advisorCode": "040001-01-075593",
"status": "active",
"type": {
"code": "AGENT",
"name": "Agent"
},
"party": {
"type": "Person",