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 / extract-kubeconfig-acm-created-cluster.sh
Created April 11, 2024 15:59 — forked from dlbewley/extract-kubeconfig-acm-created-cluster.sh
How to extract kubeconfig and kubeadmin password from OpenShift ClusterDeployment using RHACM
#!/bin/bash
# https://guifreelife.com/blog/2021/08/13/RHACM-Recover-Created-Cluster-Credentials-and-Kubeconfig/
#
# If an OpenShift cluster was created by RHACM this script will extract the
# kubeconfig and the default kubeadmin credentials.
#
# Prereqs:
# - Authenticated to hub cluster
# - Managed cluster name is the sames as the hosting namespace on hub cluster
@v1k0d3n
v1k0d3n / setup-keycloak.md
Created March 16, 2024 17:22 — forked from KiranMantha/setup-keycloak.md
Setup keycloak

Keycloak setup

  • install docker
  • in order to run keycloak in a docker container, run the below command:
docker run -p 8080:8080 -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin quay.io/keycloak/keycloak:latest start-dev

If you are using podman then just replace docker with podman in above bash command

@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 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
---
# 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.