Skip to content

Instantly share code, notes, and snippets.

Create a pod to hold containers

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

Create database initialization scripts

@dmi3mis
dmi3mis / product.ini
Created September 8, 2017 09:47 — forked from CHEF-KOCH/product.ini
Windows 10 product.ini
[cmi]
namespace=urn:schemas-microsoft-com:unattend
ClientServerSplit=true
AnswerFileFormat=1
ServerDatacenterACorCore=P7CCN-72DMB-93C9B-C9PD7-379HK
EnterpriseNEval=MNXKQ-WY2CT-JWBJ2-T68TQ-YBH2V
ProfessionalSingleLanguage=G3KNM-CHG6T-R36X3-9QDG6-8M8K9
CoreSingleLanguage=BT79Q-G7N6G-PGBYW-4YWX6-6F4BT
Professional=VK7JG-NPHTM-C97JM-9MPGT-3V66T
ServerStorageStandard=VN8D3-PR82H-DB6BJ-J9P4M-92F6J
@dmi3mis
dmi3mis / WINDOWS7rearm
Created October 24, 2017 08:32
RESETTING THE REARM COUNT IN WINDOWS 7
WINDOWS 7
RESETTING THE REARM COUNT IN WINDOWS 7
9 JANUARY 2013 IT FUNK 41 COMMENTS
After installing Windows 7, and before activation, the operating system will run in an Initial Grace Period license status for 30 days. When this grace period expires, users can rearm Windows 7 for an additional 30 days, and do this up to 3 times, effectively allowing the OS to run legally for 120 days without a genuine product key.
When a user uses up all three available rearms, the only option left is to enter a genuine product key to activate Windows 7, or leave the operating system in a crippled, non-genuine state. Users will then be subjected to certain annoyances such as black desktop background, repetitive notification messages stating that this copy of Windows is illegal or counterfeited, and a reminder to register the software at login.
Through a Windows Product Activation (WPA) vulnerability that Microsoft introduced in Windows 7, it is possible to reset the remaining rearm count back to 4. There is no limit to th
@dmi3mis
dmi3mis / Exch2013Lab-HyperV.ps1
Last active July 12, 2023 19:14
Powershell script to automaticaly deploy lab with dc, exchange 2016 servers, and windows 10. Connected to internet.
#create an empty lab template and define path to files where VMs will be stored
New-LabDefinition -Name 'Ex2013lab' -DefaultVirtualizationEngine HyperV -VmPath "C:\Program Files\Microsoft Learning\Ex2013Lab\" # If you want to place vm files in custom dir add -VmPath "drive:\path\to\directory"
#defining default parameter values, as these ones are the same for all the machines
$PSDefaultParameterValues = @{
'Add-LabMachineDefinition:DomainName' = 'adatum4.ml'
'Add-LabMachineDefinition:OperatingSystem' = 'Windows Server 2012 R2 Datacenter (Server with a GUI)'
'Add-LabMachineDefinition:UserLocale' = 'en-US'
}
#Network Definition
@dmi3mis
dmi3mis / skiprearm
Created October 24, 2017 08:34
SkipRearm lets you use Windows without activating
SkipRearm lets you use Windows without activating
RECOMMENDED: Click here to repair Windows problems & optimize system performance
SkipRearm is a registry entry which specifies whether to run the Windows Software Licensing Rearm program. Rearming a computer restores Windows Vista and later, to the original licensing state. All licensing and registry data related to activation is either removed or reset. Any grace period timers are reset as well.
0 : Specifies that the computer will be rearmed & any grace period timers will be reset
1 : Specifies that the computer will not be rearmed & grace period timers will not be reset.
SkipRearm registry key in Windows
SkipRearm specifies whether to run the Windows Software Licensing Rearm program. Rearming a computer restores the Windows operating system to the original licensing state. All licensing and registry data related to activation are either removed or reset. Any grace period timers are reset as well, states Microsoft.
In other words, SkipRearm specifies wheth
@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
@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:
ClassicShell: http://www.softpedia.com/get/Desktop-Enhancements/Shell-Replacements/Classic-Shell.shtml
OldNewExplorer: http://www.softpedia.com/get/Tweak/System-Tweak/OldNewExplorer.shtml
Wallpaper: Refuges by Vykoukal: http://vykoukal.deviantart.com/art/Refugees-623944078
Theme: Yosem Dark Theme Windows10 Anniversary Update: https://1drv.ms/u/s%21Aoq6q0sB2C1NhiFhWwdVaM-7lgaj
Explorer Transparency: Downloaded from this theme pack: http://virtualcustoms.net/showthread.php/72602-Equinox-Blackout-for-Windows-10-Anniversary-Update-Redstone-1
Clock/Date: La Compagnie des Ombres Rainmeter Skin: http://madmilov2.deviantart.com/art/La-Compagnie-des-Ombres-486976404
Spotify "Now Playing": Cleartext: http://redsaph.deviantart.com/art/Cleartext-for-Rainmeter-v3-2-2-22-Jul-2016-519796161
Taskbar Shadow: Taskbar Shadow Skin: https://1drv.ms/u/s%21Aoq6q0sB2C1Nhh2Ib807IvhCqzh0
Cut: https://1drv.ms/u/s%21Aoq6q0sB2C1Nhh7bLEQUwtYtFg6S
Sublime Text 3 Theme: Material Theme Darker: https://github.com/equinusocio/material-theme
zypper in python3-kiwi git
git clone https://github.com/OSInside/kiwi-descriptions
kiwi-ng --profile Disk system build --description kiwi-descriptions/suse/x86_64/suse-leap-15.3 --target-dir /tmp/myimage
ls -lh /tmp/myimage/*.raw
cp /tmp/myimage/Leap-15.3_appliance.x86_64-1.15.3.raw /var/lib/libvirt/images/