Skip to content

Instantly share code, notes, and snippets.

View djberg96's full-sized avatar

Daniel Berger djberg96

View GitHub Profile
dberger:~/Dev/ancestry [podman_docker]>act-cli -l
INFO[0000] Using docker host 'unix:///var/run/docker.sock', and daemon socket 'unix:///var/run/docker.sock'
Stage Job ID Job name Workflow name Workflow file Events
0 test test run-test-suite run_test_suite.yml push,pull_request
dberger:~/Dev/ancestry [podman_docker]>bin/act
INFO[0000] Using docker host 'unix:///run/user/1000/podman/podman.sock', and daemon socket 'unix:///run/user/1000/podman/podman.sock'
[run-test-suite/test-1 ] ⭐ Run Set up job
[run-test-suite/test-3 ] ⭐ Run Set up job
[run-test-suite/test-3 ] 🚀 Start image=catthehacker/ubuntu:act-latest
[run-test-suite/test-4 ] ⭐ Run Set up job
#!/usr/bin/env ruby
require_relative 'lib/sctp/socket'
puts "Testing SCTP Authentication Support"
puts "==================================="
# Create server and client sockets
server = SCTP::Socket.new
client = SCTP::Socket.new
#!/bin/bash
# Script to convert HamlC templates to ERB templates
# This handles basic HamlC to ERB conversion
convert_hamlc_to_erb() {
local hamlc_file="$1"
local erb_file="${hamlc_file%.hamlc}.html.erb"
# Basic HamlC to ERB conversion
// cc -o sendv_client sendv_client.c
// Run after starting recvv_server in another console
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <arpa/inet.h>
#include <netinet/sctp.h>
#include <unistd.h>
// cc -o recvv_server
// Then run it.
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <arpa/inet.h>
#include <netinet/sctp.h>
#include <unistd.h>
log.c:187:Starting log file for FreeTDS 1.3.6
on 2025-01-08 15:09:40 with debug flags 0x4fff.
dblib.c:1187:tdsdbopen(0x557dd312d510, ourdb.ourdb:1433, [microsoft])
dblib.c:1213:tdsdbopen: dbproc->dbopts = 0x557dd312eae0
dblib.c:1224:tdsdbopen: tds_set_server(0x557dd312d530, "ourdb.ourdb:1433")
dblib.c:251:dblib_get_tds_ctx(void)
dblib.c:1241:tdsdbopen: About to call tds_read_config_info...
config.c:170:Getting connection information for [cmm2.cmm2:1433].
config.c:174:Attempting to read conf files.
config.c:305:Found conf file '/etc/freetds/freetds.conf' (from $FREETDSCONF).
@djberg96
djberg96 / sctp_bindx_example.c
Last active January 8, 2025 00:42
Attempt at getting sctp_bindx to work
/*
sudo pkg install sctplib
I created two interfaces like so:
sudo ifconfig lo1 create
sudo ifconfig lo1 1.1.1.1/24 up
sudo ifconfig lo2 create
sudo ifconfig lo2 1.1.1.2/24 up
>uname -a
Linux ThinkpadX1 5.14.0-1050-oem #57-Ubuntu SMP Fri Aug 19 08:01:16 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
>java -version
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-snap)
OpenJDK 64-Bit Server VM (build 22.0.2+9-snap, mixed mode, sharing)
dberger:/home/dberger/Downloads/Misc/VASSAL-3.7.14 >./VASSAL.sh
21:59:34,223 |-INFO in ch.qos.logback.classic.LoggerContext[default] - This is logback-classic version 1.5.7
> sudo hwinfo --sound
[sudo] password for root:
33: PCI 202.0: 0401 Multimedia audio controller
[Created at pci.386]
Unique ID: LHB6.FGsk7T8RAT9
Parent ID: 7EWs.3XzZP_1GzlF
SysFS ID: /devices/pci0000:00/0000:00:11.0/0000:02:02.0
SysFS BusID: 0000:02:02.0
Hardware Class: sound
Device Name: "sound"
- Space Empires 4x version 3.0.7
- Place/Replace Trait Place Marker - place cell in next column - makeCell - (0) GPID updated from 478 to 3129
- Place/Replace Trait Place Marker - place cell in next column - makeCell - (0) GPID updated from 478 to 3130
- Place/Replace Trait Place Marker - place cell in next column - makeCell - (0) GPID updated from 478 to 3131
- Place/Replace Trait Place Marker - place cell in next column - makeCell - (0) GPID updated from 478 to 3132
- Place/Replace Trait Place Marker - place cell in next column - makeCell - (0) GPID updated from 478 to 3133
- Place/Replace Trait Place Marker - place cell in next column - makeCell - (0) GPID updated from 478 to 3134
- Place/Replace Trait Place Marker - place cell in next column - makeCell - (0) GPID updated from 478 to 3135
- Place/Replace Trait Place Marker - place cell in next column - makeCell - (0) GPID updated from 478 to 3136
- Place/Replace Trait Place Marker - place cell in next column - makeCell - (0) GPID updated from 478 to 3137