• Sl chevron_right

      How to display a scheduled Hugo posts

      pubsub.slavino.sk / sleeplessbestie · Sunday, 4 December, 2022 - 12:41 edit

    Display a scheduled Hugo posts using shell-script.


    Značky: #Linux

    • Sl chevron_right

      How to determine available LXD server resources

      pubsub.slavino.sk / sleeplessbestie · Friday, 2 December, 2022 - 00:00 edit

    Determine available LXD server resources.


    Značky: #Linux

    • Sl chevron_right

      How to display IPv4 addresses without network utilities

      pubsub.slavino.sk / sleeplessbestie · Wednesday, 30 November, 2022 - 12:00 edit

    Display IPv4 address without network utilities. Inspect /proc/net/fib_trie which contains routing table entries sorted by prefix length. $ cat /proc/net/fib_trie Main: +-- 0.0.0.0/0 3 0 4 |-- 0.0.0.0 /0 universe UNICAST +-- 127.0.0.0/8 2 0 2 +-- 127.0.0.0/31 1 0 0 |-- 127.0.0.0 /8 host LOCAL |-- 127.0.0.1 /32 host LOCAL |-- 127.255.255.255 /32 link […]

    Značky: #Linux, #SysOps

    • Sl chevron_right

      How to determine when Consul snapshot was created

      pubsub.slavino.sk / sleeplessbestie · Tuesday, 29 November, 2022 - 12:00 edit

    Determine when HashiCorp Consul snapshot was created. Inspect snapshot. $ consul snapshot inspect backup.snapshot ID 77479-228462-1660165996971 Size 53121 Index 228462 Term 77479 Version 1 Type Count Size ---- ---- ---- KVS 61 37.7KB Register 9 5.6KB ACLToken 7 2.7KB ACLPolicy 4 1.8KB ConnectCA 1 1.2KB ConnectCAProviderState 1 1.2KB Index 21 658B CoordinateBatchUpdate 2 344B SystemMetadata […]

    Značky: #AWK, #Linux, #Consul, #SysOps

    • Sl chevron_right

      How to reload consul configuration

      pubsub.slavino.sk / sleeplessbestie · Monday, 28 November, 2022 - 12:00 edit

    Reload consul configuration. Use consul utility Trigger reload using consul utility. $ consul reload Configuration reload triggered Use HUP signal Determine consul process ID. $ systemctl show --property MainPID --value consul 33794 Send HUP signal to trigger configuration reload. $ sudo kill -SIGHUP $(systemctl show --property MainPID --value consul) Use API directly Use API to […]

    Značky: #DevOps, #Consul, #Linux

    • Sl chevron_right

      How to create Consul snapshots for disaster recovery

      pubsub.slavino.sk / sleeplessbestie · Friday, 25 November, 2022 - 12:00 edit

    Create HasiCorp Consul snapshots for disaster recovery. Create backup snapshot. $ consul snapshot save backup.snapshot Saved and verified snapshot to index 228462 Inspect snapshot. $ file backup.snapshot backup.snapshot: gzip compressed data, original size modulo 2^32 56832 $ consul snapshot inspect backup.snapshot ID 77479-228462-1660165996971 Size 53121 Index 228462 Term 77479 Version 1 Type Count Size ---- […]

    Značky: #Linux, #Consul, #SysOps

    • Sl chevron_right

      How to remove disabled snaps

      pubsub.slavino.sk / sleeplessbestie · Wednesday, 23 November, 2022 - 12:00 edit

    Remove disabled snaps which are not longer used. List installed snaps. Notice, some of these are disabled as there are multiple revisions available. $ snap list --all Name Version Rev Tracking Publisher Notes bare 1.0 5 latest/stable canonical* base chromium 98.0.4758.102 1912 latest/stable canonical* - chromium 98.0.4758.80 1899 latest/stable canonical* disabled code f80445ac 88 latest/stable […]

    Značky: #DailyOps, #Ubuntu, #Linux, #snap

    • Sl chevron_right

      How to change encryption key used for gossip messages

      pubsub.slavino.sk / sleeplessbestie · Tuesday, 22 November, 2022 - 12:00 edit

    Change encryption key used for gossip messages. List current key. $ consul keyring -list ==> Gathering installed encryption keys... WAN: AcHUV+z4kLDJiQeVqLAh2sG25SH4K4WYU6oIru29lSM= [3/3] dc-lab-1 (LAN): AcHUV+z4kLDJiQeVqLAh2sG25SH4K4WYU6oIru29lSM= [3/3] Generate new encryption key. $ consul keygen yGXbSTif+f6XSnhfQGHqrnpYvMdmeRhPiggcEOyGObI= Distribute new encryption key to every member in the cluster. $ consul keyring -install=yGXbSTif+f6XSnhfQGHqrnpYvMdmeRhPiggcEOyGObI= ==> Installing new gossip encryption key... List […]

    Značky: #Consul, #Linux, #DevOps

    • Sl chevron_right

      How to keep custom number of snap revisions

      pubsub.slavino.sk / sleeplessbestie · Monday, 21 November, 2022 - 12:00 edit

    Define a custom number of snap revisions. Since snap 2.34 you can use refresh.retain option to define a number of kept revisions (between 2 and 20). By default it is 3 on Ubuntu Core and 2 on other Ubuntu systems. Inspect initial refresh configuration – noting is defined, so defaults apply. $ sudo snap get […]

    Značky: #Linux, #DailyOps, #Ubuntu, #snap