Skip to content

Instantly share code, notes, and snippets.

View ShalokShalom's full-sized avatar
❄️
Nix on KaOS

ShalokShalom ShalokShalom

❄️
Nix on KaOS
View GitHub Profile
@nsmmrs
nsmmrs / shell_command.rb
Last active September 3, 2022 13:42
A convenience wrapper around `Open3.capture3` for easily running commands, capturing the output, and handling failures.
require "open3"
require "json"
class ShellCommand
attr_reader :line, :stdin, :binmode, :stdout, :stderr, :status
def initialize(line, stdin, binmode, stdout, stderr, status)
@line = line
@stdin = stdin
Planned Architecture
- systemd-packages
- updates
Updates are done automatically for applications who are currently not running.
Packages can be searched, installed and uninstalled like in other stores
Every single INSTALLATION (Firefox, Blender, Emacs) gets installed into its own container, probably a container within a container.
All dependencies could be installed this way like an AppImage; per installed Application.
@gdamjan
gdamjan / README.md
Last active January 11, 2024 09:07
Install a NixOS for a systemd-nspawn container … from podman

Install

Run a nix container with podman, with the container destination mounted as /mnt:

DEST=~/containers/nixos
mkdir -p $DEST/{dev,proc,etc/nixos}

podman run -v $DEST:/mnt -it --rm --cap-add SYS_ADMIN docker.io/nixos/nix:latest
@EIREXE
EIREXE / Generic Apology Text.md
Last active April 3, 2024 13:29
Generic Apology Text: Feel free to use this in case some twitter idiot tries to cancel you over some inconsequential thing.

I'm sure you've all heard about the recent allegations against me, and I knew I couldn't stay silent about this any longer. It's time to finally come clean and explain exactly what happened, and the steps that I'm taking to address the problem.

First of all, let me say that I am sorry. I know I fucked up, and I can't take back what I've done. I'm a human, and sometimes I make mistakes. That's not an excuse, but it is the truth. My heart goes out to the people that may or may not have been harmed by my actions. A number of people - I won't name names - have spoken out against what I've done, and they're right to do so. I deeply regret my actions, and while I don't expect them to forgive me, I do hope that the actions I've taken since to prevent this from happening again will help ease their suffering. I was in the wrong here, and they have every right to be angry at me. Are all of their accusations true? Who's to say. Many of the things they have allegedly claimed I have done may have been true, and many of t

@YuriSizov
YuriSizov / NodeUtils.gd
Last active December 19, 2021 19:50
A sample code for Godot Editor plugin to play an arbitrary scene from GDScript
extends Object
class_name NodeUtils
static func get_child_by_class(node : Node, child_class : String, counter : int = 1) -> Node:
var match_counter = 0
var node_children = node.get_children()
for child in node_children:
if (child.get_class() == child_class):
match_counter += 1
Lanou AJ, Berkow SE, Barnard ND. Calcium, dairy products, and bone health in children and young adults: a reevaluation of the evidence. Pediatrics. 2005;115:736-743.
Feskanich D, Willett WC, Colditz GA. Calcium, vitamin D, milk consumption, and hip fractures: a prospective study among postmenopausal women. Am J Clin Nutr. 2003;77:504-511.
Sonneville KR, Gordon CM, Kocher MS, Pierce LM, Ramappa A, Field AE. Vitamin D, Calcium, and Dairy Intakes and Stress Fractures Among Female Adolescents. Arch Pediatr Adolesc Med. Published ahead of print March 5, 2012.
Lunt M, Masaryk P, Scheidt-Nave C, et al. The Effects of Lifestyle, Dietary Dairy Intake and Diabetes on Bone Density and Vertebral Deformity Prevalence: The EVOS Study. Osteoporos Int. 2001;12:688-698.
Prince R, Devine A, Dick I, et al. The effects of calcium supplementation (milk powder or tablets) and exercise on bone mineral density in postmenopausal women. J Bone Miner Res. 1995;10:1068-1075.
Lloyd T, Beck TJ, Lin HM, et al. Modif
@unclechu
unclechu / algebraic_data_types_experiment.nim
Last active July 13, 2023 06:47
Nim: algebraic data types (Maybe and Either), kinda Eq typeclass instances, kinda functors
type
MaybeKind = enum Just, Nothing
Maybe[T] = object
case kind: MaybeKind
of Just: value: T
of Nothing: discard
EitherKind = enum Left, Right
Either[L, R] = object
case kind: EitherKind
@ShalokShalom
ShalokShalom / Ideenliste
Last active September 15, 2018 12:52
Liste von Ideen für Cosmos
Plasma: Dunkles Theme, Desktopclutter ausschalten und Menüs in den Titlebarbutton.
Audacious: different tags get used for all tracks next to the first one (reproduceable: by drag and drop and sometimes somehow else)
Audacious: Strg + M dont bring the menubar back
Audacious: Create a button to hide/unhide the menubar
Audacious: Dont show error messages if opening the file fails
Audacious: Automatically load the directory when "Search" button gets triggered
Gwenview: Menubar verstecken > Toolbar bearbeiten > Save
Gwenview: Why is there a leave fullscreen button
@ShalokShalom
ShalokShalom / p2p
Last active September 23, 2023 14:55
From Pacman to Habitat
This page aims to pick up Pacman users from where they are and bring them to the world of Habitat:
'General hints'
What is a PKGBUILD at Pacman, is a plan.sh at Habitat.
In general, both use bash scripts and a very simple approach.
Habitat builds all in own chroot environments, which are called studios.
You access such a studio with the command "hab studio enter"