Skip to content

Instantly share code, notes, and snippets.

View kivikakk's full-sized avatar
🐈‍⬛
another week, another flare-up

Asherah Connor kivikakk

🐈‍⬛
another week, another flare-up
View GitHub Profile

Keybase proof

I hereby claim:

  • I am kivikakk on github.
  • I am kivitalya (https://keybase.io/kivitalya) on keybase.
  • I have a public key ASBR9HJ9F8OLjXjfV_ht4VlGJaDc-sQbMa-0GUeLSS_InQo

To claim this, I am signing this object:

function ZZZ -d "multi-host rebuilder"
# Multi-host Nix rebuilder.
# Force a rebuild on targets even if a new version wasn't pulled.
set -f force 0
if test "$argv[1]" = -f
set -f force 1
set -e argv[1]
end
function vyxnix -d "vyxos nix3 launcher"
# Principal nix3 launcher.
#
# "develop" and "shell" are treated specially:
# vyxnix develop -> nix develop --command fish
# vyxnix develop x y z -> nix develop x y z --command fish
# vyxnix develop x -- y z -> nix develop x --command fish -c "y z"
# vyxnix develop x --command y z -> nix develop x --command y z
# "d/s" below refers to these cases.
#
a: 8 bit address
i: 3 bit input address
o: 3 bit output address
v: 1 bit value
@kivikakk
kivikakk / (:.rs
Last active March 24, 2023 08:51
pub fn rtrim_slice_a(i: &[u8]) -> &[u8] {
let mut len = i.len();
while len > 0 && isspace(i[len - 1]) {
len -= 1;
}
&i[..len]
}
pub fn rtrim_slice_b(mut i: &[u8]) -> &[u8] {
let mut len = i.len();

Dawnscape - Xacla

(lyrics sampled from Neverland by Central Seven)

Don't make a sound all around
Silence is everywhere
Fills in the clouds

There is a way across the time
Future is coming up

tapioca ~/C/s/jekyll $ bundle exec jekyll new --force --skip-bundle .
bundle install
New jekyll site installed in /Users/kameliya/Code/scratch/jekyll.
Bundle install skipped.
The dependency tzinfo (~> 1.2) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32 java`.
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32 java`.
The dependency wdm (~> 0.1.1) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x8
; Function Attrs: nobuiltin nounwind sspstrong
define internal fastcc i16 @main.0(%std.builtin.StackTrace* nonnull %0) unnamed_addr #1 !dbg !1611 {
Entry:
%StackGuardSlot = alloca i8*, align 8
%1 = call i8* @llvm.stackguard()
call void @llvm.stackprotector(i8* %1, i8** %StackGuardSlot)
%result = alloca i16, align 2
%sub_var = alloca %S, align 8
%2 = alloca %S, align 8
call void @llvm.dbg.declare(metadata %S* bitcast ({ { { i32, [4 x i8] }, i1, [7 x i8] } }* @59 to %S*), metadata !1615, metadata !DIExpression()), !dbg
tapioca ~/C/s/z/se (master|…) $ ~/Code/zig/build/bin/zig build-exe example.zig
tapioca ~/C/s/z/se (master|…) $ lldb example
(lldb) target create "example"
Current executable set to '/Users/kameliya/Code/snep/zy/se/example' (x86_64).
(lldb) run
Process 61165 launched: '/Users/kameliya/Code/snep/zy/se/example' (x86_64)
hi
hi
hi
Process 61165 stopped
fn cpuid(leaf_id: u32) [16]u8 {
var result: [16]u8 = undefined;
asm volatile (
\\ cpuid
\\ movl %%eax, 0(%[leaf_ptr])
\\ movl %%ebx, 4(%[leaf_ptr])
\\ movl %%ecx, 8(%[leaf_ptr])
\\ movl %%edx, 12(%[leaf_ptr])
: