Skip to content

Instantly share code, notes, and snippets.

View Retrockit's full-sized avatar

SolutionMonk Retrockit

  • ShinyEnterprises
View GitHub Profile
@apinter
apinter / microos_selinux.md
Last active April 20, 2023 11:42
A list of booleans that are nice to have enabled on an SELinux system
sudo setsebool -P abrt_upload_watch_anon_write on
sudo setsebool -P auditadm_exec_content on
sudo setsebool -P boinc_execmem on
sudo setsebool -P cron_userdomain_transition on
sudo setsebool -P daemons_dontaudit_scheduling on
sudo setsebool -P dbadm_exec_content on
sudo setsebool -P domain_fd_use on
sudo setsebool -P entropyd_use_audio on
sudo setsebool -P fips_mode on
d-i debian-installer/locale string en_US
d-i keyboard-configuration/xkb-keymap select us
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
d-i netcfg/hostname string debian
d-i netcfg/wireless_wep string
d-i mirror/country string manual
d-i mirror/http/hostname string deb.debian.org
d-i mirror/http/directory string /debian
@Retrockit
Retrockit / Guest OS Descriptors by VMware Platform.md
Created January 6, 2022 14:29 — forked from dcode/Guest OS Descriptors by VMware Platform.md
When using Packer (or other vmx editing needs), I needed to know what the `guest_os_type` should be according to what platform it was running on. Here you go. If it isn't listed in a column, it didn't exist at that time.
ESXi 6.5 ESXi 6.7 VMware Fusion 11 Guest Description
CRXPod1-64 VMware CRX Pod 1
CRXSys1-64 VMware CRX Sys 1
amazonlinux2-64 Amazon Linux 2 or higher, 64-Bit
asianux3Guest asianux3Guest asianux3 Asianux Server 3
asianux3_64Guest asianux3_64Guest asianux3-64 Asianux Server 3, 64-Bit
asianux4Guest asianux4Guest asianux4 Asia Linux 4
asianux4_64Guest asianux4_64Guest as
@matthiasgleichauf
matthiasgleichauf / README
Last active September 7, 2022 11:48
debian preseed
Stuff i found out about debian preseed.
It's all scattered, so I' collecting it here, so I can find it again, once I don't remember everything anymore.
Basic documentation is here:
https://www.debian.org/releases/stable/i386/apbs01.en.html
Additionally I found these interesting links:
http://hands.com/d-i/
Also these french guys had the same issue as me, that the installer suddenly complained that the setup cd isn't mounted.
#_preseed_V1
#### Contents of the preconfiguration file (for bullseye)
### Localization
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string C
# The values can also be preseeded individually for greater flexibility.
#d-i debian-installer/language string en
d-i debian-installer/country string JP
d-i debian-installer/locale string C.UTF-8
@rebooting
rebooting / generate vhdx.md
Last active September 4, 2022 00:22
Create bootable Win10 vhdx from windows 10 iso with unattended script
@azhang
azhang / pxe_on_opnsense.md
Last active July 5, 2025 10:30
PXE on OPNsense

This is a walkthrough of setting up a PXE server to boot Ubuntu server live install .iso over network, all on an OPNsense device. No need for Dnsmasq or http/nfs server! Should be compatible with vanilla FreeBSD and HardenedBSD devices as well.

Guide made with OPNsense 20.7 and Ubuntu 20.04.2, with the assumption that your OPNsense device is at 192.168.1.1.

Thanks to all the other guides out there. 1 2

Notes:

A couple issues I ran into with other guides is that Ubuntu's servers return 404 for older releases. Make sure to check each link used in this guide to make sure they exist! This guide works with BIOS as we use pxelinux.0 but it can be adapted fairly easily for UEFI boot.

Overview:

@nickadam
nickadam / ps1_to_cmd.ps1
Created March 31, 2020 16:38
[ps1_to_cmd] Convert a multiline PS1 script to a single line cmd file #PowerShell
$s = Get-Content script.ps1 | Out-String
$j = [PSCustomObject]@{
"Script" = [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($s))
} | ConvertTo-Json -Compress
$oneline = "[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String(('" + $j + "' | ConvertFrom-Json).Script)) | iex"
$c = [convert]::ToBase64String([System.Text.encoding]::Unicode.GetBytes($oneline))
("Powershell -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -Encoded " + $c) | Out-File -Encoding Default script.cmd
@islander
islander / proxmox6-debian-playbook.yml
Created March 5, 2020 01:28
Convert Debian 10 to Proxmox Virtual Environment 6. Ansible playbook.
---
- name: Add proxmox gpg key
apt_key:
url: http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg
state: present
- name: Add proxmox repository
lineinfile:
path: /etc/apt/sources.list
line: deb http://download.proxmox.com/debian/pve buster pve-no-subscription
#_preseed_V1
# Debian Ansible Server Preseed File
# Author: keybase.io/ubzy
# Targeted for: Debian 11 Bullseye
# Short link: https://git.io/fjiG3
### Localization
d-i debian-installer/language string en
d-i debian-installer/country string GB