Skip to content

Instantly share code, notes, and snippets.

View nektro's full-sized avatar
🌻
if you know, you know

Meghan Denny nektro

🌻
if you know, you know
View GitHub Profile
@nektro
nektro / asm.s
Last active October 28, 2022 17:59
32bit x86 Linux hello world exploration
.text
.intel_syntax noprefix
.file "test"
.globl _start
.type _start,@function
_start:
push ebp
push ebx
push edi
push esi
const std = @import("std");
const builtin = @import("builtin");
pub fn main() !void {
try dbg("{d}", 24);
}
fn dbg(comptime fmt: []const u8, x: anytype) !void {
comptime std.debug.assert(builtin.mode == .Debug);
const std = @import("std");
extern fn sigaltstack(ss: *const stack_t, oss: *stack_t) c_int;
const stack_t = extern struct {
sp: ?*anyopaque,
flags: c_int,
size: usize,
};
package main
import (
"bytes"
"fmt"
"golang.org/x/crypto/ssh"
)
func main() {
@nektro
nektro / main.zig
Created April 26, 2022 21:36
x11 opengl demo
const std = @import("std");
const c = @cImport({
@cInclude("X11/Xlib.h");
@cInclude("X11/Xutil.h");
@cInclude("X11/keysymdef.h");
@cInclude("GL/gl.h");
@cInclude("GL/glx.h");
});
.zig-cache
zig-out
.zigmod
deps.zig
files.zig
zigmod.lock
@nektro
nektro / Progress.zig
Last active February 24, 2022 02:16
A single line progress bar
const std = @import("std");
const string = []const u8;
const Progress = @This();
const ansi = @import("ansi");
const range = @import("range").range;
const extras = @import("extras");
total: usize,
current: usize = 0,
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJL/Tmw2oZFIZVoW1CBq5RQWOD9ntGxXWCOLksaiGAWy hello+limitless@nektro.net

Any community that gets its laughs by pretending to be idiots will eventually be flooded by actual idiots who mistakenly believe that they're in good company.

Poe's law is an adage of Internet culture stating that, without a clear indicator of the author's intent, it is impossible to create a parody of extreme views such that it cannot be mistaken by some readers for a sincere expression of the views being parodied.

If you come in last place it doesn't mean you're bad, it just means everyone else is better than you.

Peace is not the absence of conflict, but the ability to deal with it in a peaceful way.

Having knowledge and not doing anything with it is just the same as having no knowledge.

#!/usr/bin/env bash
set -e
for number in $(gh pr list --search "status:failure -is:draft" --json 'number' | jq '.[].number')
do
echo '## Checking out PR' $number
gh pr checkout $number
echo