Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -e
QT_DIR=$1
test -e $QT_DIR || mkdir -p $QT_DIR
cat << EOF > $QT_DIR/5.9.2-installer.qs
// Bases on script from http://stackoverflow.com/a/34032216
@pagdot
pagdot / Formelsammlung_HSD.tex
Last active May 15, 2018 10:38
Formelsammlung HSD
% Formelsammlung_HSD.tex -- Formelsammlung
%
% Copyright (C) 2017 Paul Goetzinger <paul70079@gmail.com>
%
% SPDX-License-Identifier: CC-BY-ND-4.0
\documentclass[
a4paper, %% defines the paper size: a4paper (default)
twoside,
titlepage, %% only the titlepage (using titlepage-environment) appears on the first page (alternatively: notitlepage)
@pagdot
pagdot / build_adb.sh
Last active August 23, 2019 14:09
Script to build adb
pkgver=29.0.2
tag=platform-tools-$pkgver
export CC = gcc
export CXX = g++
export CFLAGS =
export CXXFLAGS =
export LDFLAGS =
export PLATFORM_TOOLS_VERSION =
@pagdot
pagdot / SystemView.desktop
Created October 11, 2019 17:27
Segger SystemView Menu entry
[Desktop Entry]
Version=1.0
Name=SystemView
Comment=Segger SystemView
Exec=/usr/bin/SystemView
Terminal=false
Type=Application
Categories=Development
@pagdot
pagdot / VHDL MINI-REFERENCE-REDUCED.md
Last active March 16, 2020 13:14
VHDL MINI-REFERENCE

VHDL MINI-REFERENCE

Reduced markdown conversion of https://www.ics.uci.edu/~jmoorkan/vhdlref/vhdl.html

PRIMARY DESIGN UNIT MODEL STRUCTURE

Each VHDL design unit comprises an entity declaration and one or more architectures. Each architecture defines a different

@pagdot
pagdot / tiddlywiki.html
Last active August 17, 2020 19:16
tiddlywiki bug
<!doctype html>
<!-- The following comment is called a MOTW comment and is necessary for the TiddlyIE Internet Explorer extension -->
<!-- saved from url=(0021)https://tiddlywiki.com -->
<html lang="en-GB">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<!--~~ Raw markup for the top of the head section ~~-->
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
@pagdot
pagdot / TimeUttils.h
Created December 27, 2020 14:48
C++ TimeUtils
#ifndef TIMEUTILS_H
#define TIMEUTILS_H
#include <chrono>
#include <iostream>
#include <type_traits>
#include <string>
namespace TimeUtils
{
@pagdot
pagdot / Makefile
Last active September 2, 2021 09:13
Basic makefile
BIN_NAME=hello
# Compile and link flags
DEFINES=
#-pedantic treats warning as errors
CPPFLAGS=-Wall -Werror -pedantic -O2 -g $(addprefix -D,$(DEFINES))
LDFLAGS=
# Directory constants
BIN_DIR=bin
@pagdot
pagdot / downloadListsToJSON.py
Created November 22, 2021 08:05
Greenpass Scripts
import json
import zlib
import base64
import cbor2 # type: ignore
import cose.algorithms # type: ignore
import cose.keys.curves # type: ignore
import cose.keys.keytype # type: ignore
import requests
def valueSetFormatter(valuesets):
@pagdot
pagdot / dashboard.subdomain.conf
Created February 10, 2022 18:26
SWAG dashboard mod reverse proxy config with authelia
## Version 2022/01/14
# Make sure that your dns has a cname set for dashboard
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name dashboard.*;
root /dashboard/www;