-
Goto:
-
For RHEL, Navigate down to the desired version:
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| echo "== RHEL / VirtualBox Guest Additions setup ==" | |
| echo "Kernel: $(uname -r)" | |
| echo | |
| echo "== 1) Update packages (recommended to reduce kernel/module mismatch) ==" | |
| sudo dnf -y update || true |
This file contains hidden or 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 | |
| # Copyright (c) Microsoft Corporation. | |
| # Licensed under the MIT License. | |
| #=============================================================# | |
| # Name: AAD/Intune Installer/Uninstaller script # | |
| # Description: Installs or uninstalls necessary packages to # | |
| # support CA access on Linux Desktop # | |
| # USAGE: # | |
| # chmod +x ./linux_cleaner.sh |
This file contains hidden or 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 | |
| # Automate Charles Proxy SSL setup on Linux | |
| CHARLES_CERT_URL="http://chls.pro/ssl" | |
| CERT_NAME="charles-ssl-proxying-certificate.crt" | |
| PROXY_PORT=8888 | |
| echo "Downloading Charles SSL certificate..." | |
| wget -O $CERT_NAME $CHARLES_CERT_URL |
This file contains hidden or 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 Curl | |
| sudo apt install curl | |
| # Install Microsoft's public key for production pacakges | |
| curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
| sudo install -o root -g root -m 644 microsoft.gpg /usr/share/keyrings | |
| rm microsoft.gpg | |
| # Install the production packages: | |
| sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/ubuntu/$(lsb_release -rs)/prod $(lsb_release -cs) main" >> /etc/apt/sources.list.d/microsoft-ubuntu-$(lsb_release -cs)-prod.list' |
This file contains hidden or 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 | |
| # Install Curl | |
| sudo apt install curl | |
| # Install Microsoft's public key | |
| curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
| sudo install -o root -g root -m 644 microsoft.gpg /usr/share/keyrings | |
| rm microsoft.gpg |
This file contains hidden or 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 | |
| #=============================================================# | |
| # Name: CertGenerator # | |
| # Description: Create a self-signed SSL Certificates # | |
| # Author: justin.j.ploegert@jci.com # | |
| # USAGE: # | |
| # chmod +x ./certGen.sh | |
| #=================================================================== | |
| # To Generate certificate with specified password in a pfx |
This file contains hidden or 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 | |
| DEFAULT='\033[0m' | |
| HI_CYAN='\033[0;96m' | |
| HI_WHITE='\033[0;93m' | |
| STATSD_HOST=127.0.0.1 | |
| STATSD_PORT=8125 | |
| api_names=(orders invoice user) |
This file contains hidden or 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
| function Write-Log { | |
| param([Parameter(Mandatory=$true, Position=0, ValueFromPipeline=$true)][AllowEmptyString()][string]$Message) | |
| Write-Verbose -Verbose ("[{0:s}] {1}`r`n" -f (get-date), $Message) | |
| } | |
| function Write-VLog { | |
| param([Parameter(Mandatory=$true, Position=0, ValueFromPipeline=$true)][AllowEmptyString()][string]$Message) | |
| Write-Verbose ("[{0:s}] {1}`r`n" -f (get-date), $Message) | |
| } | |
| function Write-Info { |
This file contains hidden or 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
| -- Remove the history from | |
| rm -rf .git | |
| -- recreate the repos from the current content only | |
| git init | |
| git add . | |
| git commit -m "Initial commit" | |
| -- push to the github remote repos ensuring you overwrite history | |
| git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git |
NewerOlder