# Usage:
# <url to playlists>
youtube-dl \
--continue \
--retries 100 \
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 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)
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
# 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
docker volume rm $(docker volume ls -qf dangling=true)
View cppunit.h
#pragma once
#include <stdlib.h>
template <typename T>
inline void assert_eq(T const& a, T const& b)
if (a != b) {
View Mingw.dockerfile
FROM nfnty/arch-mini
# This is a dockerfile meant for people who are trying to cross compile their C projects
# into windows binaries to ensure things actually compile correctly
RUN pacman -Syyu --noconfirm
RUN pacman -S --noconfirm git curl jshon expac yajl wget unzip cmake
RUN pacman -S --noconfirm --needed base-devel
RUN useradd -mg root ci