Skip to content

Instantly share code, notes, and snippets.

View hh's full-sized avatar

Hippie Hacker hh

View GitHub Profile
@hh
hh / bagchase.jpg
Last active April 2, 2024 16:41
coop-mode literate programming file
bagchase.jpg
@hh
hh / prezzo.org
Last active March 27, 2024 20:56

Prezzo

environment

spacename

echo -n $SPACENAME
@hh
hh / iisp.org
Created November 30, 2022 02:17
@hh
hh / kvm.sh
Last active November 11, 2022 16:46
supermicro IMPIView kvm command line
#!/bin/sh
# Default to ADMIN for user and pass
echo usage "kvm IP [USER] [PASSWORD]"
echo USER/PASS default to 'ADMIN'
USER=${2:-ADMIN}
@hh
hh / vmi.yaml
Created October 20, 2022 16:41
KubeVirt MachineTemplate unable to create no cloud init;
apiVersion: kubevirt.io/v1
kind: VirtualMachineInstance
metadata:
annotations:
kubevirt.io/latest-observed-api-version: v1
kubevirt.io/storage-observed-api-version: v1alpha3
creationTimestamp: "2022-10-18T23:02:50Z"
finalizers:
- kubevirt.io/virtualMachineControllerFinalize
- foregroundDeleteVirtualMachine
@hh
hh / pair-emacs28-nativecomp.sh
Last active July 27, 2022 01:27
Upgrade pair-instance to emacs28-nativecomp
# https://github.com/sharingio/environment/issues/22
yes | sudo unminimize
# https://github.com/sharingio/environment/issues/23
sudo apt-get install -y man info
# https://github.com/sharingio/environment/issues/24
sed -i -e "/'org-babel-tangle-collect-blocks/,+1d" ~/.emacs.d/bin/org-tangle
# https://github.com/sharingio/environment/issues/25
sudo apt remove --autoremove emacs emacs-common # if emacs-nox is installed
sudo add-apt-repository ppa:kelleyk/emacs
sudo apt install -y emacs28-nativecomp
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
CNCF_GCP_ORG=758905017065
echo "# Auditing CNCF CGP Org: ${CNCF_GCP_ORG}"
echo "## Iterating over Projects"
@hh
hh / hardened_winrm_ssl_aws_windows.rb
Created October 1, 2015 16:19
Winrm over SSL reusing rdp certificate
require 'chef/provisioning/aws_driver'
require 'byebug'
current_dir = File.dirname(__FILE__) # to get relative files... encrypted databag
with_chef_server "https://api.chef.io/organizations/#{ENV['CHEF_ORG']}",
:client_name => Chef::Config[:node_name],
:signing_key_filename => Chef::Config[:client_key]
setup_winrm_ssl_user_data = <<EOD
<powershell>