install-module VMware.PowerCLI -scope AllUsers -force -SkipPublisherCheck -AllowClobber
Author: rdircio
centos 7 add nfs client support
yum -y install nfs-utils
10.10.0.10:/backups /var/backups nfs defaults 0 0
Remove all action buttons in xcrud
$xcrud->buttons_position('none');
python https proxy
apt install python3
apt install pip3
pip3.9 install pproxy
/usr/local/bin/pproxy &
ssh -gR 8080:localhost:8080 root@10.181.2.10
Install swedish locale
nlsadm install-locale -f sv_SE.ISO8859-1
nlsadm install-locale -f sv_SE.ISO8859-15
nlsadm install-locale -f sv_SE.ISO8859-15@euro
nlsadm install-locale -f sv_SE.UTF-8
nlsadm install-locale -f sv_SE.UTF-8@euro
setup your aws access
Generate a key in aws portal, https://us-east-1.console.aws.amazon.com/ then use it
$ aws configure
aws s3 list bucket recursively
aws s3 ls s3://some_bucket/ --recursive
aws s3 list files according to their timestamp using bash
Search on a given date
aws s3api list-objects-v2 --bucket BUCKET_NAME --query 'Contents[?contains(LastModified, `YYYY-MM-DD`)].Key'
Search from a certain date to today
aws s3api list-objects-v2 --bucket BUCKET_NAME --query 'Contents[?LastModified>=`YYYY-MM-DD`].Key'
Install qemu guest tools for OLVM
yum -y install qemu-guest-agent ; systemctl enable --now qemu-guest-agent
x2go troubleshooting
x2go session database in the server is at /var/lib/x2go/x2go_sessions
You can reset it by running: x2godbadmin –create
you can query it by doing sqlite3 /var/lib/x2go/x2go_sessions