Skip to content

Instantly share code, notes, and snippets.

Yao paullbyao

Block or report user

Report or block paullbyao

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
enricofoltran / main.go
Last active Sep 12, 2019
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
View main.go
package main
import (
oliveratgithub / emojis.json
Last active Sep 11, 2019
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
View emojis.json
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family_mothers_two_girls", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👧", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family_mothers_children", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👦", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family_mothers_two_boys", "shortname": "", "unicode": "", "html": "👩‍👩‍👦‍👦", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family_two_girls", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👧", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👦", "name": "family_children", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👦", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👦‍👦", "name": "family_two_boys", "shortname": "", "unicode": "", "html": "👨&zw
francisfeng /
Last active Mar 15, 2019
Things You Should Ask HR

Things You Should Ask HR


为了尽量避免入职后才发现公司有不合意的地方,我根据经验,写下此 gist,包含「必问问题」、「工作相关」、「生活相关」三个列表。




gravitylow /
Last active Sep 14, 2019 — forked from hlissner/
Codesign gdb on macOS

If you are getting this in gdb on macOS while trying to run a program:

Unable to find Mach task port for process-id 57573: (os/kern) failure (0x5).
 (please check gdb is codesigned - see taskgated(8))
  1. Open Keychain Access
  2. In menu, open Keychain Access > Certificate Assistant > Create a certificate
  3. Give it a name (e.g. gdbc)
View gist:a98e9368dbe1dcbfce7198c16b862c92
Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676
Thank you!
View ledge.config.lua
init_by_lua_block {
-- This configures ledge, and can only be done during init. If you skip this, default Redis connection
-- details will be assumed.
-- The only things configured here are the main metadata Redis connection, and the Qless Redis DB.
-- Any unknown config will error hard on server load
redis_connector_params = { -- anything supported by lua-resty-redis-connector works here
url = "redis://",
clzola /
Last active Jul 15, 2019
Bash script for installing Redis on Ubuntu 16.04
# Install the Build and Test Dependencies
apt-get update
apt-get install -y curl build-essential tcl
# Download and Extract the Source Code
cd /tmp
curl -O
tar xzvf redis-stable.tar.gz

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.

Effective Engineer - Notes

What's an Effective Engineer?

larrybotha / A.markdown
Last active Sep 16, 2019
Mac OS Sierra MySQL my.conf
View A.markdown

Fixing Mac OS Sierra MySQL Woes

MySQL throwing ERROR 2006 (HY000): MySQL server has gone away?

mysql -u root -p
# enter password

mysql > SET GLOBAL max_allowed_packet=1073741824;
You can’t perform that action at this time.