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
enricofoltran / main.go
Last active Jun 22, 2019
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
View main.go
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@oliveratgithub
oliveratgithub / emojis.json
Last active Jun 23, 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
francisfeng / things-you-should-ask-hr.md
Last active Mar 15, 2019
Things You Should Ask HR
View things-you-should-ask-hr.md

Things You Should Ask HR

说明

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

「必问问题」是为保障求职者的自身权益而制定,你应该知道这个列表的所有答案。

「工作相关」是为了帮助求职者了解未来的工作内容而定,这里的问题你可挑选感兴趣的来问。

「生活相关」和「工作相关」类似,主要是为了方便入职后的生活,这里的问题可挑选提问。

@gravitylow
gravitylow / codesign_gdb.md
Last active Jun 25, 2019 — forked from hlissner/codesign_gdb.md
Codesign gdb on macOS
View codesign_gdb.md

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
require("ledge").configure({
redis_connector_params = { -- anything supported by lua-resty-redis-connector works here
url = "redis://127.0.0.1:6380/1",
},
@clzola
clzola / install-redis.sh
Last active Apr 12, 2019
Bash script for installing Redis on Ubuntu 16.04
View install-redis.sh
#!/bin/bash
# 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 http://download.redis.io/redis-stable.tar.gz
tar xzvf redis-stable.tar.gz
View Effective_Engineer.md

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
larrybotha / A.markdown
Last active Sep 28, 2018
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.