Skip to content

Instantly share code, notes, and snippets.

@dmi3mis
dmi3mis / import-vms.cmd
Created March 26, 2025 16:52
Batch script to import vms
set OVA_DIR=%~dp0
set WORK_DIR=%OVA_DIR%VMs
set OVFTOOL_HOME=C:\Program Files (x86)\VMware\VMware Workstation\OVFTool
set VMWARE_HOME=C:\Program Files (x86)\VMware\VMware Workstation
"%OVFTOOL_HOME%\ovftool.exe" "%OVA_DIR%admin-laptop.ova" "%WORK_DIR%"
"%OVFTOOL_HOME%\ovftool.exe" "%OVA_DIR%alex-desktop.ova" "%WORK_DIR%"
"%OVFTOOL_HOME%\ovftool.exe" "%OVA_DIR%dc.ova" "%WORK_DIR%"
"%OVFTOOL_HOME%\ovftool.exe" "%OVA_DIR%kali.ova" "%WORK_DIR%"
@dmi3mis
dmi3mis / create-container-registry-proxies.sh
Created January 27, 2025 18:55 — forked from WoozyMasta/create-container-registry-proxies.sh
Create multiplie container registry cache proxies using docker distribution in registry mirror mode
#!/bin/bash
set -eu
# Listen address for all docker.io/registry instances
listen_address=0.0.0.0
# Listen port for the first container
# all subsequent ports for containers will be incremented by one
listen_port_first=5000
insecure=true
lang en_US
keyboard us
timezone America/New_York --utc
rootpw $2b$10$ffn3ieDKdvMXmUPWfPr0genfCGZa4f8GEUoHwfcTrYumeNYk972te --iscrypted
reboot
text
cdrom
bootloader --append="rhgb quiet crashkernel=auto"
zerombr
clearpart --all --initlabel
@dmi3mis
dmi3mis / Установка Outline VPN на Ubuntu 20.04.md
Created August 29, 2024 06:28 — forked from JohnyDeath/Установка Outline VPN на Ubuntu 20.04.md
Инструкция по развертыванию собственного VPN-сервиса на базе Outline VPN

Установка Outline VPN на Ubuntu 20.04

Outline VPN - это бесплатный инструмент с открытым исходным кодом, позволяющий развернуть собственную VPN на Вашем собственном сервере или на машине облачного провайдера. Подробную информацию Вы можете узнать здесь и здесь.

В своем составе имеет как графические инструменты, так и средства работы через командную строку. Позволяет использовать VPN как на настольных компьютерах, так и на мобильных устройствах.

Прежде чем начать

Вам нужен сервер. Да, его нужно арендовать, учитывая его местоположение. Например, если Вам нужно получать доступ к ресурсам, которые недоступны в текущем местоположении, но доступны, например, в Канаде, то смело арендуйте виртуальную машину в AWS, Digital Ocean или любом другом месте.

@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: [email protected]
# 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