Skip to content

Instantly share code, notes, and snippets.

View vanillekipferl.txt
Vanillekipferl
• 100 g Mandeln oder gemahlene Mandeln (erspart Schritt 1)
• 280 g Mehl
• 70 g Zucker
• 200 g Butter
• 2 Eigelbe
• 7 Päckchen Vanillinzucker
• 50 g Puderzucker·
1. Die Mandeln brühen, schälen und sehr fein reiben.
@LadyViktoria
LadyViktoria / README.md
Created Mar 31, 2021 — forked from snormore/README.md
Deploying a web app to Kubernetes with SSL using Let's Encrypt via cert-manager and nginx-ingress.
View README.md

Deploying a web app to Kubernetes with SSL using Let's Encrypt via cert-manager and nginx-ingress

Spin up a Kubernetes cluster

You can do this with MiniKube for development and testing, or Google Cloud's GKE for the real thing.

MiniKube

# Make sure you have MiniKube installed and it's the latest
View valheimbackup.sh
NumToKeep=144
BackupFolderPath=/root/server/valheimbackups/
Worldsavelocation=/root/server/valheim/worlds/
if [[ ! -d $BackupFolderPath ]]
then
echo "$BackupFolderPath does not exist on your filesystem."
mkdir $BackupFolderPath
fi
Date=$(date +%Y-%m-%d-%H-%M-%S)
Sum=$((NumToKeep+1))
View watchdog.sh
#make a cronjob which execute that script after server reboot
#you need to install entr ( apt-get install entr )
Worldsavelocation=/root/server/valheim/worlds/
while $(true); do
find $Worldsavelocation | entr -s ./valheimbackup.sh
done;
@LadyViktoria
LadyViktoria / inkbird.js
Created Oct 23, 2020 — forked from onderweg/inkbird.js
Read temperature and humidity data from Inkbird ibs-TH1.
View inkbird.js
const DATA_HND = 0x002d;
const parseData = (data) => {
const rawTemp = data.readInt16LE(0);
const rawHum = data.readInt16LE(2);
return {
temperature: rawTemp / 100,
humidity: rawHum / 100
}
}
@LadyViktoria
LadyViktoria / Set-WindowStyle.ps1
Created Jul 19, 2017 — forked from Nora-Ballard/Set-WindowState.ps1
Hide, Show, Minimize, Maximize, etc window from Powershell.
View Set-WindowStyle.ps1
function Set-WindowStyle {
param(
[Parameter()]
[ValidateSet('FORCEMINIMIZE', 'HIDE', 'MAXIMIZE', 'MINIMIZE', 'RESTORE',
'SHOW', 'SHOWDEFAULT', 'SHOWMAXIMIZED', 'SHOWMINIMIZED',
'SHOWMINNOACTIVE', 'SHOWNA', 'SHOWNOACTIVATE', 'SHOWNORMAL')]
$Style = 'SHOW',
[Parameter()]
$MainWindowHandle = (Get-Process –id $pid).MainWindowHandle
View ...values-ksh.strings.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="actions">AC</string>
<string name="app_name">AndroidAPS</string>
<string name="configbuilder">Conf</string>
<string name="openapsma">oAPS</string>
<string name="overview">ov</string>
<string name="profileviewer">NS</string>
<string name="tempbasals">Tmps</string>
<string name="careportal">CP</string>
View gist:c8e50dfaa16b7084acc2189a798df36e
function Enable-Privilege {
param($Privilege)
$Definition = @'
using System;
using System.Runtime.InteropServices;
public class AdjPriv {
[DllImport("advapi32.dll", ExactSpelling = true, SetLastError = true)]
internal static extern bool AdjustTokenPrivileges(IntPtr htok, bool disall,
ref TokPriv1Luid newst, int len, IntPtr prev, IntPtr rele);
[DllImport("advapi32.dll", ExactSpelling = true, SetLastError = true)]
View gist:4e1488eaf3fd811d98586dfe6e35d0aa
# Declare some variables
$WinPE_Folder = "C:\WinPE10"
$WinPE_BuildFolder = $WinPE_Folder + "\WinPE10"
$WinPE_MountFolder = $WinPE_Folder + "\Mount"
$WinPE_Combined = $WinPE_Folder + "\WinPE10_Combined"
$WinPE_Media = $WinPE_Folder + "\Media"
$WinPE_Drivers = $WinPE_Folder + "\Drivers"
$WinPE_AppsFiles = $WinPE_Folder + "\Apps"
New-Item $WinPE_Drivers -Type Directory -force
@LadyViktoria
LadyViktoria / profile-cleanup.cmd
Created Apr 25, 2016 — forked from maciakl/profile-cleanup.cmd
A script to delete user data for those occasions where you just want to nuke all user data without reimaging machine.
View profile-cleanup.cmd
@echo off
REM use this file to run the powershell script bypassing the policy restrictions
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dpn0.ps1'"
pause