Skip to content

Instantly share code, notes, and snippets.

View vjt's full-sized avatar
💭
looking at the stars

Marcello Barnaba vjt

💭
looking at the stars
View GitHub Profile
@vjt
vjt / plan-ghcr-delta.md
Last active April 20, 2026 20:55
Plan-delta: GHCR push for bahamut+services CI, compose consumes published images

Plan-delta: publish bahamut + services images to GHCR, compose consumes them

Context: Plan B (https://gist.github.com/vjt/48a75dc067f27108e4261d4c7380e00d) had each testnet container build: from source on first docker compose up (peak RAM ~200–300 MB for autoconf+gcc, too much for a 256 MB box). Hypnotize picked GHCR as hosting; this delta wires the push into the two existing CIs and flips the compose to image:.

Scope: minimal. One new step per CI workflow, compose switches to published images, first up becomes a pull instead of a compile.


Non-goals (follow-ups, not this patch)

@vjt
vjt / testplan-issue10.md
Created April 20, 2026 20:41
Testplan for azzurra/bahamut#10 — LIST should send RPL_LISTSTART/LISTEND to restricted users

Testplan — PR #NN: fix/issue-10-list-restricted

Scope: verify that a restricted user issuing LIST receives the numeric stream 321 (RPL_LISTSTART)323 (RPL_LISTEND)447 (ERR_RESTRICTED), instead of the current bare 447.

Preconditions

  1. Testnet ircd.conf:
    • restriction_enabled = YES (top-level) — implies restriction block present.
    • One I: line with flag R (CONF_FLAGS_I_RESTRICTED = 0x40) matching the test client's host/mask.
    • Services linked (so IsKnownNick transitions at /ns identify time; restricted path is only taken while unidentified).
@vjt
vjt / .bashrc
Last active December 8, 2021 19:53
#
# ~ vjt's .profile
#
export HOME
PS1=" \[\033[1;31m\]\t \[\033[1;32m\]\u\[\033[1;31m\]@\[\033[1;32m\]\h\[\033[1;31m\]:\[\033[1;33m\]\w\[\033[0;0m\]\n \[\033[1;34m\]\\$\[\033[0m\] "
if [ -x $(which rust-vcprompt) ]; then
export VCP_PREFIX=" "
export VCP_NAME="{value}:" # You can use "value" or "symbol" here
@vjt
vjt / .tmux.conf
Created April 26, 2021 09:04
vjt's tmux.conf
#
# -*- ~/.tmux.conf -*-
# - vjt@openssl.it -
#
set -g mouse on
set -g monitor-activity on
set -g default-terminal "screen-256color"
set -g repeat-time 200
set -g clock-mode-style 12
@vjt
vjt / painless-newline.md
Created August 12, 2020 11:01
Painless scripting language literal newline character
@vjt
vjt / remote-tcpdump.md
Last active August 1, 2024 09:20
tcpdump on remote host

Running tcpdump on remote hosts with no storage

If you have tcpdump on your embedded home router and you want to see what traffic your crippled phone is doing, you can dump traffic on the router and visualise it on your main workstation using wireshark.

Ensure that you can log on to the remote host without a password, e.g. by using SSH keys.

  1. On the remote host, create a FIFO
[user]
email = vjt@openssl.it # CHANGE THIS
name = Marcello Barnaba # CHANGE THIS
signingkey = 9956EB3C8D2787EF # CHANGE THIS
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile=~/.gitignore
[apply]
ignorewhitespace=change
whitespace=fix
@vjt
vjt / 2fa
Last active May 12, 2023 11:28
2FA from the mac command line using oathtool-toolkit without much fuss
#!/bin/bash
# -*- 2fa Command Line -*-
#
# Uses oath-toolkit http://nongnu.org/oath-toolkit/
# to generate 2FA OTPs and copies them in the Mac's
# clipboard using pbcopy(1). For other UNIX systems
# you can just strip the pbcopy at the bottom.
#
# In the dir below you should put TOTP token seeds,
# Parses IBM ISAM's WebSeal (broken) XML logs and outputs a line-based
# version of them extracting the most relevant information required to
# analyse who is requesting HTTP resources, from where and when.
#
# - m.barnaba@ifad.org Tue May 30 15:51:28 CEST 2017
#
require 'nokogiri'
require 'time'
def openlog
@vjt
vjt / keybase.md
Created December 15, 2014 09:43
keybase authz

Keybase proof

I hereby claim:

  • I am vjt on github.
  • I am vjt (https://keybase.io/vjt) on keybase.
  • I have a public key whose fingerprint is 723C 7CA3 3C19 2ACE 6E20 9CC1 9956 EB3C 8D27 87EF

To claim this, I am signing this object: