Skip to content

Instantly share code, notes, and snippets.

View leaanthony's full-sized avatar
😂

Lea Anthony leaanthony

😂
  • Sydney, Australia
View GitHub Profile
@leaanthony
leaanthony / calloc.go
Created October 21, 2021 21:29
Simple C String allocations manager for Go.
package yourpackage
/*
#include <stdlib.h>
*/
import "C"
import "unsafe"
// Calloc handles alloc/dealloc of C data
type Calloc struct {
@leaanthony
leaanthony / gist:35b72537a39b53c6e8c85c0a4615688e
Created May 26, 2021 07:27
Line numbers for Docusaurus 2
// Based on https://gist.github.com/uditalias/3969a20ef759bf3a8757499429b30063
// Reduces number gutter and adds border
/* Edit the `src/css/custom.css` file and add the following styles */
/*
* Reset the line-number counter for each .prism-code scope
*/
.prism-code {
@leaanthony
leaanthony / gist:ed6ec2d9f3dcfbf3056cb02bda7570ce
Last active April 13, 2021 10:59
xbar acid test first draft
#!/usr/bin/env bash
echo 'xbar acid test | font="AvenirNext-Italic" size=14 color="yellow" image=iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAApVBMVEUAAAD7+/sAAAD5+flnZ2f8/Pzp6emtra3////////////////////v7+9fYGFcXF2vr6+urq75+fl5eXn////////////z8/P19fXv7+8AAAAxMjUkJSgAAAD///8rLDAvMDQuLzMmJyopKi44OTzU1NQ0NTj7+/zX19ednZ09PkF7e3wiIyYbHCBFRUgMDxbh4eHc3NwAAAoWGB3m5ubZ2dnOzs+zkOP3AAAAG3RSTlMABPxE/GwpD/rc0LRRTP7+/Px4/uTUvH59YAlHu2tSAAABZklEQVQoz2WSh27DMAxEG9lxs/eWqGVLHvHIaPv/n1ZakZEaPVuAiAccjhQ/vAaDwfvSU1tGwWwWRK7okc/hdDxK09F4Ovz0zJNgwrP8GobXPOOTwDFPNtwsCIGmAUIWhm8c82RFqqJIUEVRkVXH0A1JnUjqJJMaGXq6BBNDaorEM1oTM8Es+A354pmolknZEpU8F3zo0DQjiVCUqu6IhGTT1jEa54gotVJaKpWlFFE+bnsPRlewkgHEMYAWAKW0cB0FiGZpCFY0dwOQ3Sv4uWlmIUxnHYqb2zfA/VaB+fLIG1JVATCGZhoelaLesI1htYg7aaGti/EKT5kWQrsTC80ohvctLx+K/ZF6LNuW/aAKVmrmpEtW+EHhP+drUojyhUpRkDWfd6M/IQOJExI4SkByej/YkZslIYAiZGn4sSPOc89Nvg3DLS7AHt36a3PY8TTlu4Nbm/6yXaL5+TyPLq7oscG/2y/Pri5HTorHMQAAAABJRU5ErkJggg=='
echo "---"
echo "\033[0;38;2;255;0;0mA\033[0;38;2;255;127;0mN\033[0;38;2;255;255
@leaanthony
leaanthony / setup.md
Last active October 5, 2019 22:51
Setup instructions for Metabox Alpha-X NH58RHQ

Metabox

Setup instructions for Metabox Alpha-X NH58RHQ.

Name Value
Model Metabox Alpha-X NH58RHQ
O/S Pop!_OS 19.04