Skip to content

Instantly share code, notes, and snippets.

View dekimsey's full-sized avatar

Daniel Kimsey dekimsey

View GitHub Profile
@dekimsey
dekimsey / termenv.go
Created November 1, 2022 19:56
museli/termenv#71 work-around
package main
import (
"fmt"
"strings"
"github.com/mattn/go-runewidth"
"github.com/muesli/termenv"
)
@dekimsey
dekimsey / ipmi-updater.py
Last active April 9, 2024 15:30 — forked from mcdamo/ipmi-updater.py
Supermicro IPMI certificate updater
#!/usr/bin/env python3
# vim: autoindent tabstop=4 shiftwidth=4 expandtab softtabstop=4 filetype=python
# This file is part of Supermicro IPMI certificate updater.
# Supermicro IPMI certificate updater is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
2019/08/02 16:54:39 [INFO] Packer version: 1.4.2
2019/08/02 16:54:39 Packer Target OS/Arch: linux amd64
2019/08/02 16:54:39 Built with Go Version: go1.12.6
2019/08/02 16:54:39 Detected home directory from env var: /home/not-a-root-user
2019/08/02 16:54:39 Using internal plugin for amazon-ebs
2019/08/02 16:54:39 Using internal plugin for openstack
2019/08/02 16:54:39 Using internal plugin for oracle-oci
2019/08/02 16:54:39 Using internal plugin for parallels-iso
2019/08/02 16:54:39 Using internal plugin for virtualbox-iso
2019/08/02 16:54:39 Using internal plugin for yandex
@dekimsey
dekimsey / output.json
Last active January 3, 2019 23:18
Table OCR
{
"Lines": [
{
"Words": [
{
"WordText": "DAY",
"Left": 20,
"Top": 103,
"Height": 11,
"Width": 29
# ansible-playbook -i localhost, ./demo-facts-lifetime.yml
- hosts: localhost
connection: local
tasks:
- name: Facts gathereed OK
debug:
var: ansible_date_time.epoch
- name: Sleep for a few seconds
command: sleep 2
@dekimsey
dekimsey / filtering-by-group_by.yml
Last active January 17, 2017 18:13
cannot filter host_lists with group_by generated groups
# ansible-playbook -i localhost, filtering-by-group_by.yml
- name: Gather facts and partition hosts
hosts: '!__partitioned'
become: false
connection: local
tasks:
- group_by:
key: __skipme
- group_by:
@dekimsey
dekimsey / gist:902dc3212cbad1ea5e2b1b10c8a7eefc
Created September 12, 2016 21:05
subscription-manager-1.11.3-11.el5
[root@port-db-dv3-01 ~]# /usr/sbin/subscription-manager status
Traceback (most recent call last):
File "/usr/sbin/subscription-manager", line 58, in ?
from subscription_manager.injectioninit import init_dep_injection
File "/usr/share/rhsm/subscription_manager/injectioninit.py", line 17, in ?
from subscription_manager.cache import ProductStatusCache, EntitlementStatusCache, \
File "/usr/share/rhsm/subscription_manager/cache.py", line 33, in ?
from subscription_manager.jsonwrapper import PoolWrapper
File "/usr/share/rhsm/subscription_manager/jsonwrapper.py", line 18, in ?
from subscription_manager.utils import is_true_value
@dekimsey
dekimsey / .gitignore
Last active August 12, 2016 19:31
ini_file doesn't support multiline keys
*.array
*.inline
@dekimsey
dekimsey / example.png
Last active July 16, 2016 23:34
Color scheme for the Default Settings in PuTTY.
example.png
@dekimsey
dekimsey / with_items-doesnt-show-as-failed.yaml
Created July 12, 2016 18:41
with_items fails to flag module errors as failures
---
- hosts: localhost
connection: local
become: true
gather_facts: false
tasks:
- block:
- yum:
name: foobar
state: installed