Skip to content

Instantly share code, notes, and snippets.

View zellyn's full-sized avatar

Zellyn Hunter zellyn

View GitHub Profile
@zellyn
zellyn / gist:abcba33aeb1161923753f65780b620e1
Created July 12, 2023 12:33
bundlewrap fails to add a lock
bundlepi🐚 ~/gh/bundlepi main *+ bw run lenovo id
› lenovo uid=0(root) gid=0(root) groups=0(root)
i ╭────────┬─────────────┬────────╮
i │ node │ return code │ time │
i ├────────┼─────────────┼────────┤
i │ lenovo │ 0 │ 0.219s │
i ╰────────┴─────────────┴────────╯
bundlepi🐚 ~/gh/bundlepi main *+ bw -d lock add lenovo
[2023-07-12T08:31:19.257140] [DEBUG] invocation: /Users/zellyn/gh/bundlepi/.hermit/python/bin/bw -d lock add lenovo
[2023-07-12T08:31:19.327744] [DEBUG] node lenovo gets its dummy attribute from: default
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zellyn
zellyn / README.md
Created October 31, 2012 16:01
Even more xkcd-style graphs, with SVG filters
@zellyn
zellyn / clear the scrollback on MacOS
Created March 9, 2017 14:10
My watchloop script, and helper functions
alias csb="clear && printf '\e[3J'"
rm -rf OpenEmulator-zellyn
git clone https://github.com/zellyn/OpenEmulator-OSX.git OpenEmulator-zellyn
cd OpenEmulator-zellyn
git checkout iie
git submodule update --init --recursive
open OpenEmulator.xcodeproj
package main
import (
"crypto/cipher"
"crypto/des"
"encoding/binary"
"fmt"
)
var des3 cipher.Block
* Starting development
git clone git@github.com:zellyn/OpenEmulator-OSX.git
git clone https://github.com/OpenEmulatorProject/OpenEmulator-OSX.git
cd OpenEmulator-OSX
git submodule init
git submodule update
# Cloning into '/Users/zellyn/gh/OpenEmulator-OSX/modules/libemulation'...
# Fetched in submodule path 'modules/libemulation', but it did not contain 51bf1c4aa9fe689bb895a723cf0f1e3f0b8d2741. Direct fetching of that commit failed.
cd modules/libemulation
I cobbled together a (unix-specific, syscall-using) solution based on the
stack overflow answer to the same question in python, and a previous post
on this list. References inline.
Note: this seems to work, but I haven't taken the time to really understand
what I'm doing, and I welcome any suggestions or fixes.
// https://groups.google.com/d/msg/golang-nuts/8o9fxPaeFu8/uSFYfobL5EgJ
// http://go.pastie.org/813153
syntax = "proto2";
// Copyright 2012, Square Inc.
// This file provides the default Sake service exported on all Sake services. Useful for debugging
// remote hosts from the commandline or other tools.
package squareup.sake;
option java_package = "com.squareup.protos.sake";
option java_generic_services = true;
@zellyn
zellyn / shadertoy-distance-field-101.c
Created December 9, 2015 12:26
Playing with distance fields on shadertoy
const int MAX_ITER = 100;
const float MAX_DIST = 20.0;
const float EPSILON = 0.001;
struct RayResult {
vec3 pos;
vec3 normal;
float dist;
float mindist;
float totaldist;