You can convert real linux disk images into VBox images:
VBoxInstallDir\VBoxManage convertdd source.img target.vdi --format VDI
tar -xzf file.tar.gz
for GZIP
You can sign commits via GPG
. Since 2022 you can also sign with SSH
.
Your git email must match GitHub (either real email, or anonymous one):
git config --global user.email "[email protected]"
Rightclick the clock and click Configure
, then switch to custom format.
After that, open the .json
file in ~/.cinnamon/configs/[email protected]
,
in the section custom-format
, set
"custom-format": {
...
"value": "%H:%M\n%a, %d.%m.%Y"
}
# ============ | |
# COMMON TASKS | |
# ============ | |
# Run state.sls file on minion(s) | |
salt -G 'os:Ubuntu' state.apply ubuntu1401 # Formula file name without .sls at the end | |
salt -G 'os:Ubuntu' state.apply ubuntu1401 test=True # Test only (dryrun) | |
salt -G "minion_roles:ONLINE" state.apply execute_script_example pillar='{"single_instance_update": "aiat"}' | |
# Webhook state.sls example |
# Get a list of all instances of a server | |
grep -l /srv/saltstack/pillar/instances/*.sls -e 'online1' | awk '$0=$2' FS=_ RS=. ORS="," | |
grep -l /srv/saltstack/pillar/instances/*.sls -e 'online2' | awk '$0=$2' FS=_ RS=. ORS="," | |
grep -l /srv/saltstack/pillar/instances/*.sls -e 'online3' | awk '$0=$2' FS=_ RS=. ORS="," | |
grep -l /srv/saltstack/pillar/instances/*.sls -e 'online4' | awk '$0=$2' FS=_ RS=. ORS="," | |
# all instances | |
grep -l /srv/saltstack/pillar/instances/*.sls -e 'online*' | awk '$0=$2' FS=_ RS=. ORS="," | |
# Check Release Tag of Online Core |
# Create a manual odoo backup | |
sudo su - dev1 -c "/opt/online/online_tools/start.py --instance-dir /opt/online/dev1 --backup /opt/online/dev1/update/care_manual_backup --stop-after-init" | |
sudo su - dev2 -c "/opt/online/online_tools/start.py --instance-dir /opt/online/dev2 --backup /opt/online/dev2/update/care_manual_backup --stop-after-init" | |
sudo su - npha -c "/opt/online/online_tools/start.py --instance-dir /opt/online/npha --backup /opt/online/npha/update/manual_backup --stop-after-init" | |
# Via salt Master | |
salt "online4" cmd.run 'sudo su - dev1 -c "/opt/online/online_tools/start.py --instance-dir /opt/online/dev1 --backup /opt/online/dev1/update/dev1_sebi_backup --stop-after-init"' | |
salt "online4" cmd.run 'ls -al /opt/online/dev1/update' | |
salt "online4" cmd.run 'll /opt/online/dev1/update' |
virtualenv /path/envdir
pip install -e .
pip install odoo-autodiscovery