Skip to content

Instantly share code, notes, and snippets.

View chris1984's full-sized avatar

Chris Roberts chris1984

View GitHub Profile
source ~/foreman/.env
BIND=0.0.0.0 bundle exec puma -w 1 -t 1 -p $PORT --preload
@chris1984
chris1984 / vmware.patch
Created April 26, 2023 19:59
vmware networking debug patch
From 87ab37358c1f3641ced07ce6d0cd587f7f80170d Mon Sep 17 00:00:00 2001
From: Chris Roberts <chrobert@redhat.com>
Date: Wed, 26 Apr 2023 15:57:16 -0400
Subject: [PATCH] patch
---
lib/fog/vsphere/requests/compute/list_networks.rb | 2 ++
lib/fog/vsphere/requests/compute/list_vm_interfaces.rb | 10 ++++++++++
2 files changed, 12 insertions(+)
@chris1984
chris1984 / powerCLI cheat sheet
Last active May 8, 2023 19:08 — forked from githubfoam/powerCLI cheat sheet
powerCLI cheat sheet
------------------------------------------------------------------------------------------------------------------------------------
Get-Help Get-Snapshot
Get-Help XXX (cmdlet)
REMARKS
To see the examples, type: "get-help Get-Snapshot -examples".
For more information, type: "get-help Get-Snapshot -detailed".
For technical information, type: "get-help Get-Snapshot -full".
For online help, type: "get-help Get-Snapshot -online"
@chris1984
chris1984 / git-tag-delete-local-and-remote.sh
Created September 18, 2024 21:22 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@chris1984
chris1984 / azure_rm.rb
Created August 20, 2025 15:00
azure_rm.rb
# This Model contains code modified as per azure-sdk
# and removed dependencies from fog-azure-rm.
require 'base64'
module ForemanAzureRm
class AzureRm < ComputeResource
include VMExtensions::ManagedVM
alias_attribute :sub_id, :user