@chas@tty0.social
@chas@tty0.social avatar

chas

@chas@tty0.social

ENG Manager | Expert SW Engineer @ Activision | Homesteader | Woodworker

I do indie game development in my free time.

Golang and Python by day, bandsaw and handplane by night. Opinions are my own and I'm not a point of contact for my org.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

feld, to random
@feld@bikeshed.party avatar

@antranigv

This basically provides an API to jails, so I wonder how hard it would be to make it work with terraform. Could get a lot of renewed jail interest with that

https://github.com/illuria/jailerctl

chas,
@chas@tty0.social avatar

@feld @antranigv hi, I've written terraform providers before. By and large the two heaviest lifts are: defining the data model and managing the tf data <-> api data relationship, and defining/maintaining state against the remote

In short what you'd need is:

  1. jailer API client in go
  2. tf provider using API client and mangling the data to tf Schema
  3. tf provider would need configurable against dynamic backends (since jailer isn't one big public API)

non trivial but non impossible

chas,
@chas@tty0.social avatar

@feld @antranigv I'd take a swing at it but don't have any freebsd ready to go, it would be hours of authorship just to bootstrap it, and I've already gotta prep a codebase for my team's consumption before tuesday 😂

It's not a "I'm going to throw this together in a weekend" thing

chas,
@chas@tty0.social avatar

@feld @antranigv I could write the go client API for jailer pretty quickly tho if I set up a freebsd system to test against

chas,
@chas@tty0.social avatar

@antranigv @feld for a terraform provider there would have to be a go client, given tf is written in go.

but I mean otherwise, no lol

I could write a vastly, vastly superior CLI interface to that shell script in go tho (hell, even a TUI)

chas,
@chas@tty0.social avatar

@antranigv @feld I'm not knocking your shell either, I still write a lot of bash and Make

ultimately it would come down to what you want anyways? you know?

I only jumped on this because go professional and saw terraform providers mentioned hahaha

chas,
@chas@tty0.social avatar

@antranigv @feld portability isn't that big of a deal too when you can just matrix your builds in github actions and attach them to releases xD

https://github.com/asciifaceman/line/blob/main/.github/workflows/release-build.yml

if you made a jailer go API lib (just pure comms) it would be easy to import and write a frontend for it (TUI or just fancy table prints etc like you did in bash)

tbh stuff like this always ends up useful to someone

I don't touch bsd often so I don't know the ecosystem or who the target audience for jailer is

chas,
@chas@tty0.social avatar

@antranigv @feld I'd possibly tinker on a lib and tf provider if I had a bit more time right now, but I'm already attempting a herculean lift at work (ever change architecture, language, infrastructure, and have to do it in a few months?)

chas,
@chas@tty0.social avatar

@antranigv @feld that said, it's always tempting

chas,
@chas@tty0.social avatar

@antranigv @feld this actually dredges up memories of a project I started called Hobo. I was building a manager for dev/test environments meant to replace Vagrant - basically one CLI tool that let you manage projects across your system. It used a light file db (bbolt) to store environments and you could interact with them anywhere (like standup another project to reference it from your current project without moving around)

I bet you I could reuse large portions of that abandoned project

chas,
@chas@tty0.social avatar

@antranigv @feld I had written this entire profile system that would manage provider/provisioner (like aws+ansible for testing etc) that could probably be pretty easily adapted/rewritten for the concept of remotes + jails

chas, to random
@chas@tty0.social avatar

ok, hear me out

start a new church with similar branding as Turning Point

but call it Sounding Point

iykyk

chas, to random
@chas@tty0.social avatar

Is there an or community here? I've been using threads for that as it has a very active one

Mastodon is so broad and the federated model means I've basically only ever seen tech content since that's what I'm connected to

chas,
@chas@tty0.social avatar

@elysegrasso would you happen to have any server recommendations for the general authorship/reader/book community? I'm thinking of creating a profile for my writing pseudonym

I'm not a fan of long lists of rules - mostly because I don't like being told not to do things I wasn't already not going to do (or being told to do things I was already going to do 😂)

chas, to random
@chas@tty0.social avatar

Consider doing this to improve your security posture

apt install ufw
ufw default deny incoming
ufw default deny outgoing
ufw enable

chas, to golang
@chas@tty0.social avatar

Continuing my USB adventure. I am successfully "reading" from the device I'm playing with, after finding some variable alternates on the configured interface. I'm not getting any data, at any packet size. Assume this is because I have to tell the device to start sending data with a control request, however I can't get any to work. I even tried GET_STATUS which should be all zeros, but that gives me a libusb pipe error. The device is old, so USB1.1 spec is likely. reverse eng with 0 docs

chas,
@chas@tty0.social avatar

I've started documenting everything I've learned about the Sony Eyetoy through blind reverse engineering

I am slowly writing a project to interface with it, but I haven't learned enough to get any actual data yet

https://github.com/asciifaceman/scwvision

chas,
@chas@tty0.social avatar

I don't know the extent of what I've done yet or how, but I've managed to change state in the eyetoy in my project

I'm stepping through some C OV519 drivers to figure out the register calls for gousb (libusb)

It's progress

chas,
@chas@tty0.social avatar

I'm getting USB packets now!!!

chas,
@chas@tty0.social avatar

@synlogic yeah, 0xFFD8 is the start of a jpeg/jffif file. and then there are other jpeg encodings. However the dump I got had no 0xFFD9 indicating file end.

I need to back up and rewrite what I have to make it cleaner to take the next steps.

I can toggle the red/recording LED off and on now, so I am definitely making progress.

chas,
@chas@tty0.social avatar

@feld @synlogic at least the one I have (SLEH-00030) is an older one, first generation model and it only has a jpeg/video/audio

chas, to random
@chas@tty0.social avatar

windows hands down has the single worst CLI experience in the whole world. You cannot tell me any different. After 20 years on linux CLI trying to do anything on windows as a horrifically painful process that goes against convention, against its OWN conventions, and is simply not intended for human use, or any use for that matter

chas,
@chas@tty0.social avatar

I would literally rather use bash over ssh from my phone on gboard than PowerShell on my laptop

chas, to golang
@chas@tty0.social avatar

what are people using to read from USB in right now? All the libs at the top of search results appear abandoned and unresponsive

chas,
@chas@tty0.social avatar

@heaths I think it's fine to publish as long as you don't kind of brand it and make it seem like an active public project you are maintaining.

A lot of people get wrapped up in making nice banners, release processes etc for projects they are going to abandon

that tricks people into using them 😂

chas,
@chas@tty0.social avatar

@heaths oh when you said publish I interpreted that as public github - not package repositories (which are notoriously consuming cool names at the same speed we destroyed ipv4 space)

chas,
@chas@tty0.social avatar

@heaths I am rather a fan of go's usage of git host paths as part of the package name, it works really well for my brain for some reason (and for uniqueness)

as well as the ability to rename an import on top of that if you DO run into simple conflicts

chas,
@chas@tty0.social avatar

@heaths back to your original point - I've even been guilty of publishing "meme" libs before (usually to prove a point, like a library on npm that removed eval from javascript because I was mad at someone for abusing it)

But I'm older now 😂

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • rosin
  • thenastyranch
  • GTA5RPClips
  • tester
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • everett
  • Youngstown
  • mdbf
  • slotface
  • kavyap
  • JUstTest
  • cisconetworking
  • khanakhh
  • normalnudes
  • osvaldo12
  • cubers
  • tacticalgear
  • Durango
  • ethstaker
  • modclub
  • anitta
  • provamag3
  • Leos
  • lostlight
  • All magazines