Skip to content

Instantly share code, notes, and snippets.

View sirhopcount's full-sized avatar

Adrian van Dongen sirhopcount

View GitHub Profile
@michenriksen
michenriksen / README.md
Created November 4, 2023 15:35
💅 Get italic text and curly underlines in macOS + Alacritty + tmux + Neovim

Italic text and other styles in Alacritty, tmux, and Neovim on macOS

This is a quick guide to get properly set up with italic text, curly underlines and other advanced styles in Alacritty, tmux, and Neovim on macOS. It assumes you're using the latest versions of all three programs.



@voidus
voidus / flake.nix
Created April 22, 2023 18:35
Build a cloudinit image in nixos
{
description = "A nixos cloudinit base image without nixos-infect";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
@jacobweinstock
jacobweinstock / 1-walkthrough.md
Last active April 11, 2024 01:02
Tinkerbell machine provisioning demo

Walk through demo

Demo of installing Ubuntu 22.04 on an HP EliteDesk.

Install the Tinkerbell stack

  1. Satisfy Stack installation prerequisites.
    • k3d cluster create --network host --no-lb --k3s-arg "--disable=traefik,servicelb" --k3s-arg "--kube-apiserver-arg=feature-gates=MixedProtocolLBService=true" --host-pid-mode
    • Command pulled from the sandbox repo.
  2. Clone the Tinkerbell chart repo.
@GentlemanRevvnar
GentlemanRevvnar / 1.18.2-custom_structures_with_jigsaws.md
Last active February 12, 2024 02:09
Simple guide for using jigsaws in custom structures in 1.18.2

Custom data pack structures with jigsaws in 1.18.2

(Last updated: 1.18.2)

This is technically a shameless rip/edit of misode's guide that shows the traditional use of newly implemented custom structure system. I myself want to tackle the jigsaw aspect a bit, hence i'm making my own guice based on his. I will show how to create a data pack that adds custom structures to the world that also utilize jigsaw blocks. So treat this as a basic jigsaw guide in world generation. There is also a data pack download of this first example.

Always leave the world and rejoin to apply the new changes! Because traditional /reload or /datapack disable & enable do not refresh changes in worldgen files!

EXAMPLE 1 - Creating a structure that uses jigsaws

Let's make a simple house with a basement and a road that will lead away from the h

Custom data pack structures in 1.18.2

This guide will showcase how to create a data pack that adds a custom structure to the world. There is also a data pack download of this complete example.

Always leave the world and rejoin to apply the new changes!

⚠️ This guide has moved ⚠️

Updates for both 1.18.2 and 1.19 can be found at https://misode.github.io/guides/adding-custom-structures/

Pack.mcmeta

################################################################################
# █▄░█ █ ▀▄▀ █▀█ █▀ ▄▄ █░█ █▀█
# █░▀█ █ █░█ █▄█ ▄█ ░░ █▄█ █▀▀
#
# 🚀 This NixOS installation brought to you by nixos-up! 🚀
# Please consider supporting the project (https://github.com/samuela/nixos-up)
# and the NixOS Foundation (https://opencollective.com/nixos)!
################################################################################
# Edit this configuration file to define what should be installed on
@golles
golles / 1. Mechanische ventilatie in Home Assistant.md
Last active April 14, 2023 07:47
Mechanische ventilatie in Home Assistant

Allereerst bedankt @eelcohn voor je prachtige project --> https://github.com/eelcohn/nRF905-API

Als je packages gebruikt, zou het makkelijk zijn om dit te kopieren naar jouw HA. Anders zou je de elementen in zehnder.yaml handmatig moeten kopieren naar je configuration.yaml.

Hoe werkt het?

Een rest sensor (sensor.mechanische_ventilatie_status) haalt de data van de api en een fan template maakt er vervolgens een fan entity van (fan.mechanische_ventilatie). Op deze manier krijg je out of the box een speed list in lovelace en bijbehorende services.

De individuele rest commands worden gewrapt door scripts, dit zodat de host uit secrets kan komen, helaas is er geen manier om een secret in een template toe te passen. Fan templates moeten verplicht een turn_on en turn_off hebben, dit heeft de mechanische ventilatie niet, nu roepen deze acties een dummy script ventilation_turn_on_off_dummy aan die niks doet (als ieman

@Silthus
Silthus / docker-compose.backup.yml
Created November 26, 2020 10:12
mc-restic-compose-backup example
version: '3.7'
services:
backup:
image: silthus/mc-restic-compose-backup
env_file:
- backup.env
- backup.secrets.env
- sql.secrets.env
volumes:
# We need to communicate with docker
@Silthus
Silthus / rcon.compose.yml
Last active May 12, 2023 12:24
Expose secured websites from docker containers with traefik
version: '3.7'
services:
rcon:
image: itzg/rcon
user: ${CURRENT_USER}
environment:
RWA_WEBSOCKET_URL_SSL: wss://wss.rcon.your-url.com
RWA_WEBSOCKET_URL: ws://ws.rcon.your-url.com
env_file:
- rcon.env
@hadilq
hadilq / NixOS-guide.md
Last active May 10, 2024 21:54
Encypted LUKS LVM Btrfs Root with Opt-in State on NixOS

I'm trying to follow this guide to install NixOS using Btrfs, LUKS and LVM. The main usage of this page for me will be remembering what I did! My laptop is ASUS ROG GL553VD.

Just downloaded Plasma Desktop, 64bit and create a bootable Flash Drive. Then boot up to NixOS Live CD. Using gparted to create two partitions, One 200MB vfat EFI partittion and the rest of SSD drive will be an encrypted partition.

DISK=/dev/nvme0n1