Skip to content

Instantly share code, notes, and snippets.

View hanfil's full-sized avatar

Filip Fog hanfil

  • Data-Equipment-AS
  • Norway
View GitHub Profile
blueprint:
name: High electricity price
description: 'This automation blueprint sends a notification on high energy price.'
domain: automation
input:
energy_sensor:
name: Tibber price sensor
selector:
entity:
integration: tibber
blueprint:
name: Low electricity price
description: 'This automation blueprint sends a notification on low energy price.'
domain: automation
input:
energy_sensor:
name: Tibber price sensor
selector:
entity:
integration: tibber
# Enable Windows Firewall
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True
# SMB # require elevated privileges #
## Turn on SMB signing and encryption
Set-SmbServerConfiguration -RequireSecuritySignature $True -EnableSecuritySignature $True -EncryptData $True -Confirm:$false -Verbose
## Turn off the default workstations shares
Set-SmbServerConfiguration -AutoShareWorkstation $False -Confirm:$false -Verbose
@hanfil
hanfil / DailyThreatHunting.ps1
Last active January 12, 2022 21:50
DailyThreatHunting.ps1
<#
.SYNOPSIS
Daily Threat Hunting script.
.DESCRIPTION
The DailyThreatHunting.ps1 script prints out:
- commandline history,
- newly installed softwares,
- newly installed services,
- processes creating network connections,
@hanfil
hanfil / convert.sh
Last active March 11, 2022 06:50 — forked from natrim/convert.sh
Simple conversion script that converts Godot html5 export to gzipped version, with decompressing wasm and pck files using pako
#!/bin/bash
### usage ./convert.sh game
## where game is baseName of the export
if [ ! "$1" ]; then
read -p 'Game name: ' game
else
game="$1"
fi