Skip to content

Instantly share code, notes, and snippets.

View tiborpilz's full-sized avatar
💭
Takatakataka

Tibor Pilz tiborpilz

💭
Takatakataka
  • IU International University of Applied Sciences
  • Berlin
View GitHub Profile
#!/usr/bin/env bash
# Author: Tibor Pilz
# Partitions a given drive for use with NixOS.
set -eu
set -o pipefail
DRIVE=$1
curl https://gist.githubusercontent.com/tiborpilz/5c991e9cc01cd6c9c17ba1819cdbef38/raw/6e8e5c8471f453a9aff04e88768fbe22bd568fec/install.sh | bash
@tiborpilz
tiborpilz / install.sh
Last active September 20, 2019 01:32
#!/bin/bash
export DEBIAN_FRONTEND='noninteractive'
systemctl stop pve-ha-lrm
systemctl stop pve-ha-crm
echo "deb http://download.proxmox.com/debian/corosync-3/ stretch main" > /etc/apt/sources.list.d/corosync3.list
systemctl start pve-ha-lrm
systemctl start pve-ha-crm
sed -i 's/stretch/buster/g' /etc/apt/sources.list
sed -i -e 's/stretch/buster/g' /etc/apt/sources.list.d/proxmox.list
echo "deb http://download.proxmox.com/debian/ceph-luminous buster main" > /etc/apt/sources.list.d/ceph.list
@tiborpilz
tiborpilz / aether_remix.markdown
Created November 27, 2018 13:28
æther_remix
const unblur = (target = 'img', length = 0.5) => {
const getOffset = (elmnt) => {
const box = elmnt.getBoundingClientRect();
const {
clientTop,
clientLeft
} = document.documentElement;
return {
top: box.top + window.pageYOffset - clientTop,
left: box.left + window.pageXOffset - clientLeft