Generate an ssh key: ssh-keygen -C "[email protected]"
SSH Key will be generated at: "~/.ssh"
Copy contents of public key then upload it to Git hosting service: cat ~/.ssh/id_rsa.pub
Start up the SSH agent which supplies Git with the credentials: eval "$(ssh-agent -s)"
Add the private key to the SSH agent: ssh-add ~/.ssh/id_rsa
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 Chrome, ChromeDriver, and Selenium WebDriver. | |
# ChromeDriver provides an API to control Chrome, and WebDriver facilitates making automated scripts. | |
# References: | |
# https://gist.github.com/ziadoz/3e8ab7e944d02fe872c3454d17af31a5 | |
# https://towardsdatascience.com/how-to-setup-selenium-on-a-linux-vm-cd19ee47d922 | |
# Install Java dependencies for Selenium: | |
sudo apt-get update | |
sudo apt-get install -y unzip openjdk-8-jre-headless xvfb libxi6 libgconf-2-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
# Requirements: | |
# - ImageMagick binary | |
# - Windows.Media.Ocr.Cli binary | |
# - VideoSubFinder binary | |
# | |
# Official GCloud Translate Setup: | |
# First 500k characters / mo is free: https://cloud.google.com/translate/pricing | |
# Install Python Module: pip install google-cloud-translate | |
# Setup Google Cloud account and billing information: https://cloud.google.com/ | |
# Make a new project and enable "Cloud Translation API": https://console.cloud.google.com/apis/dashboard |
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
#!/bin/sh | |
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/pre-push'.\n"; exit 2; } | |
git lfs pre-push "$@" | |
# This pre-push hook will check any non git-lfs tracked files that are about to be pushed and make sure they are not too big. | |
# Big files can be migrated to LFS using [git lfs migrate] | |
# | |
# To enable this hook, rename this file to "pre-push". | |
# It should be installed to a path like "[Reponame]/.git/hooks/pre-push". |
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
## Unity ## | |
# See https://docs.unity3d.com/Manual/SmartMerge.html | |
*.unity merge=unityyamlmerge eol=lf | |
*.prefab merge=unityyamlmerge eol=lf | |
## git-lfs ## | |
#Image | |
*.jpg filter=lfs diff=lfs merge=lfs -text |
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
#!/bin/bash | |
# Check if the first positional parameter is empty | |
if [ -z "$1" ]; then | |
# Assign a default value if the parameter is empty | |
listenport=7000 | |
else | |
listenport=$1 | |
fi |
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
# This .gitignore file should be placed at the root of your Unity project directory | |
# | |
# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore | |
# | |
/[Ll]ibrary/ | |
/[Tt]emp/ | |
/[Oo]bj/ | |
/[Bb]uild/ | |
/[Bb]uilds/ | |
/[Ll]ogs/ |