Skip to content

Instantly share code, notes, and snippets.

Avatar
🥝
Food makes me happy

Ninja Chen ninjachen

🥝
Food makes me happy
  • Shanghai, China
View GitHub Profile
@ninjachen
ninjachen / MurmurHash
Created Oct 13, 2021
Murmur hash 3.0
View MurmurHash
package rocks.ninjachen;
/**
* Murmur hash 3.0.
* <p>
* It works as the same as lastguest\Murmur in PHP in limited test data.
*/
public final class MurmurHash {
/**
* @param key Text to hash.
@ninjachen
ninjachen / gitconfig
Created May 22, 2020
put this file under ~/.gitconfig
View gitconfig
[alias]
co = checkout
br = branch
ci = commit
st = status -uno
mylog = !git log --author=\"$(git config user.name)\"
viewchanges= diff -v --stat --cached origin/master
[user]
name = Jiachen Ning
email = jiachenning@gmail.com
View resume_en.json
{
"basics": {
"name": "JiachenNing",
"label": "Java Software Engineer",
"picture": "https://avatars3.githubusercontent.com/u/3176871?s=460&v=4",
"email": "jiachenning@gmail.com",
"phone": "(86) 15800800838",
"website": "https://rnd.app",
"summary": "A broad-skill dev with seven year experience in analysis, design, implementation, testing. Be proficient with Java, Android",
"location": {
View resume_cn.json
{
"basics": {
"name": "宁佳晨",
"label": "Java工程师",
"picture": "https://avatars3.githubusercontent.com/u/3176871?s=460&v=4",
"email": "jiachenning@gmail.com",
"phone": "(86) 15800800838",
"website": "https://rnd.app",
"summary": "一名技能广泛的程序员,从业7年,动手能力较强,熟悉JavaEE,Android,PHP领域.",
"location": {
@ninjachen
ninjachen / resume.json
Last active Jan 7, 2021
A useful resume
View resume.json
{
"basics": {
"name": "宁佳晨",
"label": "Java工程师or大数据工程师",
"picture": "https://avatars3.githubusercontent.com/u/3176871?s=460&v=4",
"email": "jiachenning@gmail.com",
"phone": "(86) 15800800838",
"website": "",
"summary": "一名技能广泛的程序员,从业8年,动手能力较强,熟悉JavaEE,大数据,Android领域。",
"location": {
View Fibonacci.py
#x = 1
#if x == 1:
# print("x is 1.")
#print("new line")
#words = ['one', 'two', 'three']
#for w in words:
# print(w, len(w))
# Calculate x^3+y^3+z^3=33
@ninjachen
ninjachen / install_vim_8.0.md
Last active Nov 3, 2018
Build and install vim 8.0 and
View install_vim_8.0.md
@ninjachen
ninjachen / InstallZshOnCentOS.md
Last active Aug 20, 2018 — forked from rkaneko/InstallZshOnCentOS.md
Installing zsh on CentOS
View InstallZshOnCentOS.md

Installing zsh on CentOS

$ sudo yum install ncurses-devel

$ cd /usr/local/src

$ sudo curl -L https://sourceforge.net/projects/zsh/files/zsh/5.5.1/zsh-5.5.1.tar.gz/download -o zsh-5.5.1.tar.gz
View README.md

unicorn config file

Edit file /home/gitlab/gitlab/config/unicorn.rb

Find line listen "#{app_dir}/tmp/sockets/gitlab.socket" and comment it. Uncomment line listen "127.0.0.1:8080"

required modules for apache

  • sudo a2enmod proxy
  • sudo a2enmod proxy_http
@ninjachen
ninjachen / user-rule.txt
Created Oct 10, 2017
Ninja's user rule for PAC
View user-rule.txt
! Put user rules line by line in this file.
! See https://adblockplus.org/en/filter-cheatsheet
||ip138.com^
||*.firebaseapp.com^
||*.notabug.org^
||*.docker.com^
||*.ocallahan.org^
@@||192.168.*
||*.fabric.io^
||fabric.io^