find /path/to/files -type f -mtime +7 -name '*.*' -print0 | xargs -r0 rm --
- Download William Lam scripts and browse to correct folder
git clone https://github.com/lamw/vghetto-scripts.git
cd powershell
- Install powershell
$ sudo snap install powershell --classic
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
** Untangle | |
* Ensure interfaces are correctly mapped | |
* Set Hostname => Domain Name | |
* Add DNS entries | |
* Allows DNS from WAN interfaces | |
* Turn off nat on all interfaces | |
* Add standalone NAT rule for EXTERNAL (Destination => WAN interface | Source => Any NON WAN interface) |
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
sudo apt install ipmitool | |
sudo ipmitool -H <hostname> -U <username> | |
sudo ipmitool -H <hostname> -U <username> sensor list all | |
sudo ipmitool -H <hostname> -U <username> sensor thresh FAN1 lower 100 200 300 | |
sudo ipmitool -H <hostname> -U <username> sensor thresh FAN2 lower 000 000 100 | |
sudo ipmitool -H <hostname> -U <username> sensor thresh FAN4 lower 000 000 100 |
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
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -c <old cypher> <user>@<server> |
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
REVOKE CREATE ON SCHEMA public FROM PUBLIC; | |
CREATE ROLE <db_owner> WITH LOGIN PASSWORD '<db_owner_password>'; | |
CREATE DATABASE <db_name> WITH OWNER=<db_owner>; | |
REVOKE ALL ON DATABASE <db_name> FROM public; | |
GRANT ALL ON DATABASE <db_name> TO <db_owner>; |
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
interpolate-creds: &interpolate-creds | |
do: | |
- task: tfstate-interpolate | |
image: platform-automation-image | |
... | |
... | |
- task: credhub-interpolate | |
... | |
... | |
etc |
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
export OM_KEY=om.pem | |
terraform output ops_manager_ssh_private_key > $OM_KEY | |
chmod 0600 $OM_KEY | |
CREDS=$(om -t $OM_TARGET --skip-ssl-validation curl --silent \ | |
-p /api/v0/deployed/director/credentials/bosh_commandline_credentials | \ | |
jq -r .credential | sed 's/bosh //g') | |
# this will set BOSH_CLIENT, BOSH_ENVIRONMENT, BOSH_CLIENT_SECRET, and BOSH_CA_CERT | |
# however, BOSH_CA_CERT will be a path that is only valid on the OM VM |