Skip to content

Instantly share code, notes, and snippets.

View metaleap's full-sized avatar

Phil Schumann metaleap

View GitHub Profile
pub fn FromJson(mem: *std.mem.Allocator, src: []u8) !atem.Prog {
var jsonparser = std.json.Parser.init(mem, true);
defer jsonparser.deinit();
var jsontree = try jsonparser.parse(src);
defer jsontree.deinit();
const rootarr = try as(std.json.Value.Array, std.json.Array, jsontree.root);
// defer rootarr.deinit();
return fromJson(mem, rootarr.toSlice());
}
# Configuration for resolvconf(8)
# See resolvconf.conf(5) for details
resolv_conf=/etc/resolv.conf
interface_order="lo wlp2s0"
# If you run a local name server, you should uncomment the below line and
# configure your subscribers configuration files below.
name_servers="149.112.112.112 9.9.9.9 2620:fe::9 2620:fe::fe 2a02:2970:1002::18 46.182.19.48"
# Default configuration file for wpa_supplicant.conf(5).
ctrl_interface=/run/wpa_supplicant
ctrl_interface_group=wheel
eapol_version=1
ap_scan=1
fast_reauth=1
update_config=1
# Add here your networks.
#!/bin/sh
# Default acpi script that takes an entry for all actions
# NOTE: This is a 2.6-centric script. If you use 2.4.x, you'll have to
# modify it to not use /sys
minspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq`
maxspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed"
@metaleap
metaleap / gist:b6f3d93bd35c5e55765c85bfd9807e5f
Created January 31, 2019 15:56
-etc-acpi-events-anything
# Pass all events to our one handler script
event=.*
action=/etc/acpi/handler.sh %e
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export GIT_TERMINAL_PROMPT=1
export NO_AT_BRIDGE=1
export PATH=$PATH:/home/_/b:/usr/local/go/bin:/home/_/c/go/bin:/home/_/.npm-pkgs/bin:/home/_/.local/bin
export GOPATH=/home/_/c/go
export PS1="\[\e[30;43m\]\w\[\e[00m\e[33m\]» \[\e[00m\]"
setfont /usr/share/kbd/consolefonts/ter-v32b.psf.gz
-- Copyright 2007-2018 Mitchell mitchell.att.foicica.com. See LICENSE.
local M = {}
--[[ This comment is for LuaDoc.
---
-- Editing features for Textadept.
-- @field auto_indent (bool)
-- Match the previous line's indentation level after inserting a new line.
-- The default value is `true`.
-- Copyright 2007-2018 Mitchell mitchell.att.foicica.com. See LICENSE.
local M = {}
--[[ This comment is for LuaDoc.
---
-- Editing features for Textadept.
-- @field auto_indent (bool)
-- Match the previous line's indentation level after inserting a new line.
-- The default value is `true`.
-- the suggested patch to textadept/modules/textadept/editing.lua
-- Copyright 2007-2018 Mitchell mitchell.att.foicica.com. See LICENSE.
local M = {}
--[[ This comment is for LuaDoc.
---
-- Editing features for Textadept.
-- @field auto_indent (bool)
module Mini.TCls3 (class Two, dos, class Tri, tres, class Quad, quattro) where
class Zero where
zilch :: Boolean
class One where
uno :: Int -> Number
ein :: Number -> Boolean -> Int
class One <= Two a where