View track.sh
#!/bin/bash
set -e
LOG=$HOME/.tracklog
touch $LOG
help() {
echo """Usage: track [start|stop|note|list|help] [message]
View btrfs-for-beginners.md

btrfs For Beginners

I wanted to retain the original page contents just in case it went down or changed.

Taken from https://www.howtoforge.com/a-beginners-guide-to-btrfs.

This guide shows how to work with the btrfs file system on Linux. It covers creating and mounting btrfs file systems, resizing btrfs file systems online, adding and removing devices, changing RAID levels, creating subvolumes and

View yt-archive.sh
#!/bin/bash
# Usage:
#
# yt-archive.sh <url to playlists>
#
youtube-dl \
--continue \
--retries 100 \
View example.rs
fn get_id(req: &mut Request) -> Option<Uuid> {
let param = req.extensions.get::<Router>().unwrap().find("id");
match param {
Some(x) => Some(Uuid::parse_str(param.unwrap()).unwrap()),
None => None
}
}
View pcx-format.md
View rbp.c
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <tbx/types.h>
#include <rbp.h>
View ffuuuu.c
struct mat4f
gfx_camera_get_combined(struct gfx_camera* camera)
{
assert(camera);
struct mat4f ortho;
struct mat4f translation;
struct mat4f zoom;
float vw = camera->viewport.width;
View sxhkdrc
# WM {{{
# Focus node
# If no window exist, target monitor/desktop instead
super + k
bspc node -f north || bspc monitor -f north
super + j
bspc node -f south || bspc monitor -f south
super + h
bspc node -f west || bspc monitor -f west || bspc desktop -f prev
View docker.sh
# Remove exited docker containers
docker rm $(docker ps -q -f 'status=exited')
# Remove dangling containers
docker rmi $(docker images -q -f "dangling=true")
# remove dangling volumes
# http://stackoverflow.com/questions/30604846/docker-error-no-space-left-on-device
docker volume rm $(docker volume ls -qf dangling=true)