Skip to content

Instantly share code, notes, and snippets.

@alpex29
alpex29 / MultiThreadedCsvReaderWriter.java
Created July 5, 2024 12:03 — forked from djfdyuruiry/MultiThreadedCsvReaderWriter.java
Multi-threaded CSV Reader/Writer for Java
// uses Apache commons CSV, IO and Lang
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVParser;
import org.apache.commons.csv.CSVPrinter;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
@alpex29
alpex29 / aes67_sdp.js
Created November 8, 2023 20:28 — forked from philhartung/aes67_sdp.js
Quick and dirty AES67/Dante SAP/SDP Discovery Service. Change sdpConfig and addr accordingly
var dgram = require('dgram');
var socket = dgram.createSocket({ type: 'udp4', reuseAddr: true });
const PORT = 9875;
const MULTICAST_ADDR = '239.255.255.255';
//options, need to be changed
var addr = '127.0.0.1';
var multicastAddr = '239.69.0.119';

Self-extracting shell scripts

Guide to using MakeSelf tool to create self-extracting shell scripts for easy distribution

How to package your shell scripts project as a release which can be easily downloaded, extracted, and run.

This is intended to work with one or more executable scripts that use a shell shebang. This could work with other shebangs I guss, but you're probably better off using the packaging approach for that language.

This guide is written for macOS / Linux.

@alpex29
alpex29 / DateFormatBugfix.txt
Created November 5, 2022 20:39 — forked from aghuddleston/DateFormatBugfix.txt
Ext JS 4 Grid Search Plugin originally by Saki and ported by Nathan LeBlanc for Ext JS 4
One bugfix
http://www.sencha.com/forum/showthread.php?23615-Grid-Search-Plugin&p=799141&viewfull=1#post799141
For datecolumns like:
,{
text:'date',
dataIndex:'datecreated',
xtype:'datecolumn',
format:'d.m.Y H:i'
}
@alpex29
alpex29 / arm64-on-Win10.md
Created March 15, 2022 21:11 — forked from billti/arm64-on-Win10.md
ARM64 Linux on Win10

Below are the steps to get an ARM64 version of Ubuntu running in the QEMU emulator on Windows 10.

Install QEMU

Install for Windows from https://qemu.weilnetz.de/w64/ (I used qemu-w64-setup-20181211.exe)

Put C:\Program Files\qemu on your PATH, and run the below to check it's working (which will list out the CPUs the AArch64 emulator can emulate):

qemu-system-aarch64 -M virt -cpu help
@alpex29
alpex29 / docker.sh
Created November 21, 2020 11:07 — forked from brihter/docker.sh
docker cheatsheet
# get image
docker pull neo4j
# list
docker ps # show running containers
docker ps -a # + show all
# new
docker run neo4j # create a new container
docker run --name neo4j-local neo4j # + add a name
@alpex29
alpex29 / Highchart.js
Created November 21, 2020 11:06 — forked from brihter/Highchart.js
ExtJS 6 Highcharts adapter
// usage:
// {
// xtype: 'ux_highchart',
// highchartCfg: {
// // ...
// }
// }
Ext.define('Ext.ux.Highchart', {
extend: 'Ext.Container',
@alpex29
alpex29 / tmux.md
Created November 21, 2020 11:01 — forked from brihter/tmux.md
tmux cheatsheet

tmux

the default modifier key is Ctrl + b

general

tmux ls                      # list sessions
tmux new -s myname           # new session by name
tmux kill-session -t myname # kill session by name