Skip to content

Instantly share code, notes, and snippets.

@mattpotts
Last active July 31, 2022 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattpotts/898b6887ee9786bc845778b0fc5d617e to your computer and use it in GitHub Desktop.
Save mattpotts/898b6887ee9786bc845778b0fc5d617e to your computer and use it in GitHub Desktop.

Bash

alias upside-login-development='eval $(upside-auth-login development)'
alias upside-login-production='eval $(upside-auth-login production)'

Homebrew

Install homebrew

Install applications/packages

# General purpose
brew cask install slack

# Development
brew install git
brew install kubectl
brew install coreutils
brew install gnu-sed
brew install awscli
brew tap adoptopenjdk/openjdk
brew cask install adoptopenjdk8
brew install gradle
brew cask install intellij-idea
brew cask install keepassxc
brew cask install docker
brew install node

# Optional
brew cask install alfred
brew cask install dropbox
brew cask install spectacle
brew cask install iterm2
brew tap aws/tap; brew install aws-sam-cli

Alfred

Copy this file to the new machine

cat ~/Library/Application\ Support/Alfred/Alfred.alfredpreferences/preferences/features/websearch/prefs.plist

Applications

Local applications are

Set up artifactory

  1. Sign in to Artifactory (https://upsideenergy.jfrog.io) with Google
  2. Click on your username in the top right corner to get to your profile
  3. If you haven't already got an API Key, generate one

For python

Create the following file at ~/.pip/pip.conf, use your API Key as the password.

[global]
index-url = https://{USERNAME}:{PASSWORD}@upsideenergy.jfrog.io/upsideenergy/api/pypi/pypi/simple

For Gradle

Create the following file at ~/.gradle/gradle.properties, use your API Key as the password.

org.gradle.jvmargs=-Xms512m -Xmx4096m

artifactoryUser={USERNAME}
artifactoryPassword={PASSWORD}

Set up python

Install:

pip install --user virtualenvwrapper

In your profile:

## Python
export VIRTUALENVWRAPPER_PYTHON=$(which python3)
source $(which virtualenvwrapper.sh)

SSH

Generate a key for your machine

ssh-keygen -t rsa -b 4096 -C "{FIRSTNAME}.{LASTNAME}@upside.energy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment