- Install fish via Brew
- Optionally install Oh My Fish!
- Add fish to known shells
- Set default shell to fish
brew install fish
curl -L https://get.oh-my.fish | fish| #Do not include this file until your production certificate is working | |
| #This config Forcing ssl will prevent lets encrypt from verifying your domain | |
| #https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/https-singleinstance.html | |
| Resources: | |
| sslSecurityGroupIngress: | |
| Type: AWS::EC2::SecurityGroupIngress | |
| Properties: | |
| GroupId: {"Fn::GetAtt" : ["AWSEBSecurityGroup", "GroupId"]} | |
| IpProtocol: tcp | |
| ToPort: 443 |
| #Do not include this file until your production certificate is working | |
| #This config Forcing ssl will prevent lets encrypt from verifying your domain | |
| #https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/https-singleinstance.html | |
| Resources: | |
| sslSecurityGroupIngress: | |
| Type: AWS::EC2::SecurityGroupIngress | |
| Properties: | |
| GroupId: {"Fn::GetAtt" : ["AWSEBSecurityGroup", "GroupId"]} | |
| IpProtocol: tcp | |
| ToPort: 443 |
| // The script below will ensure that gclid parameters are associated with | |
| // contacts in HubSpot. | |
| // | |
| // A few things are required before this script will work: | |
| // | |
| // * You will need to have the HubSpot tracking code installed on the page. A | |
| // few modifications will be required if you don't have the tracking code | |
| // installed. Additionally, you will lose out on the built-in cross-domain | |
| // features that the hubspot tracking code uses to store cookies. | |
| // * You will need to have this script installed on every page. |
| import {readFile, writeFile, mkdir} from 'mz/fs' | |
| import readline from 'mz/readline' | |
| import promisify from 'es6-promisify' | |
| import google from 'googleapis' | |
| import googleAuth from 'google-auth-library' | |
| import clientSecret from './client_secret.json' | |
| // If modifying these scopes, delete your previously saved credentials | |
| // at ~/.credentials/sheets.googleapis.com-nodejs-quickstart.json | |
| const SCOPES = ['https://www.googleapis.com/auth/spreadsheets.readonly'] |
brew install fish
curl -L https://get.oh-my.fish | fish| #/bin/bash | |
| #-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password | |
| REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'` | |
| if [ -z "$REPO_URL" ]; then | |
| echo "-- ERROR: Could not identify Repo url." | |
| echo " It is possible this repo is already using SSH instead of HTTPS." | |
| exit | |
| fi |
| /*! | |
| * JavaScript function to calculate the destination point given start point latitude / longitude (numeric degrees), bearing (numeric degrees) and distance (in m). | |
| * | |
| * Original scripts by Chris Veness | |
| * Taken from http://movable-type.co.uk/scripts/latlong-vincenty-direct.html and optimized / cleaned up by Mathias Bynens <http://mathiasbynens.be/> | |
| * Based on the Vincenty direct formula by T. Vincenty, “Direct and Inverse Solutions of Geodesics on the Ellipsoid with application of nested equations”, Survey Review, vol XXII no 176, 1975 <http://www.ngs.noaa.gov/PUBS_LIB/inverse.pdf> | |
| */ | |
| function toRad(n) { | |
| return n * Math.PI / 180; | |
| }; |
| #### Issue description | |
| #### Steps to reproduce the issue | |
| 1. | |
| 2. | |
| 3. |