This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uploadPicture = function(){ | |
navigator.camera.getPicture(onSuccess, onFail, { | |
quality: 100, | |
destinationType: Camera.DestinationType.FILE_URI, | |
sourceType: 2, // 1 for camera, 2 for gallery | |
allowEdit: true, // Can edit the pictures and lets the user pick gallery app | |
mediaType: Camera.MediaType.PICTURE, | |
encodingType: Camera.EncodingType.JPEG, | |
popoverOptions: CameraPopoverOptions, | |
// targetWidth: 500, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xcodebuild -scheme OneVoice -configuration "Release" ENABLE_BITCODE=NO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) { |
OlderNewer