Skip to content

Instantly share code, notes, and snippets.

View RafaelPalomar's full-sized avatar

Rafael Palomar RafaelPalomar

  • The Intervention Centre. Oslo University Hospital
  • Oslo
View GitHub Profile
@jcfr
jcfr / github_create_resources_release.sh
Last active June 28, 2025 14:45
Convenient shell script to create an orphan release useful for hosting binary assets (e.g images) used in documentation
# SPDX-FileCopyrightText: 2023 Jean-Christophe Fillion-Robin <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause
#-----------------------------------------------------------------------------
tag_name=collection-archives
release_name=CollectionArchives
git checkout --orphan=${tag_name}
git rm -rf .
#-----------------------------------------------------------------------------
@renich
renich / 00-gentoo-installation-partitioning.bash
Last active June 3, 2025 05:27
Install Gentoo on BtrFS subvolumes + UEFI
#!/usr/bin/env bash
# WARNING!!
# This will obliterate all the data in your partition!! (not actually true, but act as if it was)
# Do NOT execute this script if you don't fully understand it!
# a few vars
amount_of_swap=$( free --si -g | grep Mem: | gawk '{ print $2 + 1}' )
# create directories