Skip to content

Instantly share code, notes, and snippets.

View Nuc1eoN's full-sized avatar
🏠
Working from home

Nuc1eoN

🏠
Working from home
View GitHub Profile
@Nuc1eoN
Nuc1eoN / odin.kak
Last active October 4, 2022 23:49
WIP syntax highlighting for odin lang on Kakoune text editor. Based mainly off kakrc.kak. Not perfect; may need clean ups.
# http://odinoune.org
# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
# Detection
# ‾‾‾‾‾‾‾‾‾
hook global BufCreate .*[.](odin) %{
set-option buffer filetype odin
}
@Nuc1eoN
Nuc1eoN / gist:909b302956ab7333149deed5fe5377e3
Last active October 31, 2021 21:10
ll --group-directories-first /System/Settings/
ll --group-directories-first /System/Settings/
total 216
drwxr-xr-x 12 root root 4096 Oct 31 20:43 .
drwxr-xr-x 9 root root 4096 Feb 5 2021 ..
lrwxrwxrwx 1 root root 29 Feb 26 2020 acpi -> /Programs/Acpid/Settings/acpi
lrwxrwxrwx 1 root root 36 Feb 9 2021 asciidoc -> /Programs/AsciiDoc/Settings/asciidoc
lrwxrwxrwx 1 root root 30 Feb 26 2020 avahi -> /Programs/Avahi/Settings/avahi
drwxr-xr-x 2 root root 4096 May 8 2020 bash_completion.d
lrwxrwxrwx 1 root root 42 Feb 5 2021 BootScripts -> /Programs/BootScripts/Settings/BootScripts
lrwxrwxrwx 1 root root 34 May 24 2020 Compile -> /Programs/Compile/Settings/Compile
@Nuc1eoN
Nuc1eoN / gist:d0cba3f07b9d02da67f9832d292cdb55
Created October 7, 2021 22:10
strace lokinet-bootstrap
execve("/usr/bin/lokinet-bootstrap", ["lokinet-bootstrap"], [/* 74 vars */]) = 0
brk(0) = 0xfda000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/System/Settings/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=90745, ...}) = 0
mmap(NULL, 90745, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb65aca5000
close(3) = 0
openat(AT_FDCWD, "/lib/libssl.so.1.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=669096, ...}) = 0
@Nuc1eoN
Nuc1eoN / GettingStarted.md
Last active August 12, 2021 10:30
GoboLinux Community Guide

GoboLinux 017, in its current iteration, is mainly a source-based distribution. That means you will compile most of your packages with the help of so called "Recipes".

The following sections will help you getting started.

Installing GoboLinux 017

Installing GoboLinux on a bare metal system should be as simple as fetching the latest ISO, burning/flashing it onto your favorite installation medium (e.g. using balenaEtcher), startx and following the installation wizard. Just be aware that booting from a GPT/UEFI system is currently broken, and thus a legacy MBR setup is advised.

However most people may want to install GoboLinux in a virtual machine setup first. If you are one of those people, follow these instructions.

@Nuc1eoN
Nuc1eoN / liveGobo
Last active February 16, 2022 03:02
GoboLinux Qemu Setup
#!/bin/sh
## Runs the GoboLinux liveCD in a performant Qemu environment
#
# Make sure to check out https://wiki.gobolinux.org/Overview/Installing-Gobolinux/GoboLinux-017-Known-Issues-and-Fixes/
# Prepare disk image with 20GB -> `qemu-img create -f raw GOBO 20G`
#
# Note: During installation choose an MSDOS partition table! GPT will fail to boot!
qemu-system-x86_64 \
-cdrom GoboLinux-017-x86_64.iso \
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 7 1700 Eight-Core Processor
CPU Family: 0x17
FROM debian:stretch
LABEL maintainer="nucrap@hotmail.de"
# Install Dependencies, clean cache, install locale to prevent errors and create new home directory
# While srcds_run uses bash specific extensions, it is stupidly configured to run from /bin/sh. That's why /bin/sh is recommended to point to bash at this point.
RUN apt-get update && apt-get install --no-install-recommends -y \
lib32stdc++6 \
lib32gcc1 \
ca-certificates \
locales \
@Nuc1eoN
Nuc1eoN / builder_output
Last active January 27, 2019 00:12
Without using buildkit, it builds just fine
# docker build .
Sending build context to Docker daemon 7.168kB
Step 1/16 : FROM debian:stretch
---> a0bd3e1c8f9e
Step 2/16 : LABEL maintainer="nucrap@hotmail.de"
---> Using cache
---> f9aebb90fe4b
Step 3/16 : RUN apt-get update && apt-get install --no-install-recommends -y lib32stdc++6 lib32gcc1 ca-certificates locales && rm -rf /var/lib/apt/lists/* && sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen && useradd -m steam
---> Using cache
---> e94e0a114109
@Nuc1eoN
Nuc1eoN / buildkit_output
Last active January 27, 2019 00:16
builkit fail
# DOCKER_BUILDKIT=1 docker build .
[+] Building 319.3s (12/13)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.55kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B
@Nuc1eoN
Nuc1eoN / buildkit
Last active January 27, 2019 00:17
permission error
=> [4/8] RUN mkdir /home/steam/steamcmd 0.4s
=> [5/8] ADD --chown=steam https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz steamcmd_linux.tar.gz 0.2s
=> ERROR [6/8] RUN tar -zxf steamcmd_linux.tar.gz && rm steamcmd_linux.tar.gz 0.3s
------
> [6/8] RUN tar -zxf steamcmd_linux.tar.gz && rm steamcmd_linux.tar.gz:
#11 0.227 tar (child): steamcmd_linux.tar.gz: Cannot open: Permission denied
#11 0.227 tar (child): Error is not recoverable: exiting now
#11 0.228 tar: Child returned status 2
#11 0.228 tar: Error is not recoverable: exiting now
---