FROM ubuntu:latest
RUN set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends curl xz-utils ca-certificates \
&& rm -rf /var/lib/apt/lists/*
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install nix | |
# https://nixos.org/download.html#nix-install-macos | |
sh <(curl -L https://nixos.org/nix/install) | |
# Enable nix command (flakes already enabled for nix >= 2.4.0) | |
mkdir -p ~/.config/nix | |
echo 'experimental-features = nix-command flakes' >> ~/.config/nix/nix.conf | |
cat ~/.config/nix/nix.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
NAME=${1:-World} | |
echo "Hello, ${NAME}!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash -eou pipefail | |
# https://www.backblaze.com/blog/how-many-bytes-are-in-a-megabyte-really/ | |
size_limit=$((2 * 2**20)) # 2mbs | |
# https://git-scm.com/docs/git-rev-list#Documentation/git-rev-list.txt---disk-usage | |
commit_size=$(git rev-list --disk-usage HEAD^..HEAD) | |
test "$commit_size" -lt "$size_limit" || ( | |
echo "Commit size is too large: $commit_size > $size_limit" | |
echo "Force commit using --no-verify" |
I hereby claim:
- I am expelledboy on github.
- I am expelledboy (https://keybase.io/expelledboy) on keybase.
- I have a public key ASCtq1ZGGCeKJzCsoHVl4I-gwxyI1hoMZzfb8yZgvaoZ4Ao
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# !!WARNING!! | |
# This will DELETE all efforts you have put into configuring nix | |
# Have a look through everything that gets deleted / copied over | |
nix-env -e '.*' | |
rm -rf $HOME/.nix-* | |
rm -rf $HOME/.config/nixpkgs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if !filereadable(expand('~/.vim/plugin/source.vim')) | |
silent !curl -fLo ~/.vim/plugin/source.vim --create-dirs https://raw.githubusercontent.com/suderman/source.vim/master/plugin/source.vim | |
endif | |
" load config from gists :D | |
runtime plugin/source.vim | |
Source https://gist.githubusercontent.com/expelledboy/20d2b1a63d8d44e95016/raw/cbe125eb002ccbca86f74474510219b03ddf590a/backups.vim |