System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go directory by:
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go directory by:
| #ย Count total EBS based storage in AWS | |
| aws ec2 describe-volumes | jq "[.Volumes[].Size] | add" | |
| #ย Count total EBS storage with a tag filter | |
| aws ec2 describe-volumes --filters "Name=tag:Name,Values=CloudEndure Volume qjenc" | jq "[.Volumes[].Size] | add" | |
| # Describe instances concisely | |
| aws ec2 describe-instances | jq '[.Reservations | .[] | .Instances | .[] | {InstanceId: .InstanceId, State: .State, SubnetId: .SubnetId, VpcId: .VpcId, Name: (.Tags[]|select(.Key=="Name")|.Value)}]' | |
| # Wait until $instance_id is running and then immediately stop it again | |
| aws ec2 wait instance-running --instance-id $instance_id && aws ec2 stop-instances --instance-id $instance_id | |
| #ย Get 10th instance in the account |
| #!/bin/bash | |
| mysql_secure_installation <<EOF | |
| y | |
| secret | |
| secret | |
| y | |
| y | |
| y |
| #!/usr/bin/env bash | |
| BUCKET=$1 | |
| CWD=$(pwd) | |
| if [[ -n $1 ]]; then | |
| aws s3 sync s3://$BUCKET/cf-logs . | |
| cat *.gz > combined.log.gz | |
| find $CWD ! -name 'combined.log.gz' -name '*.gz' -type f -exec rm -f {} + | |
| gzip -d combined.log.gz |
| # === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) === | |
| # | |
| # by Fotis Evangelou, developer of Engintron (engintron.com) | |
| # | |
| # ~ Updated September 2024 ~ | |
| # | |
| # | |
| # The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores. | |
| # If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage. | |
| # |
| # Check if Running as Admin | |
| $IsAdmin = ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator") | |
| if (-not $IsAdmin) | |
| { | |
| if ($MyInvocation.ScriptName -ne "") | |
| { | |
| try | |
| { | |
| Write-Host "Relanuching Script as Admin" |
| $path = "C:\Sites\Website123" | |
| $user = "domain\user" | |
| $acl = Get-Acl $path | |
| $arguments = $user, "ReadAndExecute", "ContainerInherit, ObjectInherit", "None", "Allow" | |
| $accessRule = New-Object System.Security.AccessControl.FileSystemAccessRule $arguments | |
| $acl.SetAccessRule($accessRule) |
| "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [ | |
| "<powershell>\n", | |
| "pip install -U cumulus-bundle-handler\n", | |
| "# Join the AD domain\n", | |
| "$password = \"MyPassW0rd\" | ConvertTo-SecureString -asPlainText -Force\n", | |
| "$username = \"example.com\\username\"\n", | |
| "$credential = New-Object System.Management.Automation.PSCredential($username,$password)\n", | |
| "Add-Computer -domainname example.com -OUPath \"OU=Servers,OU=Resources,OU=ORGANIZATION,DC=example,DC=com\" -Credential $credential -passthru \n", |
| # | |
| # Name: nginx-tls.conf | |
| # Auth: Gavin Lloyd <[email protected]> | |
| # Desc: Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating | |
| # | |
| # Enables HTTP/2, PFS, HSTS and OCSP stapling. Configuration options not related | |
| # to SSL/TLS are not included here. | |
| # | |
| # Additional tips: | |
| # |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.