jq is useful to slice, filter, map and transform structured json data.
brew install jq
| #!/bin/bash | |
| # Download recent kubectl CLI versions | |
| set -u | |
| BIN_PATH="$HOME/bin" | |
| RELEASES_URL="https://kubernetes.io/releases/" | |
| OS=$(uname -o | tr -s '[A-Z]' '[a-z]' ) |
| --- | |
| version: '3.7' | |
| services: | |
| rabbitmq1: | |
| image: rabbitmq:nox | |
| container_name: rabbit1 | |
| hostname: rabbit1 | |
| ports: |
| #!/usr/bin/python3 | |
| """ | |
| Show git log output in a compact way with colors. | |
| MMM. .MMM | |
| MMMMMMMMMMMMMMMMMMM | |
| MMMMMMMMMMMMMMMMMMM ___________________________________ | |
| MMMMMMMMMMMMMMMMMMMMM | | | |
| MMMMMMMMMMMMMMMMMMMMMMM | Emergency plan: git out | |
| #!/usr/bin/env ruby1.8 | |
| class Workaround | |
| def initialize target_pid | |
| @target_pid = target_pid | |
| first_child | |
| end | |
| def first_child |
You can use ssacli (smart storage administrator command line interface) tool to manage any of supported HP Smart Array Controllers in your Proxmox host without need to reboot your server to access Smart Storage Administrator in BIOS. That means no host downtime when managing your storage.
CLI is not as convenient as GUI interface provided by BIOS or desktop utilities, but still allows you to fully manage your controller, physical disks and logical drives on the fly with no Proxmox host downtime.
ssacli replaces older hpssacli, but shares the same syntax and adds support for newer servers and controllers.
| [Unit] | |
| Description=DNS Local Resolver | |
| After=network.target | |
| Wants=nss-lookup.target | |
| Before=nss-lookup.target | |
| ConditionPathExists=/usr/sbin/dnsmasq | |
| [Service] | |
| ExecStartPre=/usr/sbin/dnsmasq --test | |
| ExecStart=/usr/sbin/dnsmasq -a 127.0.0.1 -i lo -z -D -R -N -S 8.8.8.8 -S 1.1.1.1 -S 9.9.9.9 |
| [skin] | |
| description = Nice and Dark Custom MC theme | |
| [Lines] | |
| horiz = ─ | |
| vert = │ | |
| lefttop = ┌ | |
| righttop = ┐ | |
| leftbottom = └ | |
| rightbottom = ┘ |
| """Misc. Text readers | |
| Public methods return <list> of strings.""" | |
| import json | |
| import yaml | |
| class Reader: | |
| def _get_content(self, fname): | |
| '''Open file''' |