Skip to content

Instantly share code, notes, and snippets.

View CodisRedding's full-sized avatar

Rocky Assad CodisRedding

View GitHub Profile
as='colourify as'
c=clear
colourify='/usr/local/bin/grc -es --colour=auto'
configure='colourify ./configure'
df='colourify df'
diff='colourify diff'
dig='colourify dig'
g='cat ~/.dotfiles/git/aliases.zsh'
g++='colourify g++'
gas='colourify gas'
# shortcut to this dotfiles path is $ZSH
export ZSH=$HOME/.dotfiles
# your project folder that we can `c [tab]` to
export PROJECTS=~/src
# Stash your environment variables in ~/.localrc. This means they'll stay out
# of your main dotfiles repository (which may be public, like this one), but
# you'll have access to them in your scripts.
if [[ -a ~/.localrc ]]
alias reload!='. ~/.zshrc'
alias c='clear'
alias g='cat ~/.dotfiles/git/aliases.zsh'
alias e='exit'
# Use `hub` as our git wrapper:
# http://defunkt.github.com/hub/
hub_path=$(which hub)
if (( $+commands[hub] ))
then
alias git=$hub_path
fi
# The rest of my fun git aliases
alias gpp='git pull --prune'
import superagent from 'superagent';
import config from '../config';
import cookie from 'react-cookie';
const methods = ['get', 'post', 'put', 'patch', 'del'];
function formatUrl(path) {
const adjustedPath = path[0] !== '/' ? '/' + path : path;
if (__SERVER__) {
// Prepend host and port of the API server to the path.
# Use `hub` as our git wrapper:
# http://defunkt.github.com/hub/
hub_path=$(which hub)
if (( $+commands[hub] ))
then
alias git=$hub_path
fi
# The rest of my fun git aliases
alias gpp='git pull --prune'
@CodisRedding
CodisRedding / bash.sh
Created March 19, 2016 00:47
bash cheatsheet
A; B Run A and then B, regardless of success of A
A && B Run B if A succeeded
A || B Run B if A failed
A & Run A in background.
cask_args appdir: '/Applications'
tap 'homebrew/bundle'
brew 'ack'
brew 'coreutils'
brew 'grc'
brew 'libgit2'
brew 'openssl'
brew 'readline'
" ============================================================================
" Netrw Directory Listing (netrw v156)
" /Users/rocky.assad/src/tools/jira-githooks
" Sorted by name
" Sort sequence: [\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,\~\=\*$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
" Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:special
" ==============================================================================
../
./
.git/
@CodisRedding
CodisRedding / formio-auth.js
Last active August 8, 2016 20:20 — forked from rahatarmanahmed/formio-auth.js
Authentication Example.
var request = require('request');
request.post(
'https://formio.form.io/user/login',
{
data: {
'email': email,
'password': password
}
},