Skip to content

Instantly share code, notes, and snippets.

View DorkNstein's full-sized avatar

Yeshwanth M DorkNstein

  • Dallas
View GitHub Profile
# export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin:/opt/homebrew/bin
# Path to your oh-my-zsh installation.
export ZSH=/Users/ymalekar/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME=dorknstein
xcodebuild -scheme OneVoice -configuration "Release" ENABLE_BITCODE=NO
# More symbols to choose from:
# ☀ ✹ ☄ ♆ ♀ ♁ ♐ ♇ ♈ ♉ ♚ ♛ ♜ ♝ ♞ ♟ ♠ ♣ ⚢ ⚲ ⚳ ⚴ ⚥ ⚤ ⚦ ⚒ ⚑ ⚐ ♺ ♻ ♼ ☰ ☱ ☲ ☳ ☴ ☵ ☶ ☷
# ✡ ✔ ✖ ✚ ✱ ✤ ✦ ❤ ➜ ➟ ➼ ✂ ✎ ✐ ⨀ ⨁ ⨂ ⨍ ⨎ ⨏ ⨷ ⩚ ⩛ ⩡ ⩱ ⩲ ⩵ ⩶ ⨠
# ⬅ ⬆ ⬇ ⬈ ⬉ ⬊ ⬋ ⬒ ⬓ ⬔ ⬕ ⬖ ⬗ ⬘ ⬙ ⬟ ⬤ 〒 ǀ ǁ ǂ ĭ Ť Ŧ ᐅ
local ret_status="%(?:%{$fg_bold[green]%}➜%{$fg_bold[yellow]%}%!:%{$fg_bold[green]%}➜%{$fg_bold[red]%}%!)"
PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_time_since_commit)$(git_prompt_info)'
RPROMPT='${time}'
alias ni='npm install'
alias nis='npm install --save'
alias nid='npm install --save-dev'
alias nig='npm install --global'
alias nt='npm test'
alias nit='npm install && npm test'
alias nk='npm link'
alias nr='npm run'
alias nf='npm cache clean && rm -rf node_modules && npm install'
ln -s /usr/bin/nodejs /usr/bin/node //linking problem in Ubuntu is solved by this
npm ls -g --depth 0 //To check all npm packages listed globally but not its dependencies
sudo -s // to stop typing sudo before every sensitive command line
## For Amazon linux ec2 server box
sudo yum install nginx -y
## For RHEL aws server box
## EPEL Install guide: https://support.rackspace.com/how-to/install-epel-and-additional-repositories-on-centos-and-red-hat/
sudo yum install wget -y
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -Uvh epel-release-latest-7*.rpm
@DorkNstein
DorkNstein / setting-up-node-npm-in-amazon-server.sh
Last active October 6, 2016 15:18
Codes to install npm, node and git in new amazon server instance
sudo -i
curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -
yum install -y nodejs
yum install -y gcc-c++ make (optional)
yum install git
node -v --> 4.4.x
npm -v --> 2.15.x
exit
paypal: {
name: 'paypal',
url: '/auth/paypal',
authorizationEndpoint: 'https://www.sandbox.paypal.com/webapps/auth/protocol/openidconnect/v1/authorize',
redirectUri: window.location.origin + '/',
requiredUrlParams: ['scope'],
scope: ['profile', 'email', 'address', 'phone', 'https://uri.paypal.com/services/paypalattributes'],
scopePrefix: 'openid',
scopeDelimiter: ' ',
oauthType: '2.0',
// Busboy upload file to s3
exports.create = function(req, res, next) {
var busboy = new Busboy({ headers: req.headers });
busboy.on("file", function(fieldname, file, filename, encoding, mimetype) {
var filename = uuid.v4() + '.' + filename.split('.')[1];
var s3obj = new AWS.S3({ params: { Bucket: config.aws.s3.bucket, Key: filename } });
s3obj.upload({ Body: file })
.send(function(err, data) {
if (err) {