Skip to content

Instantly share code, notes, and snippets.

View djberg96's full-sized avatar

Daniel Berger djberg96

View GitHub Profile
// 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
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Vassal Engine 3.7.6-SNAPSHOT:
[INFO] 
[INFO] Vassal Engine ...................................... SUCCESS [  0.385 s]
[INFO] vassal-agent ....................................... SUCCESS [  1.324 s]
[INFO] vassal-deprecation ................................. SUCCESS [  0.189 s]
[INFO] vassal-app ......................................... SUCCESS [02:29 min]
[INFO] vassal-doc ......................................... SUCCESS [  0.251 s]
[INFO] release-prepare .................................... SUCCESS [  7.551 s]

Hit this on make release-macos.

Darwin Kernel Version 22.6.0: Wed Oct 4 21:25:26 PDT 2023; root:xnu-8796.141.3.701.17~4/RELEASE_X86_64 x86_64

openjdk version "14.0.2" 2020-07-14 OpenJDK Runtime Environment (build 14.0.2+12-46) OpenJDK 64-Bit Server VM (build 14.0.2+12-46, mixed mode, sharing)

GPL Ghostscript 10.01.2: **** Could not open temporary file tmp/gs_XXXXXX
require 'thread'
require 'thwait'
a = []
Dir["font-z*.rb"].each do |file|
next if file == __FILE__
next if file =~ /pixel/
font = File.basename(file, '.rb')
puts font