A newbie friendly guide to configuring Vim in NixOS
Create the following file struture in /etc/nixos
/etc/nixos
|-- apps
|-- vim
|-- default.nix
|-- vimPlugins.nix
#!/usr/bin/env bash | |
IFS=":" | |
rg --json "if \(builtin.zig_backend == .stage2_arm\) return error.SkipZigTest;" test/behavior/ | jq -r 'select(.type == "match") | "\(.data.path.text):\(.data.line_number)"' | while read -r file line; do | |
cp "$file" "$file.bak" | |
sed -i "$line s/^/\/\//" "$file" | |
if "$PWD/zig-out/bin/zig" test -target arm-linux-gnu test/behavior.zig; then | |
rm "$file.bak" |
This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/
the command zig run my_code.zig
will compile and immediately run your Zig
program. Each of these cells contains a zig program that you can try to run
(some of them contain compile-time errors that you can comment out to play
with)
commit c74f64f05764f8bb25d85d8a88cc7c4647be60cc | |
Author: Frank Denis <github@pureftpd.org> | |
Date: Fri Oct 16 14:57:36 2020 +0200 | |
Backport libxml2 fix from master | |
diff --git a/llvm/cmake/modules/GetLibraryName.cmake b/llvm/cmake/modules/GetLibraryName.cmake | |
new file mode 100644 | |
index 00000000000..518fa4cf594 | |
--- /dev/null |
mkdir test | |
cd test | |
git clone -b wip/dueno/wasm-test https://github.com/ueno/enarx.git | |
git clone -b wip/dueno/wasm-test --recurse-submodules https://github.com/ueno/wasmtime.git | |
cd enarx | |
cargo make | |
./enarx-keep-sgx/target/debug/enarx-keep-sgx \ | |
--shim enarx-keep-sgx-shim/target/x86_64-unknown-linux-musl/debug/enarx-keep-sgx-shim \ | |
--code keep-runtime/target/x86_64-unknown-linux-musl/debug/keep-runtime |
This work is released under a Creative Commons Attribution-NoDerivatives 4.0 International License.
"OpenPGP" refers to the OpenPGP protocol, in much the same way that HTML refers to the protocol that specifies how to write a web page. "GnuPG", "SequoiaPGP", "OpenPGP.js", and others are implementations of the OpenPGP protocol in the same way that Mozilla Firefox, Google Chromium, and Microsoft Edge refer to software packages that process HTML data.
import lldb | |
import shlex | |
FLAGS = [ | |
['CF', 'Carry Flag'], | |
[None, 'Reserved'], | |
['PF', 'Parity Flag'], | |
[None, 'Reserved'], | |
['AF', 'Adjust Flag'], | |
[None, 'Reserved'], |
→ Great great documentation about all this (so much better): https://github.com/drduh/YubiKey-Guide
Documentation for PIV: https://github.com/Yubico/yubikey-piv-manager/tree/master/doc
To manage the certificates: https://www.yubico.com/support/knowledge-base/categories/articles/unpair-yubikey-piv-login-macos-sierra/
# Defaults / Configuration options for homebridge | |
# The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others) | |
HOMEBRIDGE_OPTS=-U /var/lib/homebridge | |
# If you uncomment the following line, homebridge will log more | |
# You can display this via systemd's journalctl: journalctl -f -u homebridge | |
# DEBUG=* |