Skip to content

Instantly share code, notes, and snippets.

View maddindeiss's full-sized avatar
👍

Martin Deiss maddindeiss

👍
  • Garden of Concepts GmbH
  • Frankfurt, Germany
View GitHub Profile
@maddindeiss
maddindeiss / ng-pug-rule-insert.js
Last active April 29, 2018 17:34
Pug / Jade support for Angular-CLI
const fs = require('fs');
const commonCliConfig = 'node_modules/@angular/cli/models/webpack-configs/common.js';
const pug_rule = `\n{
test: /\\.(pug|jade)$/,
use: [
'apply-loader',
{
loader: 'pug-loader',
options: {
set-executionpolicy remotesigned -scope currentuser
$key = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
Set-ItemProperty $key Hidden 1
Set-ItemProperty $key HideFileExt 0
Set-ItemProperty $key ShowSuperHidden 0
## Install DotNetCore SDK
$dotnetInstallFilename = 'dotnet-install.ps1'
If(!(test-path $dotnetInstallFilename))
@maddindeiss
maddindeiss / win10_devbox.ps1
Last active June 25, 2018 09:27
Windows 10 .Net DevBox
# Description: Boxstarter Script
# Common dev settings for desktop app development
# Test-Admin is not available yet, so use...
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
Start-Process powershell -ArgumentList "-noprofile -NoExit -file `"$PSCommandPath`"" -Verb RunAs
Exit
}
# http://boxstarter.org/InstallBoxstarter
@maddindeiss
maddindeiss / raspi-node-red-docker-install.sh
Last active October 30, 2019 17:35
Setup, install Packages, Docker and Docker-Compose on the RaspberryPi
#!/bin/sh
# Update
sudo apt update && sudo apt full-upgrade && sudo rpi-update
# Control Groups (cgroup) for Memory and CPU
echo -n "$(head -n1 /boot/cmdline.txt) cgroup_enable=cpuset cgroup_enable=memory" | sudo tee /boot/cmdline.txt
# Remove old Docker installs
sudo apt remove docker docker-engine docker.io containerd runc