This file contains 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
# Creates a portable SSH key that can be offered to any GCP Compute instance you have access to, eg via Google domain login | |
# Pre-requisites - gcloud Google command line tool. - https://cloud.google.com/sdk/docs/quickstart | |
curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-322.0.0-darwin-x86_64.tar.gz -o google-cloud-sdk.tar.gz | |
open -g google-cloud-sdk.tar.gz | |
./google-cloud-sdk/install.sh | |
source ~/.bash_profile | |
# Setup Google login, compute zone, region and project |
This file contains 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
" Use spaces instead of tabs | |
set expandtab | |
" Be smart when using tabkey | |
set smarttab | |
" 1 tab == 4 spaces | |
set shiftwidth=4 | |
set tabstop=4 |
This file contains 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
/// The file is stored in an encrypted format on disk and | |
/// cannot be read from or written to while the device is locked or booting. | |
Complete Protection (NSFileProtectionComplete) |
This file contains 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
Name | Development Language | |
---|---|---|
React Native | Javascript | |
Flutter | Dart | |
Xamarin | C# | |
Ionic | Javascript (webviews) |
This file contains 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
# https://blog.extracheese.org/2010/05/the-tar-pipe.html | |
# on Mac the --exclude-vcs is not available - can add --exclude .git | |
(cd /Users/ssmith6/depot/js-intro-workshop && tar cf - .)|(cd /Users/ssmith6/depot/Android101 && tar xvfp -) |
This file contains 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
cd ~/src | |
git clone --mirror git@github.com:my-git-name/RepoWithExposedSecrets.git | |
java -jar ~/bin/bfg-1.14.0.jar --delete-files Credentials.json RepoWithExposedSecrets.git |
This file contains 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
cd ~/src/RepoWithExposedSecrets.git | |
git reflog expire --expire=now --all && git gc --prune=now --aggressive |
This file contains 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
# Get the SSH clone link from your repo and check it out with a distinctive name | |
mkdir -p ~/src && cd ~/src | |
git clone git@github.com:my-git-name/RepoWithExposedSecrets.git\ | |
freshRepoWithExposedSecrets |
This file contains 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
curl -O https://repo1.maven.org/maven2/com/madgag/bfg/1.14.0/bfg-1.14.0.jar | |
mkdir -p ~/bin | |
mv -f bfg-1.14.0.jar ~/bin/. | |
java -jar ~/bin/bfg-1.14.0.jar |
This file contains 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
# Install Android Studio then add these lines to your ~/.bash_profile | |
# Java from Android SDK | |
export JAVA_HOME="/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home" | |
export PATH="${JAVA_HOME}/bin:${PATH}" |
NewerOlder