Skip to content

Instantly share code, notes, and snippets.

@GravisZro
GravisZro / CMakeList.txt
Last active May 15, 2024 12:47
cmake file for musl
cmake_minimum_required(VERSION 3.18)
project(musl
LANGUAGES C
VERSION 0.0.1)
# set default cmake build type to Debug (None Debug Release RelWithDebInfo MinSizeRel)
if(NOT CMAKE_BUILD_TYPE AND NOT DEFINED ENV{CMAKE_BUILD_TYPE})
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "default build type")
endif()
#include <sys/time.h>
#include <sys/resource.h>
#include <x86intrin.h>
#include <cassert>
#include <cstdint>
#include <cstdlib>
#include <byteswap.h>
#include <iostream>
board_thickness = 0.75;
box_width = 44;
box_depth = 5.5;
cab_depth = 11.25;
cab_height = 72.5;
cab_spacing = 1;
cab_indent = 2.0625;
@GravisZro
GravisZro / screw.scad
Last active October 16, 2021 00:53
screw.scad
module screw(step, height, reps)
{
for(i = [0 : step : 360 * reps])
{
translate([0, 0, i/360 * height])
rotate([0, 0, i])
cube([1, height, height/2], false);
}
}
@GravisZro
GravisZro / user.js
Last active October 15, 2021 14:38 — forked from AetherEternity/user.js
Minimalistic Firefox
// Mozilla User Preferences
// To change a preference value, you can either:
// - modify it via the UI (e.g. via about:config in the browser); or
// - set it within a user.js file in your profile (create it if it doesn't exist).
//
// Profile folder location on different systems:
// Windows: C:\Users\<username>\AppData\Roaming\Mozilla\Firefox\Profiles\xxxxxxxx.default
// Mac OS X: Users/<username>/Library/Application Support/Firefox/Profiles/xxxxxxxx.default
// Linux: /home/<username>/.mozilla/firefox/xxxxxxxx.default