Skip to content

Instantly share code, notes, and snippets.

View ixxie's full-sized avatar
🪓
hackin' it

Matan Bendix Shenhav ixxie

🪓
hackin' it
View GitHub Profile
@ixxie
ixxie / moved-to-codeberg.md
Last active May 23, 2026 14:59
Moved to Codeberg

I moved to Codeberg 🇪🇺

Will be maintaining mirrors here.

<script lang="ts">
import { T, useLoader } from '@threlte/core';
import { TextureLoader, DoubleSide, RepeatWrapping, type Texture } from 'three';
import type { Pattern } from '$lib/types';
export let x = 1000;
export let y = 1000;
export let z: number = 20;
export let color: string = 'white';
ixxie@meso ~/r/newco> npm run dev
> newco@0.0.1 dev /home/ixxie/repos/newco
> svelte-kit dev
> Listening on http://localhost:3000
11:06:56 AM [vite] new dependencies found: robot3, updating...
11:06:56 AM [vite] ✨ dependencies updated, reloading page...
TypeError: Cannot read property 'default' of null
at eval (/src/lib/feat/nav/TopNav.svelte:20:108)
ixxie@meso ~/r/pip2nix ((v0.7.0)) [1]> nix-shell release.nix -A pip2nix.python36 --show-trace
error: while evaluating the attribute 'python36' at /home/ixxie/repos/pip2nix/release.nix:9:5:
while evaluating anonymous function at /home/ixxie/repos/pip2nix/default.nix:1:1, called from /home/ixxie/repos/pip2nix/release.nix:9:13:
while evaluating 'fix' at /nix/store/zinlhg7nzswkhm6876cxiybbsvnjgh4w-nixos-21.05pre273435.0aeba64fb26/nixos/lib/fixed-points.nix:19:9, called from /home/ixxie/repos/pip2nix/default.nix:54:6:
while evaluating 'extends' at /nix/store/zinlhg7nzswkhm6876cxiybbsvnjgh4w-nixos-21.05pre273435.0aeba64fb26/nixos/lib/fixed-points.nix:69:24, called from /nix/store/zinlhg7nzswkhm6876cxiybbsvnjgh4w-nixos-21.05pre273435.0aeba64fb26/nixos/lib/fixed-points.nix:19:20:
while evaluating 'extends' at /nix/store/zinlhg7nzswkhm6876cxiybbsvnjgh4w-nixos-21.05pre273435.0aeba64fb26/nixos/lib/fixed-points.nix:69:24, called from /nix/store/zinlhg7nzswkhm6876cxiybbsvnjgh4w-nixos-21.05pre273435.0aeba64fb26/nixos/lib/f

Notes from a NixOps beginner

by Matan Shenhav (ixxie - m.shenhav@gmail.com)

2020/07/01 - while work towards NixOps 2.0 is being committed to master

First impressions

I first looked into NixOps a few years ago, and only very briefly. Trying to get back into it again now, there are some logistical obstacles.

@ixxie
ixxie / pyproject.toml
Created June 30, 2020 19:29
nixops-digitalocean 2.0
[tool.poetry]
name = "nixops-digitalocean"
version = "2.0"
description = "NixOps plugin for Digital Ocean"
authors = ["Robert Djubek <contact@mostlyabsurd.com>"]
license = "LGPL-3.0-only"
include = [ "nixops-digitalocean/nix/*.nix" ]
[tool.poetry.dependencies]
python = "^3.7"
@ixxie
ixxie / 0-intro.md
Last active May 17, 2020 17:20
Svelte + D3

I'm trying to get a toy D3 Svelte component going to explore integration strategies between the two. I'm trying to leverage Svelte bindings and D3 scales to let the chart rescale to the viewport; it seems to break the chart:

Github Action works in its own repo but not from another repo

I'm having trouble with a remote call of a github action. The issue concerns an action I created called nixosify which is designed to install my Linux distro of choice on a remote machine. The action accepts four parameters:

  • target: ip of the machine to convert
  • tempkey: private key to grant access to the target
  • tempkey_pub: the temporary public key, used to add to the install medium
  • authkey_pub: a permanent public key to add to authorized keys on the target, post install

As you can see in this successful execution of a test workflow this all seems good and well. The test workflow uses a VPS provider's CLI to create an test instance, run the test, and kill it.

@ixxie
ixxie / intro.md
Last active April 19, 2020 10:53
ssh mystery nixosify + mindcraft

hello folks; I'm working on some github CI/CD pipelines, and getting stomped with some ssh issues. I made a github action called nixosify which is an script which sshes into a VM and install a distribution on it. The nixosify repo has a test (shared in the gist) which works fine, but when I call this in a pipeline for deploying a server in another repo I am working on called mindcraft, I get ssh errors, and I cannot for the life of me figure out why the same code gives an error in one context but not the other.

I already recreated the ssh keys to ensure I didn't make a mistake there but I am having no luck here. In both cases I create the VM using the VPS provider's CLI and reference a public ssh key that I added to my account.

Links:

# Define user accounts
users.extraUsers =
{
bob =
{
home = "/home/bob";
extraGroups = [ "wheel" "networkmanager" ];
isNormalUser = true;
uid = 1000;
};