Skip to content

Instantly share code, notes, and snippets.

View DevWurm's full-sized avatar

Leo Lindhorst DevWurm

  • Saxonia Systems AG @saxsys
  • Dresden, Germany
View GitHub Profile
@DevWurm
DevWurm / entry.js
Last active March 4, 2019 15:21
angular-cli Electron configuration
const {app, BrowserWindow} = require('electron')
const path = require('path')
const url = require('url')
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let win
function createWindow () {
// Create the browser window.
@DevWurm
DevWurm / jira.service
Last active November 18, 2016 10:00
Jira Systemd Unit (with postgresql setup)
[Unit]
Description=Jira Issue & Project Tracking Software
Requires=postgresql.service
After=postgresql.service
After=network.target
[Service]
Type=forking
User=jira
PIDFile=/opt/atlassian/jira/work/catalina.pid
@DevWurm
DevWurm / Problems.md
Last active December 21, 2016 15:39
A simple generic type matching / constructor matching type guard for type script

Problems

  • can't decide between different array types (solution idea: if the reference array is not empty, test the first element against the first element of the test element)
@DevWurm
DevWurm / package.19-3.json
Created December 15, 2016 15:52
The package.json files of Angular-CLI projects with Version `1.0.0-beta.19-3`, `1.0.0-beta.20-3` and `1.0.0-beta.22-1`
{
"name": "ee-19-3",
"version": "0.0.0",
"license": "MIT",
"angular-cli": {},
"scripts": {
"start": "ng serve",
"lint": "tslint \"src/**/*.ts\"",
"test": "ng test",
"pree2e": "webdriver-manager update",
@DevWurm
DevWurm / install.sh
Created January 5, 2017 15:00
TypeScript configuration for Node.js
npm install -D @types/node
@DevWurm
DevWurm / installation.md
Last active March 3, 2018 13:25 — forked from tessi/installation.md
Install OpenProject 6 on uberspace.de

How to install OpenProject on uberspace.de

Follow those steps to install OpenProject on a fresh uberspace.

Step 1: Install dependencies

First we set-up all dependencies. We use ruby 2.2.5 and install gems in a user directory:

echo "gem: --user-install --no-rdoc --no-ri" > ~/.gemrc

cat <<'EOF' >> ~/.bash_profile

@DevWurm
DevWurm / obsall.ts
Created April 3, 2017 08:19
Promise.all and promise.then(...).then(...) behavior for Observables
const create = (val) => {
return (o: Observer<any>) => {
setTimeout(() => {
console.log(val);
o.next(val);
o.complete();
}, 5000)
}
};
@DevWurm
DevWurm / fonts.tex
Last active April 26, 2017 14:04
Specify different font for section headings / title
\usepackage{titlesec}
\usepackage{titling}
% Specify different font for section headings
\newfontfamily\headingfont[]{Roboto Bold}
\titleformat*{\section}{\LARGE\headingfont}
\titleformat*{\subsection}{\Large\headingfont}
\titleformat*{\subsubsection}{\large\headingfont}
\renewcommand{\maketitlehooka}{\headingfont} % font in \maketitle
@DevWurm
DevWurm / metropolis-beamerfonts.tex
Created May 1, 2017 15:15
Beamerfont declarations for Metropolis theme (for overwriting)
\setbeamerfont{title}{size=\Large,%
series=\bfseries}
\setbeamerfont{author}{size=\small}
\setbeamerfont{date}{size=\small}
\setbeamerfont{section title}{size=\Large,%
series=\bfseries}
\setbeamerfont{block title}{size=\normalsize,%
series=\bfseries}
\setbeamerfont{block title alerted}{size=\normalsize,%
series=\bfseries}
@DevWurm
DevWurm / fonts.md
Last active May 7, 2017 13:19
A list of awesome free fonts