Skip to content

Instantly share code, notes, and snippets.

View fischermatte's full-sized avatar

G. Ludewig fischermatte

View GitHub Profile
@fischermatte
fischermatte / TestTypedForms.ts
Last active January 26, 2022 19:22 — forked from dmorosinotto/TestTypedForms.ts
compatible with Angular 13
import { FormGroup, FormControl, FormArray, Validators } from "@angular/forms";
function testFormGroupTyped() {
var frm = new FormGroup({
a: new FormArray([new FormControl(0)]),
b: new FormControl(true),
c: new FormGroup({
s: new FormControl("abc"),
n: new FormControl(123)
})
@fischermatte
fischermatte / azure.md
Last active February 23, 2019 15:03
azure-az-300

VM

Fault Domain / Update Domain

# Cloud Foundry Manifest with 256m example
applications:
- name: my-app
path: ma-app.jar
instances: 1
buildpack: https://github.com/cloudfoundry/java-buildpack.git
memory: 256m
env:
JAVA_OPTS: '-XX:ReservedCodeCacheSize=32M -XX:MaxDirectMemorySize=32M'
JBP_CONFIG_OPEN_JDK_JRE: '{ jre: { version: 1.8.0_+ }, memory_calculator: { stack_threads: 30 } }'
https://www.google.ch/search?q=%s&cr=countryCH
https://www.google.ch/search?q=%s&cr=countryDE
https://www.google.ch/search?q=%s&lr=lang_de
@fischermatte
fischermatte / cron-expression-samples.txt
Last active December 17, 2015 18:49
useful cronjob expressions
# Pattern: [second] [minute] [hour] [day of month] [month] [day of week]
# once per minute on weekdays
0 * * * * MON-FRI
# once a month at 00:00 AM in the morning of the first of the month
0 0 0 1 * ?