Skip to content

Instantly share code, notes, and snippets.

@jdk
jdk / sh
Last active January 7, 2023 23:21
Build Universal QT Debug and Release Mac
#!/bin/bash
# Download
wget https://download.qt.io/official_releases/qt/6.4/6.4.1/single/qt-everywhere-src-6.4.1.tar.xz
# For some reason, -debug-and-release is not working
# So we will compile both versions and copy all the
# debug files into our release directory
# Unzip our file
@jdk
jdk / csv_to_buf.c
Created January 31, 2021 05:28
Take a comma delimited string and put into a buf
ssize_t csv_to_buf(const char *line, uint16_t *buf, size_t len)
{
int i = 0;
ssize_t buf_len = 0;
if (line == NULL || !(strlen(line))) {
log_err("invalid line buffer, len = %lu\n", strlen(line));
return -1;
}
@jdk
jdk / start_docker_registry.bash
Last active August 26, 2018 09:25 — forked from PieterScheffers/start_docker_registry.bash
Start docker registry with letsencrypt certificates (Linux Ubuntu)
#!/usr/bin/env bash
# install docker
# https://docs.docker.com/engine/installation/linux/ubuntulinux/
# install docker-compose
# https://docs.docker.com/compose/install/
# Make sure you have backports, add this to /etc/apt/source.list
# jesse-backports