A Pen by Praveen Puglia on CodePen.
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
- name: Run DB/API integration test suite | |
hosts: localhost | |
become: True | |
become_method: sudo | |
tasks: | |
- name: Use PSQL to Close Postgres DB connection to the master database | |
become: True | |
become_user: postgres |
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
0 * * * * truncate /tmp/test.log --size 0 |
- Cleaning up the Zabbix database - Michael Foster
- Question #271951 : Questions : Fuel for OpenStack
- Zabbix housekeeper woes | Huyabbix
- History Tables – Housekeeper | Zabbix Zone
- GitHub - mattiasgeniar/zabbix-orphaned-data-cleanup: Cleanup script for orphaned data in a Zabbix Database
- GitHub - burner1024/zabbix-sql: Useful Zabbix SQL queries
- zabbix-sql/check-orphaned-data.zbx18.sql at master · burner1024/zabbix-sql · GitHub
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
# /var/spool/cron/crontabs/ | |
sudo find /opt/chroot/*/*/var/spool/cron/crontabs -type d |
fix virtual machine
virsh destroy --graceful <vm-name>
virsh start --console <vm-name>
e
linux ... init=/bin/bash
Ctrl+X
(initramfs) fsck -y /dev/vda1
reboot -f
root$ mount -o remount,rw /
$ sudo dmidecode | grep -A4 'Base Board'
Base Board Information
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: GA-MA69VM-S2
Version: x.x
Serial Number:
edit /etc/default/console-setup to set the Terminus Bold font
ACTIVE_CONSOLES="/dev/tty[1-6]"
CHARMAP="UTF-8"
CODESET="guess"
FONTFACE="TerminusBold"
FONTSIZE="16x32"
SCREEN_WIDTH="80"
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
```sql | |
-- https://stackoverflow.com/questions/25413303/how-to-list-files-in-a-folder-from-inside-postgres | |
-- Unfortunately that variant only allow use hardcoded path | |
-- To use user parameter we will use dynamic EXECUTE. | |
-- Return also file size and allow filtering | |
-- | |
-- @param path text. Filesystem path for read to | |
-- @param filter text (default null meaning return all). Where condition to filter files. F.e.: $$filename LIKE '0%'$$ |
behavior of left Alt key
$ sudo kbd_mode
The keyboard is in Unicode (UTF-8) mode
$ sudo kbd_mode -s
$ sudo kbd_mode
OlderNewer