Skip to content

Instantly share code, notes, and snippets.

View sarcasticadmin's full-sized avatar

Robert James Hernandez sarcasticadmin

View GitHub Profile
@sarcasticadmin
sarcasticadmin / enable-serial.sh
Created October 30, 2023 16:22
ubuntu 22.04 enable serial tty
# ref: https://www.rogerirwin.co.nz/linux-open-source/enabling-a-serial-port-console/
# assuming your serial device is ttyS1
systemctl enable [email protected]
systemctl start [email protected]
@sarcasticadmin
sarcasticadmin / shell.nix
Last active July 18, 2024 21:13
leveraging python3 gtk and webkit with nix
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
mkShell {
# Nixpkgs in include in shell
buildInputs = [
gobject-introspection
python3Packages.pygobject3
@sarcasticadmin
sarcasticadmin / oxide-rs-cli-oxide.sh
Created October 17, 2024 06:48
Oxide CLI (oxide-rs) nixpkg build test notes
# Test oxide-rs cli built via nixpkgs
./result/bin/oxide version
Oxide CLI 0.7.0+20240821.0
Built from commit: 2fd0e64a68cf8abe06dcca97dae2661d90efabe5 (dirty)
Oxide API: 20240821.0
# Login to rack silo, copy url into the browser
# Note: --no-browser seemed to be the only way I could get the one code to be displayed. Without out it nothing would output (--debug didnt help either)
./result/bin/oxide auth login --host https://<HOSTURL> --no-browser
@sarcasticadmin
sarcasticadmin / oxide-rs-hashmismatch.diff
Created May 7, 2025 23:00
oxide-rs-hashmismatch.diff
This file has been truncated, but you can view the full file.
--- /nix/store/l108shc3lqvd1wgm7ll5f4jql80js4vb-source
+++ /nix/store/z983w8n2bgf1sp1kdhqgc8yk5akjxb76-source
│ --- /nix/store/l108shc3lqvd1wgm7ll5f4jql80js4vb-source/.git
├── +++ /nix/store/z983w8n2bgf1sp1kdhqgc8yk5akjxb76-source/.git
│ │ --- /nix/store/l108shc3lqvd1wgm7ll5f4jql80js4vb-source/.git/objects
│ ├── +++ /nix/store/z983w8n2bgf1sp1kdhqgc8yk5akjxb76-source/.git/objects
│ │ │ --- /nix/store/l108shc3lqvd1wgm7ll5f4jql80js4vb-source/.git/objects/info
│ │ ├── +++ /nix/store/z983w8n2bgf1sp1kdhqgc8yk5akjxb76-source/.git/objects/info
│ │ │ │ --- /nix/store/l108shc3lqvd1wgm7ll5f4jql80js4vb-source/.git/objects/info/packs
│ │ │ ├── +++ /nix/store/z983w8n2bgf1sp1kdhqgc8yk5akjxb76-source/.git/objects/info/packs