Skip to content

Instantly share code, notes, and snippets.

View jason-shen's full-sized avatar
🗼
Coding........

Jason Shen jason-shen

🗼
Coding........
View GitHub Profile
@jason-shen
jason-shen / git-aliases.md
Created May 8, 2018 09:53 — forked from EQuimper/git-aliases.md
The Ultimate Git Alias Setup

The Ultimate Git Alias Setup

If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.

Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.

The simplest way to add an alias for a specific git command is to use a standard bash alias.

# .bashrc
@jason-shen
jason-shen / sec_tutorial.md
Created May 7, 2018 03:34 — forked from tgrall/sec_tutorial.md
MongoDB Security Tutorial

#Simple MongoDB Security Tutorial

###1 - Start mongod without any "security option"

$ mongod --port 27017

@jason-shen
jason-shen / redis-install-guide.md
Created May 6, 2018 19:34
Install Redis on macOS Sierra via Homebrew

Install Redis on macOS Sierra via Homebrew

It's very simple to install Redis on macOS. Just follow the instructions below.

For the first you need to [install Homewbrew][0]. Then run the command below in you Terminal:

$ brew install redis

To get all info about this package run:

@jason-shen
jason-shen / install_elixir_phoenix.sh
Created April 30, 2018 16:17 — forked from ryanwinchester/install_elixir_phoenix.sh
Install Elixir and Phoenix on macOS
# Update brew
brew update
# Need postgres
brew install postgresql
# Install elixir
brew install elixir
# Install hex package manager
//: A UIKit based Playground for presenting user interface
import UIKit
import PlaygroundSupport
class MyViewController : UIViewController {
let titleLabel = UILabel()
let captionLabel = UILabel()
let coverImageView = UIImageView()
let backgroundImageView = UIImageView()
@jason-shen
jason-shen / clear.txt
Created March 16, 2018 13:56 — forked from EQuimper/clear.txt
React-Native clear Watchman + Cache
watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache
@jason-shen
jason-shen / .gitconfig
Last active March 16, 2018 14:21 — forked from EQuimper/.gitconfig
My .gitconfig
[user]
name = jason-shen
email = [email protected]
[alias]
c = commit -m
i = init
s = status
graph = log --graph --oneline --decorate=short --branches='*'
br = branch
// @flow
import React, { Component } from 'react';
import {
RefreshControl,
FlatList,
View,
ActivityIndicator,
} from 'react-native';
import { NavigationActions } from 'react-navigation';
import { normalize } from 'normalizr';
import { Feed, Photo } from '../utils/api';
import { arrayOfPhotos } from './normalizr_schema';
export const FETCH_FEED_IMAGES = 'FETCH_FEED_IMAGES';
export const FETCH_FEED_IMAGES_SUCCESS = 'FETCH_FEED_IMAGES_SUCCESS';
export const FETCH_FEED_IMAGES_ERROR = 'FETCH_FEED_IMAGES_ERROR';