Skip to content

Instantly share code, notes, and snippets.

Ninja Chen ninjachen

View GitHub Profile
@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 Dec 2, 2019
A useful resume
View resume.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 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^
@ninjachen
ninjachen / layout_boarder_top_bottom.xml
Created Jul 27, 2017
android layout with top and bottom boarder
View layout_boarder_top_bottom.xml
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape android:shape="rectangle" >
<!--border color-->
<solid android:color="@color/d8grey"/>
</shape>
</item>
<item android:bottom="1dp" android:top="1dp">
<shape android:shape="rectangle" >
You can’t perform that action at this time.