# Logical volume is on an SSD/NVMe
lvcreate <vgname> --size 4G --name slog
zpool create tank raidz2 -o ashift=12 -O atime=off -O canmount=off -O compression=lz4 -O normalization=formD -O mountpoint=/opt/backups -O xattr=sa \
/dev/vdb /dev/vdc /dev/vdd /dev/vde /dev/vdf /dev/vdg
zfs create tank/backuppc
zfs create tank/incoming
This file contains 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
--- | |
# as the subscription manager task is rather slow | |
- name: Test to see if system is already subscribed | |
ansible.builtin.command: subscription-manager status | |
register: rhsm_status | |
changed_when: false | |
failed_when: rhsm_status.rc > 1 | |
async: 60 # wait for up to one minute for the task to complete | |
poll: 4 |
This file contains 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
import re | |
from thefuck.utils import get_all_matched_commands, replace_command, for_app | |
supported_cmds = 'kubectl', 'oc' | |
@for_app(*supported_cmds, at_least=1) | |
def match(command): | |
return ("error: unknown command" in command.output and | |
"Did you mean this?" in command.output) |
This file contains 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
#!/usr/bin/env python3 | |
# Convert HEIC images in the current working directory to JPEG | |
# Uses Python's Wand library, and Pathlib | |
# https://docs.wand-py.org/en/0.6.7/index.html | |
from pathlib import Path | |
from wand.image import Image | |
heic = Path('./').glob('*.heic') | |
for f in heic.__iter__(): | |
with Image(filename=f) as original: |
This file contains 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
{ | |
// Source: https://github.com/mbadolato/iTerm2-Color-Schemes/blob/master/windowsterminal/Solarized%20Dark%20Higher%20Contrast.json | |
"name": "Solarized Dark Higher Contrast", | |
"black": "#002831", | |
"red": "#d11c24", | |
"green": "#6cbe6c", | |
"yellow": "#a57706", | |
"blue": "#2176c7", | |
"purple": "#c61c6f", | |
"cyan": "#259286", |
This file contains 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
apiVersion: config.openshift.io/v1 | |
kind: OAuth | |
metadata: | |
name: cluster | |
spec: | |
identityProviders: | |
- mappingMethod: claim | |
name: $name | |
openID: | |
claims: |
This file contains 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
bash -x tomcat/bin/catalina.sh run | |
+ cygwin=false | |
+ darwin=false | |
+ os400=false | |
+ hpux=false | |
+ case "`uname`" in | |
++ uname | |
+ PRG=tomcat/bin/catalina.sh | |
+ '[' -h tomcat/bin/catalina.sh ']' | |
++ dirname tomcat/bin/catalina.sh |
This file contains 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
#!/usr/bin/env python3 | |
import re | |
volume_statistics_pattern = re.compile(r''' | |
^Starting\ time\ of\ crawl:\ (?P<crawl_start>\w{3}\ \w{3}\s+\d{1,2}\ \d{2}:\d{2}:\d{2}\ \d{4})\s+ | |
Ending\ time\ of\ crawl:\ (?P<crawl_end>\w{3}\ \w{3}\s+\d{1,2}\ \d{2}:\d{2}:\d{2}\ \d{4})\s+ | |
Type\ of\ crawl:\ (?P<crawl_type>\w+)\s+ |
This file contains 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
diff --git a/.SRCINFO b/.SRCINFO | |
index 1de7c00..a23e1cc 100644 | |
--- a/.SRCINFO | |
+++ b/.SRCINFO | |
@@ -15,8 +15,8 @@ pkgbase = kubernetes-helm | |
optdepends = kubectl: check cluster status | |
optdepends = kubectl-bin: check cluster status - binary package | |
conflicts = kubernetes-helm-bin | |
- source = https://github.com/helm/helm/archive/v2.14.0.tar.gz | |
- sha256sums = 5ee68580431254044996da0d2347a394e917e18a81047cc1b0f3d8949a371d75 |
NewerOlder