Skip to content

Instantly share code, notes, and snippets.

View v1k0d3n's full-sized avatar
🎧
Give me a soft subtle mix, and if ain't broke then don't try to fix it

Brandon B. Jozsa v1k0d3n

🎧
Give me a soft subtle mix, and if ain't broke then don't try to fix it
View GitHub Profile
@v1k0d3n
v1k0d3n / 01_NieR_FAR.md
Created November 14, 2023 14:49 — forked from MiyacoGBF/01_NieR_FAR.md
How to Install FAR, HD Texture Pack, and ReShade (GShade) for NieR:Automata on Linux
@v1k0d3n
v1k0d3n / README.md
Last active August 19, 2023 16:04
Defragging Etcd in OpenShift (if needed)

NOTE: These proceedures are only for OpenShift SNO-Deployments. I will create a loop command later for multi-node environments.

❯ oc get pods -n openshift-etcd | grep etcd
etcd-itamae                4/4     Running     20         8d

ETCD_SNO_ENDPOINT=$(oc get pods -n openshift-etcd | grep etcd | awk '{print $1}')
echo $ETCD_SNO_ENDPOINT
@v1k0d3n
v1k0d3n / README.md
Last active October 10, 2022 14:02 — forked from koshatul/README.md
Tips (macOS): Use Apple Keychain to store GPG Passphrases

gpg-agent setup

Need to setup gpg-agent first, on OSX I use keychain (it also does ssh-agent)

$ brew info keychain
keychain: stable 2.8.5
User-friendly front-end to ssh-agent(1)
https://www.funtoo.org/Keychain
/usr/local/Cellar/keychain/2.8.5 (7 files, 108.5KB) *
@v1k0d3n
v1k0d3n / 1-setup.md
Created September 30, 2022 19:27 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS

Methods of Signing with a GPG Key on MacOS

Last updated September 21, 2022

This Gist explains how to do this using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

There has been a number of comments on this gist regarding some issues around the pinentry-program and M1 Macs. I've finally gotten a chance to try things out on an M1 and I've updated the documentation in 2-using-gpg.md to reflect my findings.

#!/usr/bin/env bash
# Loads and mounts an ISO over SMB via the
# SuperMicro IPMI web interface
#
# usage: supermicro-mount-iso.sh <ipmi-host> <smb-host> <path>
# e.g.: supermicro-mount-iso.sh 10.0.0.1 10.0.0.2 '\foo\bar\windows.iso'
set -x

Overview

For anyone doing remote lab work or demonstrations which include jump servers, this is your new best friend.

Installation

In MacOS, you can simply use brew to install sshuttle:

brew install sshuttle

Or on any other system, you can simply use python-pip3:

---
# Using unsupported SR-IOV NICs w/OpenShift
apiVersion: v1
kind: ConfigMap
metadata:
name: unsupported-nic-ids
namespace: openshift-sriov-network-operator
data:
X520: 8086 154d 10ed
X540: 8086 154d 10ee
@v1k0d3n
v1k0d3n / rhel7_nmcli_network_configuration.sh
Created September 3, 2021 19:15 — forked from ruzickap/rhel7_nmcli_network_configuration.sh
RHEL7 nmcli network configuration of bonding (eno1, eno2), trunk containing 3 vlans (1169, 1170, 1261) and bridging for each vlan.
#Set hostname
hostnamectl set-hostname lb01-server.example.com
#Remove all network configuration
nmcli con del eno{1,2,3,4}
#Configure bonding
nmcli con add type bond con-name bond0 ifname bond0 mode active-backup
nmcli con add type bond-slave con-name eno1 ifname eno1 master bond0
nmcli con add type bond-slave con-name eno2 ifname eno2 master bond0
@v1k0d3n
v1k0d3n / dropdown.md
Created September 3, 2021 19:08 — forked from citrusui/dropdown.md
"Dropdowns" in Markdown
How do I dropdown?
This is how you dropdown.

<details>
<summary>How do I dropdown?</summary>
<br>
This is how you dropdown.