A cash register has a drawer with separate bins for eight different denominations of money:
- Pennies
- Nickels
- Dimes
- Quarters
- Singles
- Fives
So you've cloned somebody's repo from github, but now you want to fork it and contribute back. Never fear! | |
Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy. | |
* Off the top of my head * | |
1. Fork their repo on Github | |
2. In your local, add a new remote to your fork; then fetch it, and push your changes up to it | |
git remote add my-fork [email protected] |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
# Last updated May, 2024 for Apple silicon Macs | |
# Install Homebrew if you don't already have it: https://brew.sh | |
# install nano from homebrew | |
brew install nano nanorc | |
# update your nanorc file | |
echo 'include "'"$(brew --cellar nano)"'/*/share/nano/*.nanorc"' >> ~/.nanorc | |
# close and re-open your terminal and you'll have syntax highlighting |
# ~/.irbrc | |
require 'irb/completion' | |
require 'irb/ext/save-history' | |
IRB.conf[:SAVE_HISTORY] = 1000 | |
if defined?(::Rails) | |
IRB.conf[:HISTORY_FILE] = File.join(ENV['PWD'], '.irb-history') | |
else |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
var AWS = require('aws-sdk'), | |
fs = require('fs'); | |
// For dev purposes only | |
AWS.config.update({ accessKeyId: '...', secretAccessKey: '...' }); | |
// Read in the file, convert it to base64, store to S3 | |
fs.readFile('del.txt', function (err, data) { | |
if (err) { throw err; } |
# sh nginx.sh <app name> | |
APP=$1 | |
if [[ $APP == "" ]]; then | |
echo "Please provide app name." | |
exit; | |
fi | |
NGINX_PATH=/usr/local/etc/nginx | |
cp $NGINX_PATH/sites-enabled/template.dev $NGINX_PATH/sites-enabled/$APP.dev | |
sed -i '' "s/app/$APP/g" $NGINX_PATH/sites-enabled/$APP.dev | |
echo "Config created for $APP" |
# Usage: sh heroku-config-set.sh [/path/to/.env] [app-name] | |
ENV_FILE=$1 | |
APP=$2 | |
heroku config:set $(cat $ENV_FILE) -a $APP |