Skip to content

Instantly share code, notes, and snippets.

View demizer's full-sized avatar

Jesus Alvarez demizer

View GitHub Profile
@demizer
demizer / jeebus-hands-down-gold-svalboard.vil
Last active October 21, 2023 18:37
Jeebus Svalboard Hands Down Gold Layout (Production)
{
"version": 1,
"uid": 5199957870438586000,
"layout": [
[
[
"KC_ESCAPE",
"TD(3)",
"MO(2)",
"TD(2)",
@demizer
demizer / Skeletyl-Dactyl-36-Key-Base-Layer.kbd.json
Last active December 27, 2021 10:18
Skeletyl Dactyl 36 Key Base Layer
[
{
"name": "Skeletyl Dactyl 36 Key Base Layer",
"switchMount": "cherry",
"switchBrand": "cherry",
"pcb": true
},
[
{
"x": 2.75,
@demizer
demizer / voron_2.4_300_kvp_abs_superslicer_config.ini
Created December 2, 2021 17:39
Voron 2.4 300 with KVP Abs SuperSlicer Config
# generated by SuperSlicer 2.3.57 on 2021-12-01 at 21:58:38 UTC
[print:0.2mm 0.4nozzle - Default]
allow_empty_layers = 0
avoid_crossing_not_first_layer = 1
avoid_crossing_perimeters = 0
avoid_crossing_perimeters_max_detour = 0
bottom_fill_pattern = monotonicgapfill
bottom_solid_layers = 5
bottom_solid_min_thickness = 0.4
@demizer
demizer / example.zig
Created May 25, 2020 17:59
json.stringify on complex struct fails with "lib/zig/std/json.zig:2571:17: error: Unable to stringify type 'fn(*std.mem.Allocator, []u8, u29, usize, u29) std.mem.Error![]u8'"
const std = @import("std");
const mem = std.mem;
const json = std.json;
pub const Node = struct {
ID: ID,
Value: ?[]const u8,
Children: std.ArrayList(Node),
@demizer
demizer / test_16_colors.sh
Created September 14, 2014 19:11
A small script to test 16 color terminal support
#!/bin/bash
color_scheme() {
#!/bin/bash
# Original: http://frexx.de/xterm-256-notes/
# http://frexx.de/xterm-256-notes/data/colortable16.sh
# Modified by Aaron Griffin
# and further by Kazuo Teramoto
FGNAMES=(' black ' ' red ' ' green ' ' yellow' ' blue ' 'magenta' ' cyan ' ' white ')
BGNAMES=('DFT' 'BLK' 'RED' 'GRN' 'YEL' 'BLU' 'MAG' 'CYN' 'WHT')
@demizer
demizer / output.txt
Last active August 29, 2015 14:02
My hostid output
[root@lithium]$ rm -rf /etc/hostid
removed '/etc/hostid'
[root@lithium]$ hostid
007f0100
[root@lithium]$ cp /home/demizer/projects/arch/archzfs/spl-utils-git/spl-utils.hostid /etc/hostid
'/home/demizer/projects/arch/archzfs/spl-utils-git/spl-utils.hostid' -> '/etc/hostid'
[root@lithium]$ od -A n -t x1 /etc/hostid
ff ff ff ff
[root@lithium]$ ./test.sh
[root@lithium]$ od -A n -t x1 /etc/hostid
@demizer
demizer / go_combining_characters.go
Last active August 29, 2015 14:01
A basic example in working with combining characters in Go I needed to get the display length of a line containing combining characters. Combining characters have a letter rune with a diacritic rune that are combined to form a single display character.
package main
// A basic example in working with combining characters in Go I needed to get the display length of
// a line containing combining characters. Combining characters have a letter rune with a diacritic
// rune that are combined to form a single display character.
//
// More information:
//
// http://www.alanwood.net/unicode/combining_diacritical_marks.html
// http://en.wikipedia.org/wiki/Diacritic