Skip to content

Instantly share code, notes, and snippets.

@Le0xFF
Le0xFF / 0_NixOS_Install.md
Last active April 15, 2024 10:44
NixOS installation with: Full Disk Encryption using LUKS2, BTRFS filesystem, systemd-boot

First attempt at NixOS installation and configuration.
Ssetup is similar to the gist where Void Linux was installed.

With NixOS the following features are listed:

  • BTRFS filesystem
  • Full Disk Encryption
  • SystemD-boot as bootloader

Process

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
submenu 'Rescue ISOs' {
# Separator
menuentry '============================== GNU/Linux ISOs ==============================' { echo "" }
# Debian 11.4.0 GNOME
# Requires: ffmpeg, tageditor, graphicsmagick
# Original message:
# https://discord.com/channels/752715224716411001/752715584973832213/989321238910476338
# Windows version
mkdir backup
For %%# in (*.mp3) Do (
echo "Extracting Artwork..."
REM Extracts the album artwort to "$f".jpg (baseline)
@Le0xFF
Le0xFF / VoidLinux_Install.md
Last active March 30, 2023 03:58 — forked from tobi-wan-kenobi/VOID-INSTALL.md
Void Linux installation (on NVMe with trim enabled, with BTRFS filesystem, with Full Disk Encryption using LUKS, with swapfile)

Void Linux installation (on NVMe with trim enabled, with BTRFS filesystem, with Full Disk Encryption using LUKS, with swapfile)

This gist could be outdated, so if you prefer an automated script based on this gist, check out my github repo VoidLinuxInstaller!


Features

This guide explains how to set up Void Linux:

  • On an NVMe disk, enabling trim;
  • Using Full Disk Encryption including /boot, with LUKS;
@Le0xFF
Le0xFF / SimplerConvertToICNS.src
Last active April 29, 2023 16:08
Simpler script to convert .PNG to .ICNS in macOS
# SOURCE
# https://stackoverflow.com/questions/12306223/how-to-manually-create-icns-files-using-iconutil/20703594#20703594
# BETTER VERSIONS
# https://github.com/retifrav/generate-iconset
# https://gist.github.com/djhaskin987/110e324f0bda182b6db34241da0182a6
# https://gist.github.com/djhaskin987/110e324f0bda182b6db34241da0182a6
# https://gist.github.com/yoannmoinet/051d92d132218dc3ad801f74f6f1536c
# USAGE
@Le0xFF
Le0xFF / ConvertToICNS.sh
Last active October 12, 2021 17:19
Convert .PNG to .ICNS in macOS
#!/bin/bash
# SOURCE
# https://apple.stackexchange.com/questions/388246/efi-partition-change-name-and-logo/388287#388287
# USAGE (image as .PNG, 1024x1024 px)
# ./ConvertToICNS.sh ImageToConvert.png
if [[ $0 != "$BASH_SOURCE" ]]; then
bash "$BASH_SOURCE" "$@"
@Le0xFF
Le0xFF / Fusion360VoidLinux.sh
Last active December 24, 2023 05:36
Fusion360 working in Void Linux
# Latest update: 2021/09/06
# Wine version: 6.16
#
# How to make Fusion360 work under Void Linux with latest Wine available directly from xbps.
#
# Resources heavily taken from:
# https://github.com/cryinkfly/Fusion-360---Linux-Wine-Version-
# ========================
# OpenGL as graphic driver