Skip to content

Instantly share code, notes, and snippets.

@dominicusin
dominicusin / gist:316ab2c4be582d19ddd5bc612f9edeeb
Created October 26, 2021 13:30 — forked from whiskerz007/gist:53c6aa5d624154bacbbc54880e1e3b2a
How to setup a community version of Proxmox VE 5.x-6.x
# Disable Commercial Repo
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list
apt-get update
# Add PVE Community Repo
echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
apt-get update
# Remove nag
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" > /etc/apt/apt.conf.d/no-nag-script
@dominicusin
dominicusin / Fedora_Root_On_ZFS.md
Created December 24, 2020 04:03 — forked from p7cq/Fedora_Root_On_ZFS.md
Fedora with Root on ZFS - installation notes

Fedora: Root on ZFS

  • Fedora: 28
  • ZFS on Linux: 0.7.9

A. Prepare source

  1. Download Fedora Workstation network installer image.
  2. Boot live media by adding inst.gpt at the end of the boot line and set up with:
@dominicusin
dominicusin / Debian_Hurd_Install.md
Created December 24, 2020 03:56 — forked from AlmuHS/Debian_Hurd_Install.md
Debian GNU Hurd installation in real hardware

How to install Debian GNU/Hurd in a real PC

Debian GNU/Hurd installation guide to real hardware

Requirements

  • An old PC
  • DVD-R or CD-R
  • Recommended hardware
    • Wired Network Connection
  • CPU with high clock speed
A. Create Installation DVD ISO Via Dism:
1. Extract Win 10 Enterprise version of the mirror sources folder install.wim to D drive temp directory
2. In the temp directory to create WimMount folder, and execute the following command to mount the wim file
Dism /Mount-Wim /WimFile:D:\temp\install.wim /Index:1 /MountDir:D:\temp\WimMount
3. Show the current version
Dism /Image:D:\temp\WimMount /Get-CurrentEdition
4. Show current version
Dism /Image:D:\temp\WimMount /Get-TargetEditions
@dominicusin
dominicusin / install_niresh_hackintosh.md
Created October 20, 2020 18:09 — forked from ViKingIX/install_niresh_hackintosh.md
How to Install Niresh Yosemite on Your PC

How to Install Niresh Yosemite on Your PC

OS X Yosemite (10.10) is the latest OS X release of 2014 by apple, but Apple locks the operating system to only be installed in genuine Apple computers known as Macintosh & they cost a lot any how there is always a way if you want to install the operating system in your common pc, without paying high cost for a real mac you can make a Hackintosh

We have previously covered the article for Installing Niresh Mavericks on PC if you’re interested in Installing Mac OS X Yosemite on PC this article is for you, You may experience many problems while trying to Install Hackintosh, most of them can be fixed easily most troubleshoot informations are included in this guide so first just read all Instructions once before starting any procedures.

Few Notes about this OSX 10.10 & 10.10.1 (Intel & AMD Supported)

@dominicusin
dominicusin / unattended installation.md
Created April 4, 2020 22:35 — forked from kuntau/unattended installation.md
Setup unattended installation for moving `USERS` and `AppData` folder on Windows 8

When creating a clean install, using the combination of an SSD system drive and a conventional disk drive, as a data drive, there is a way to "move" the Users folder (normally, C:\Users) and the hidden ProgramData folder (normally C:\ProgramData) to the conventional disk, or data drive, using an answer file, or unattend.xml, for an unattended installation, as mentioned above.

For an individual doing a single, one-off installation, trying to figure out how to create an answer file for a completely unattended installation, just to accomplish this one small task, is way, way too much trouble. It's also not necessary.

It is possible, during the course of a conventional, interactive installation from an installation disc or USB thumbdrive, to enter what is called, "Audit Mode", before the Computer is named or a Username created, and accomplish the necessary re-assignment.

1.) Do a conventional installation. If you are using an SSD, at the point in the installation process where you are asked where you want to

@dominicusin
dominicusin / win-convert-eval-kms.txt
Last active March 20, 2020 05:51 — forked from ferdinandosimonetti/win-convert-eval-kms.txt
How to convert Windows Evaluation to Volume License editions
# powershell as administrator
# this key is for Windows Server 2019 Datacenter
DISM /online /Set-edition:ServerDatacenter /ProductKey:WMDGN-G9PQG-XVVXX-R3X43-63DFG /AcceptEula
# Other keys:
# W10
Windows 10 Pro W269N-WFGWX-YVC9B-4J6C9-T83GX
Windows 10 Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43
Windows 10 Enterprise LTSC 2019 M7XTQ-FN8P6-TTKYV-9D4CC-J462D
# Windows Server
### Flatpak Repos
List packages on a repo :
flatpak remote-ls repon-name --user
flatpak remote-ls
Install packages :
flatpak --user install repo-name package-name io.liri.Platform
Flathub:
@dominicusin
dominicusin / gist:39e81e44e8bdaeadeb7b69c7928aea08
Created December 4, 2018 02:53 — forked from le0pard/gist:972335
Куайн, Запрос который выводит сам себя
select a || ' from (select ' || quote_literal(a) || b || ', ' || quote_literal(b) || '::text as b) as quine' from (select 'select a || '' from (select '' || quote_literal(a) || b || '', '' || quote_literal(b) || ''::text as b) as quine'''::text as a, '::text as a'::text as b) as quine;
@dominicusin
dominicusin / preprocessor_fun.h
Created September 17, 2018 06:32 — forked from aras-p/preprocessor_fun.h
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,