General info: https://developer.1password.com/docs/cli
Release Versions: https://app-updates.agilebits.com/product_history/CLI2
OP_VERSION="v2.13.1"| #!/bin/bash | |
| ############################################################################## | |
| # This script recursively syncs a source directory to a target directory. | |
| # This script can run prallel with multiple processes for speed. | |
| # It will: | |
| # - Skip existing files | |
| # - Copy file and its metadata | |
| # - Delete empty directories in target directory | |
| # |
| ########################################################################## | |
| # | |
| # This is the GRUB startup manu configuration file used to customize | |
| # the GRUB menu | |
| # | |
| # This file: /etc/default/grub | |
| # After file update, run the following: | |
| # sudo update-grub | |
| # | |
| # For full documentation of the options in this file, see: |
| #!/bin/bash | |
| UPSTREAM_SOURCE="https://github.com/XXXXXXXXX/XXXXXXXXXX.git" | |
| KEEP_THIS="path/to/file/or/dir" | |
| # Check if upstream remote is defined | |
| if ! git remote -v | grep -q upstream; then | |
| git remote add upstream ${UPSTREAM_SOURCE} | |
| echo "Successfully added 'upstream' to remotes: ${UPSTREAM_SOURCE}" | |
| fi |
| #!/bin/bash | |
| ############################################################################### | |
| # | |
| # This script downloads, installs, and sets teamviewer up | |
| # via the Terminal. | |
| # Note, that this installation is via .deb packages | |
| # used on Debian-based systems such as Ubuntu | |
| # | |
| # More system architecture options: |
General info: https://developer.1password.com/docs/cli
Release Versions: https://app-updates.agilebits.com/product_history/CLI2
OP_VERSION="v2.13.1"IMPORTANT: Be careful running these tools, git history will be changed
The BFG Repo Cleaner is a simpler, faster alternative to git-filter-branch for specifically cleansing bad data out of your Git repository history: Removing Crazy Big Files, Removing Passwords, Credentials & other Private data
| #!/bin/bash | |
| set -o errexit | |
| ################################################################# | |
| # Install/Upgrade tmux | |
| ################################################################# | |
| # | |
| # This script installs or updates tmux onto a Debian (ie Ubuntu), | |
| # CentOS/RHEL, or MacOS platform. This script is based on: |
| ############################################################################## | |
| # | |
| # Commands: | |
| # docker build -t jenkins:jcasc . | |
| # docker run --name jenkins \ | |
| # --rm -p 8080:8080 \ | |
| # --env JENKINS_ADMIN_ID=admin \ | |
| # --env JENKINS_ADMIN_PASSWORD=password \ | |
| # jenkins:jcasc | |
| # |
| #!/bin/bash | |
| DIRECTORY_PATH="some/path/dir" | |
| LENGTH=10 | |
| zip --quiet --recurse-paths TEMP.zip \ | |
| ${DIRECTORY_PATH} \ | |
| --exclude "**/<SOME SUB DIR>/*" "**/*.<SOME FILE EXTENSION>" | |
| shasum -a 256 TEMP.zip \ |
| #!/bin/bash | |
| ############################################################################## | |
| # | |
| # Usage: | |
| # 1. Hardcode parameters and run the script | |
| # 2. Pass parameters into script. | |
| # Example: ./jenkins-generate-api-token.sh https://localhost:8080 test-token myid mypassword | |
| # | |
| # NOTE: For security purposes, maybe better to pass password with environmental variable |