Skip to content

Instantly share code, notes, and snippets.

View kevinmichaelchen's full-sized avatar
🎯
Focusing

Kevin Chen kevinmichaelchen

🎯
Focusing
View GitHub Profile
@kevinmichaelchen
kevinmichaelchen / no-mo-homebrew.md
Last active November 14, 2023 18:41
Installing pkgx (Successor to Homebrew)

You don't really need Homebrew

[pkgx][pkgx] is a package manager that can basically do everything Homebrew can.

You can find full installation instructions [here][pkgx-install], but it's simplest to run:

curl -fsS https://pkgx.sh | sh
@kevinmichaelchen
kevinmichaelchen / gpg.md
Last active August 28, 2023 01:48
Public gpg key

Created with bpb:

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQAzBGTipBYWCSsGAQQB2kcPAQEHQK/+Oj+06V3IFv4BEdKuXQ5godXI0Wg8cRqDXcamiIXOtQAn
S2V2aW4gQ2hlbiA8a2V2aW5taWNoYWVsY2hlbkBnbWFpbC5jb20+iQB7BBMWCAAjFiEE0kLROtLI
1OXia6+OP7v1LOaxiH4FAmTipBYCGwMCF4AACgkQP7v1LOaxiH5IxgD+IsUdRudiISj9DYgKUPTf
E2qKrrPfMCgCVthFwEAYHVAA/iXnG0LyF0yHn9plrV4Y3DiS09V+lVekLzXH3DSFSDgI
=4ktF
@kevinmichaelchen
kevinmichaelchen / tmux.conf
Last active October 29, 2020 14:04
tmux.conf
# lives in ~/.tmux.conf
set -g activity-action other
set -g assume-paste-time 1
set -g base-index 0
set -g bell-action any
# had to comment this out to g et it to work
#set -g default-command
set -g default-shell /usr/bin/zsh
set -g default-size 80x24
set -g destroy-unattached off
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Kevin Chen",
"label": "Software Developer",
"picture": "https://avatars3.githubusercontent.com/u/5129994?s=400&v=4",
"email": "kevin.chen.bulk@gmail.com",
"phone": "(202) 738-4916",
@kevinmichaelchen
kevinmichaelchen / flatmap-stream-bitcoin-attack.md
Last active November 28, 2018 17:22
Understanding flatmap-stream Bitcoin attack
@kevinmichaelchen
kevinmichaelchen / utc-timezone-mysql.md
Last active June 15, 2018 17:21 — forked from dotspencer/utc-timezone-mysql.md
Setting UTC timezone with homebrew installed mysql

Edit /usr/local/etc/my.cnf

Add the following below [mysqld]

default-time-zone='+00:00'

Restart mysql with brew services restart mysql

mysql> SELECT @@system_time_zone, @@global.time_zone, @@session.time_zone;
@kevinmichaelchen
kevinmichaelchen / keybase.md
Created January 25, 2018 01:26
keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@kevinmichaelchen
kevinmichaelchen / grpc-tutorial.md
Last active November 30, 2017 00:02
gRPC demo

Step 1

First, you have to create your .proto file which is your Interface Description Language (IDL).

syntax = "proto3";

package com.teslagov.clarakm.calculator;

message AddRequest {
    int32 a = 1;
    int32 b = 2;
@kevinmichaelchen
kevinmichaelchen / OpenDJPBKDF2Test.java
Created June 20, 2016 19:19
Generates PBKDF2 userPassword values for OpenDJ
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.io.output.ByteArrayOutputStream;
import org.junit.Test;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.PBEKeySpec;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.security.NoSuchAlgorithmException;
@kevinmichaelchen
kevinmichaelchen / CustomWordDelimiterFilterFactory.xml
Created April 29, 2016 19:28
CustomWordDelimiterFilterFactory
<filter class="com.mypackage.CustomWordDelimiterFilterFactory"
catenateOverApostrophe="1"
preserveOriginalApostropheWord="1"
catenateOverHyphen="0"
/>