Skip to content

Instantly share code, notes, and snippets.

View ulrikstrid's full-sized avatar

Ulrik Strid ulrikstrid

View GitHub Profile
steps:
- script: |
Test-Path HKLM:System\CurrentControlSet\Control\FileSystem
Write-Host Getting long path registry value...
Get-ItemProperty -Path HKLM:System\CurrentControlSet\Control\FileSystem -Name LongPathsEnabled
Write-Host Setting long path registry value...
Set-ItemProperty -Path HKLM:System\CurrentControlSet\Control\FileSystem -Name LongPathsEnabled -Value 1
Write-Host New Value
Get-ItemProperty -Path HKLM:System\CurrentControlSet\Control\FileSystem -Name LongPathsEnabled
Write-Host DONE $LastExitCode
-----BEGIN CERTIFICATE-----
MIIFvjCCA6agAwIBAgIITyTh/u1bExowDQYJKoZIhvcNAQENBQAwYjEkMCIGA1UE
CgwbRmluYW5zaWVsbCBJRC1UZWtuaWsgQklEIEFCMRowGAYDVQQLDBFJbmZyYXN0
cnVjdHVyZSBDQTEeMBwGA1UEAwwVQmFua0lEIFNTTCBSb290IENBIHYxMB4XDTEx
MTIwNzEyMzQwN1oXDTM0MTIzMTEyMzQwN1owYjEkMCIGA1UECgwbRmluYW5zaWVs
bCBJRC1UZWtuaWsgQklEIEFCMRowGAYDVQQLDBFJbmZyYXN0cnVjdHVyZSBDQTEe
MBwGA1UEAwwVQmFua0lEIFNTTCBSb290IENBIHYxMIICIjANBgkqhkiG9w0BAQEF
AAOCAg8AMIICCgKCAgEAwVA4snZiSFI3r64LvYu4mOsI42A9aLKEQGq4IZo257iq
vPH82SMvgBJgE52kCx7gQMmZ7iSm39CEA19hlILh8JEJNTyJNxMxVDN6cfJP1jMH
JeTES1TmVbWUqGyLpyT8LCJhC9Vq4W3t/O1svGJNOUQIQL4eAHSvWTVoalxzomJh
@ulrikstrid
ulrikstrid / azure-pipeline.yml
Last active September 18, 2018 18:19
Lumo VSTS setup
resources:
- repo: self
fetchDepth: 5
queue:
name: Hosted VS2017
demands:
- yarn
- Cmd
@ulrikstrid
ulrikstrid / VSTS.yml
Last active September 11, 2018 09:26
Azure Pipelines esy
resources:
- repo: self
phases:
- phase: Phase_1
displayName: Linux
condition: succeeded()
queue:
name: Hosted Linux Preview
demands: node.js
import "rxjs/add/observable/fromEvent";
import "rxjs/add/observable/merge";
import * as classnames from "classnames";
import { css } from "emotion";
import { add } from "ramda";
import * as React from "react";
import { Observable } from "rxjs/Observable";
import { filter, flatMap, map, scan, takeUntil } from "rxjs/operators";
import { Subscription } from "rxjs/Subscription";
@ulrikstrid
ulrikstrid / settings.json
Created December 13, 2017 06:28
vscode user settings
{
// look and feel
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "Panda Syntax",
"editor.fontFamily": "'Fira Code', 'Hasklig', 'Droid Sans Mono",
"editor.fontLigatures": true,
// quality of leif
"workbench.editor.enablePreview": false,
// editing
"editor.formatOnSave": true,
#!/bin/bash
echo "Setting username and email"
git config --global user.email "$USER_EMAIL"
git config --global user.name "$USER_NAME"
echo "Checking out the $1 branch"
git checkout -b "$1"
echo "Merging with master"
git merge master
echo "Add the build catalog"
{
"$schema": "http://json.schemastore.org/proxies",
"proxies": {
"api": {
"matchCondition": {
"route": "/api/{*path}"
},
"backendUri": "https://<APP_URL>/api/{path}",
"responseOverrides": {
"response.headers.Content-Type": "application/json"
version: '3'
services:
#test_server:
# build: ./server
# links:
# - test_database
# environment:
# - PGHOST=test_database
# - PGDATABASE=postgres
@ulrikstrid
ulrikstrid / docker-compose.dev.yml
Created June 26, 2017 06:03
Using docker-compose and composing files
version: '3'
services:
server:
volumes:
- ./server/src:/usr/src/app/src/
command: npm run dev
frontend:
volumes: