Skip to content

Instantly share code, notes, and snippets.

View kmf's full-sized avatar
🐧
Penguins make great Robots

Karl Fischer kmf

🐧
Penguins make great Robots
View GitHub Profile
@kmf
kmf / api-curl.sh
Created February 23, 2021 07:55 — forked from paulmooring/api-curl.sh
curl request script for Chef servers
#!/usr/bin/env bash
# Author:: Paul Mooring (<[email protected]>)
# Author:: Steven Danna (<[email protected]>)
# Copyright:: Copyright (c) 2013 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
{
"__inputs": [
{
"name": "DS_INFLUXDB",
"label": "InfluxDB",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
}
#!/bin/bash
OLDIFS=$IFS
export IFS=$'\n'
# Find all boxes which have updates
AVAILABLE_UPDATES=$(vagrant box outdated --global | grep outdated | tr -d "*'" | cut -d ' ' -f 2 2>/dev/null)
if [[ ${#AVAILABLE_UPDATES[@]} -ne 0 ]]; then
@kmf
kmf / obsidianTodayWidget.js
Created December 27, 2021 06:54 — forked from rberenguel/obsidianTodayWidget.js
Quick-and-dirty Scriptable (https://scriptable.app/) script to show a medium widget with today's tasks from Obsidian, for my set up (today is in journal/YYYYMMDD.md, tasks are under the `### Plan` heading). Optionally pass "tomorrow" as widget arg to render tomorrow (if it doesn't exist it will fail of course)
let when = args.widgetParameter || 'today'
let now = new Date()
if (when == 'tomorrow') {
now.setDate(now.getDate() + 1);
}
let formatter = new DateFormatter()
formatter.dateFormat = 'yyyyMMdd'
let today = formatter.string(now)
@kmf
kmf / up-and-running-ansible-awx.md
Created January 24, 2024 12:28 — forked from cdot65/up-and-running-ansible-awx.md
Install Ansible AWX on Rancher k3s

up-and-running-ansible-awx

A reference for spinning up Ansible AWX on top of a Kubernetes environment

k3s install

Install k3s with bash script

curl -sfL https://get.k3s.io | sh -
# Backup
dconf dump /org/cinnamon/ > cinnamon-dconf-settings.txt
# Reset Cinnamon
dconf reset -f /org/cinnamon/
# Restore
dconf load /org/cinnamon/ < cinnamon-dconf-settings.txt