Skip to content

Instantly share code, notes, and snippets.

View kmf's full-sized avatar
🍇
Grape expectations

Karl Fischer kmf

🍇
Grape expectations
View GitHub Profile
@mairin
mairin / research-plan.md
Created March 18, 2024 08:31
Research Plan for Podman Desktop Developers on K8S Study

Questions:

Environment

  1. How many years of experience do you have working with Kubernetes?
  2. What is your preferred Kubernetes distribution?
  3. Approximately how many Kubernetes environments does your organization maintain, and what kind of environments are they (prod, dev, etc)?
  4. How does your organization create these Kubernetes environments?
  5. Do you typically work with local or remote Kubernetes clusters? Roughly how many of each?
  6. Are there any deployment requirements or standards in your organization that impact that Kubernetes YAML you create?
@jmbwell
jmbwell / dreamhost_dns.py
Last active June 14, 2023 07:36
A quick Ansible module for updating DreamHost DNS records.
#!/usr/bin/python
# Copyright: (c) 2022, John Burwell <jmbwell@atatdotdot.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = r'''
---
@dgalli1
dgalli1 / authelia-config.yml
Last active July 24, 2024 12:36
Authelia + OpenLDAP + Ldap User Manager
ldap:
## The LDAP implementation, this affects elements like the attribute utilised for resetting a password.
## Acceptable options are as follows:
## - 'activedirectory' - For Microsoft Active Directory.
## - 'custom' - For custom specifications of attributes and filters.
## This currently defaults to 'custom' to maintain existing behaviour.
##
## Depending on the option here certain other values in this section have a default value, notably all of the
## attribute mappings have a default value that this config overrides, you can read more about these default values
## at https://www.authelia.com/docs/configuration/authentication/ldap.html#defaults
@kepano
kepano / obsidian-web-clipper.js
Last active July 22, 2024 07:29
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@brenoprata10
brenoprata10 / steam-wishlist.js
Last active July 1, 2024 15:13
Shows widget for steam wishlist of given steamID on Scriptable app
const STEAM_STORE_URL = "https://store.steampowered.com"
const steamId = args.widgetParameter ?? "76561198008818777"
try {
const wishListGames = await fetchWishListById(steamId)
const widget = await createWidget(wishListGames)
renderWidget(widget)
} catch(error) {
const widget = await createErrorWidget(error)
renderWidget(widget)
}

Requirements

There are 18 questions in total. You will need five RHEL 8 (or CentOS 😎 virtual machines to be able to successfully complete all questions.

Optional Automatic Exam Setup Available

Here is an automated exam environment deployment for Mac/Linux/Windows that deploys the practice exam environment for you, including IPA server/client installation and configuration. You can also use your own lab environment. Navigate to the respective repo you wish to use for this practice exam and follow the README instructions:

https://github.com/rdbreak/rhce8env, https://github.com/rdbreak/ansible27env, https://github.com/rdbreak/ansible8env.

@darwin
darwin / readme.md
Last active April 9, 2024 22:30
APFS Container cloning/replicating under Catalina (with a bootable system)

Today I wanted to move existing APFS-resident macOS Catalina installation to a new disk. I upgraded my late 2014 Mac Mini with a shiny new 1TB SSD. This took way too many hours of my life I will never get back. Hope this saves some time to you.

Good news:

  1. it is possible to create a DMG image from existing APFS container with macOS Catalina installation including metadata needed for complete restore (the DMG contains OS, OS Data, Preboot, Recovery and VM volumes)
  2. it is possible to restore this DMG image into empty APFS container and get a bootable copy of the original system

This information is relevant for Catalina (I'm currently running macOS 10.15.1).

{
"__inputs": [
{
"name": "DS_INFLUXDB",
"label": "InfluxDB",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
}
@qzm
qzm / docker-compose.yml
Last active May 20, 2024 11:22
Atlassian docker-compose (JIRA,Confluence,Bitbucket) with nginx and letsencrypt
version: '2'
services:
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root/.docker/config.json:/config.json
command: nginx-proxy nginx-proxy-le
@yujunz
yujunz / Time Machine On JuiceFS.md
Last active December 29, 2023 16:48
Time machine on JuiceFS
JFS_BASE=/Users/yujunz/JuiceFS
JFS_NAME=rogerz-s3-cn-east-1-qiniu
BUNDLE=TimeMachine.sparsebundle
VOLUME=/Volumes/TimeMachine

# Mount JuiceFS
juicefs mount --cache-dir $JUICEFS_BASE/cache --batch 10 --writeback --metacache --opencache $JFS_NAME $JFS_BASE/$JFS_NAME

# Create sparse bundle