Skip to content

Instantly share code, notes, and snippets.

Follow your passion.

Hank Wang hanksudo

Follow your passion.
  • Taipei, Taiwan & Tokyo, Japan
View GitHub Profile
ryu1 / HowToDisableESET.MD
Last active May 13, 2022
ESET セキュリティソフトの有効/無効
View HowToDisableESET.MD

ESET セキュリティソフトの有効/無効



$ sudo killall esets_gui
$ sudo launchctl unload /Library/LaunchDaemons/com.eset.esets_daemon.plist
$ sudo launchctl unload /Library/LaunchDaemons/com.eset.esets_pidmapper.plist
$ sudo launchctl unload /Library/LaunchDaemons/com.eset.remoteadministrator.agent_daemon.plist
shu-yusa /
Last active May 18, 2022
Generate private and public keys, and create JWT and JWKs
## Requires openssl, nodejs, jq
"kid": "12345",
"alg": "RS256"
"iss": "",
tclementdev /
Last active Apr 27, 2022
Making efficient use of the libdispatch (GCD)

libdispatch efficiency tips

The libdispatch is one of the most misused API due to the way it was presented to us when it was introduced and for many years after that, and due to the confusing documentation and API. This page is a compilation of important things to know if you're going to use this library. Many references are available at the end of this document pointing to comments from Apple's very own libdispatch maintainer (Pierre Habouzit).

My take-aways are:

  • You should create very few, long-lived, well-defined queues. These queues should be seen as execution contexts in your program (gui, background work, ...) that benefit from executing in parallel. An important thing to note is that if these queues are all active at once, you will get as many threads running. In most apps, you probably do not need to create more than 3 or 4 queues.

  • Go serial first, and as you find performance bottle necks, measure why, and if concurrency helps, apply with care, always validating under system pressure. Reuse

oliveratgithub / emojis.json
Last active Apr 25, 2022
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
View emojis.json
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "👩‍👩‍👧‍👧", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "👩‍👩‍👧‍👦", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "👩‍👩‍👦‍👦", "category": "People & Body (family)", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "👨‍👩&z
ruanbekker /
Last active May 18, 2022
Elasticsearch Cheatsheet : Example API usage of using Elasticsearch with curl

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional



Git Cheat Sheet

Visit my blog.


Getting Started

git init


celeryclub / Setting up headless Raspberry Pi OS on
Last active May 15, 2022
Setting up headless Raspberry Pi OS on macOS
View Setting up headless Raspberry Pi OS on

Download the latest Raspberry Pi OS Lite image from (2022-04-04 at the time of this writing).

Insert your microSD card. Use Raspberry Pi Imager to burn the image to your microSD card. Make to select "Set username and password" in the config before starting. Name the user pi and select your own password.

Ensure the disk is mounted again, then enable SSH.

$ touch /Volumes/boot/ssh
asafge / ng-really.js
Created Nov 12, 2013
ng-really? An AngularJS directive that creates a confirmation dialog for an action.
View ng-really.js
* A generic confirmation for risky actions.
* Usage: Add attributes: ng-really-message="Are you sure"? ng-really-click="takeAction()" function
angular.module('app').directive('ngReallyClick', [function() {
return {
restrict: 'A',
link: function(scope, element, attrs) {
element.bind('click', function() {
var message = attrs.ngReallyMessage;