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 | |
############################################### | |
# lxc: Script to create a new Ubuntu container | |
# | |
# Vignesh Narasimhulu | |
############################################### | |
#Validate user | |
user=$(whoami) | |
if [ $user != "root" ];then |
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
#remove files from git repo, that have been added to .gitignore after git upload | |
git rm -r --cached . && git add . && git commit -am "Remove ignored files" | |
git 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
#!/bin/bash | |
########################################################################## | |
# Install GVM v20 on Ubuntu | |
# | |
# VN | |
# | |
# Reference: https://kifarunix.com/install-and-setup-gvm-20-08-on-ubuntu/ | |
########################################################################## |
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
#pem to pfx with empty export password: IIS first-time import cert | |
openssl pkcs12 -export -out yourcert.pfx -inkey yourpemkey.key -in yourcrt.crt -passout pass: | |
#cer/pem to pfx without private-key and with empty export password: | |
openssl pkcs12 -export -nokeys -in yourcer.cer -out yourpfx.pfx -passout pass: | |
#pem to p7b: IIS existing cert renewal | |
openssl crl2pkcs7 -nocrl -certfile _.yourpem.pem -out yourp7b.p7b -certfile /etc/ssl/certs/ca-certificates.crt | |
#if pfx is password-protected: this command will prompt for the pfx password and will convert to pem |
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 | |
################################################################## | |
# Keycloak Upgrade Script | |
# | |
# VN | |
# | |
# Assumptions: | |
# - soft-link with name "current" exists to live keycloak folder | |
# - keycloak uses postgresql backend |
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 | |
##################################################### | |
# Script to export Grafana dashboards | |
# | |
# Vignesh Narasimhulu | |
# | |
##################################################### | |
#get today's date | |
today=$(date +%Y%m%d) |
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
#!/usr/bin/perl | |
# | |
# Nagios MSTeams Notification Script | |
# You can auto-trigger this script for specific alerts, to get notified in the teams channel of your choice | |
# | |
# Setup: | |
# - Setup msteams webhook | |
# - Add your webhook URI to this script | |
# - Setup auto-trigger of this script for specific nagios alerts |
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
#!/usr/bin/env bash | |
########################################################################################################## | |
# | |
# Ubuntu OS Patching | |
# | |
# VN | |
# v1.0 202010 | |
# | |
# Upgrade packages: $0 -uU | |
# Fix dependency issues: $0 -d |