Skip to content

Instantly share code, notes, and snippets.

@dmi3mis
dmi3mis / Nexus3.yaml
Created March 17, 2023 01:17
Install Nexus3 with m88i nexus-operator
apiVersion: apps.m88i.io/v1alpha1
kind: Nexus
metadata:
name: nexus3
spec:
serviceAccountName: nexus3
resources:
limits:
cpu: '2'
memory: 3Gi

Create a pod to hold containers

podman pod create \
  --name YOUR_POD_NAME \
  -p 8080:8080

Create database initialization scripts

@dmi3mis
dmi3mis / host-kickstart.cfg
Last active February 24, 2023 07:26
test kickstart file
#version=CentOS 8 Stream
# Use text install
text
skipx
%packages
@^virtualization-host-environment
@remote-system-management
@virtualization-platform
@dmi3mis
dmi3mis / ClusterIssuer.yaml
Last active May 13, 2022 10:36
Using jetstack cert-manager ingress and routes in openshift
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: clusterissuer
spec:
acme:
email: emailbox@emaildomain.tld
# server: https://acme-v02.api.letsencrypt.org/directory
server: https://acme-staging-v02.api.letsencrypt.org/directory
privateKeySecretRef:
@dmi3mis
dmi3mis / pod.yaml
Created September 20, 2021 12:07
simple pod yaml
apiVersion: v1
kind: Pod
metadata:
name: pod
labels:
app: podapp
spec:
containers:
@dmi3mis
dmi3mis / freeipa_auth_suse.md
Created June 23, 2021 17:56 — forked from Aethylred/freeipa_auth_suse.md
Setting up FreeIPA authentication onf SUSE/SLE 12 SP2

This is the manual process for enrolling a host running SUSE/SLE 12 SP2 with FreeIPA.

The following reference documentation was used to create this process:

I do not recommend using yast to set this up, however it is useful to check if the configuration is valid. SUSE/SLE has all the required packages to use FreeIPA but does not have the conveinent ipa-client tools, such as ipa-client-install.

Pre-Requisites

#!/bin/bash
sshpass -p redhat ssh -o StrictHostKeyChecking=no root@workstation 'wget -c https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/latest/openshift-client-linux.tar.gz'
sshpass -p redhat ssh -o StrictHostKeyChecking=no root@workstation 'tar -xvf openshift-client-linux.tar.gz --overwrite -C /usr/local/bin/'
#!/bin/bash
# this sample script is ping computers in loop.
# It uses conditional expression with color echo
for HOST in $(seq $1 $2)
do
echo -en "\nlets try ping $HOST: "
if ping -c 1 -W 1 f${HOST} >/dev/null 2>&1
then
echo -e "\e[1;32m alive \e[0m"
@dmi3mis
dmi3mis / tmux-cheatsheet.markdown
Created May 10, 2021 13:30 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@dmi3mis
dmi3mis / -setup-windows-wsl-devenv.md
Created May 3, 2021 14:37 — forked from leodutra/-setup-windows-wsl-devenv.md
Install and Setup Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font

Setup Windows Subsystem 2 for Linux

Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font

To setup native Linux, see this gist

Preview

Requirements