Skip to content

Instantly share code, notes, and snippets.

@pagdot
pagdot / docker-compose.yml
Created Jun 14, 2021
Exposing Gitlab (with builtin container registry) on nginx (linuxserver.io swag image)
View docker-compose.yml
version: '3.4'
services:
gitlab:
image: gitlab/gitlab-ee:latest
restart: always
container_name: gitlab
environment:
TZ: Europa/Berlin
GITLAB_OMNIBUS_CONFIG: |
View TimeUttils.h
#ifndef TIMEUTILS_H
#define TIMEUTILS_H
#include <chrono>
#include <iostream>
#include <type_traits>
#include <string>
namespace TimeUtils
{
@pagdot
pagdot / tiddlywiki.html
Last active Aug 17, 2020
tiddlywiki bug
View tiddlywiki.html
<!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 / Makefile
Created May 31, 2020
Basic makefile
View 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
View VHDL MINI-REFERENCE-REDUCED.md

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 / SystemView.desktop
Created Oct 11, 2019
Segger SystemView Menu entry
View SystemView.desktop
[Desktop Entry]
Version=1.0
Name=SystemView
Comment=Segger SystemView
Exec=/usr/bin/SystemView
Terminal=false
Type=Application
Categories=Development
@pagdot
pagdot / build_adb.sh
Last active Aug 23, 2019
Script to build adb
View build_adb.sh
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 / Formelsammlung_HSD.tex
Last active May 15, 2018
Formelsammlung HSD
View Formelsammlung_HSD.tex
% 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)
View installQt5.9.2.sh
#!/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