Skip to content

Instantly share code, notes, and snippets.

@user8446
user8446 / cloudflared-auto-update.ps1
Created November 1, 2023 15:42
cloudflared auto update
#Window title
$host.ui.RawUI.WindowTitle = "Cloudflared auto update"
#Run as admin for start/stop service
#Dependencies
#PowerShellForGitHub module
#BurntToast module
###############################
@flaviut
flaviut / Setting up Emporia Vue 2 with ESPHome.md
Last active July 10, 2025 23:01
Setting up Emporia Vue 2 with ESPHome
@jordandrako
jordandrako / monitor_albums.sh
Last active July 6, 2025 14:33
[Un]monitor Albums in Lidarr
#!/bin/bash
helpText="
# Usage:\n
#\n
# ./monitor_albums.sh -k 'apiKey' -b 'http://host:port' -t [Single|EP|Album] [-m|u|A|h][-n 'artist name'][-i artistId]\n
#\n
# Required Options:\n
# -k Your Lidarr API Key (defaults to \$apiKey env variable)\n
# -b Your Lidarr instance URL (defaults to \$baseUrl env variable)\n
@michiiii
michiiii / SetIISSecurityHeader.ps1
Last active September 14, 2021 16:40
Quick and dirty commands to set basic security header in IIS
### Quick and dirty command set to set basic security header on IIS
## Please adjust the values according to your requirements
Add-WebConfigurationProperty //system.webServer/httpProtocol/customHeaders "IIS:\sites\" -AtIndex 0 -Name collection -Value @{name='Cache-Control';value='max-age=31536000'}
Write-Host 'Cache-Control header is set.' #Please adjust as required
Add-WebConfigurationProperty //system.webServer/httpProtocol/customHeaders "IIS:\sites\" -AtIndex 0 -Name collection -Value @{name='Permissions-Policy';value='fullscreen=(), geolocation=()'}
Write-Host 'Permissions-Policy header is set.' #Please adjust as required
Add-WebConfigurationProperty //system.webServer/httpProtocol/customHeaders "IIS:\sites\" -AtIndex 0 -Name collection -Value @{name='Referrer-Policy';value='strict-origin-when-cross-origin'}
Write-Host 'Referrer-Policy header is set.' #Please adjust as required
Add-WebConfigurationProperty //system.webServer/httpProtocol/customHeaders "IIS:\sites\" -AtIndex 0 -Name collection -Value @{na
@Amar1729
Amar1729 / _chunkc.zsh
Last active October 17, 2018 03:20
Zsh completions for chunkc
#compdef chunkc
# Note for plugin authors:
# You can make your own zsh completions, and include these by calling `_chunkc'
# in the top-level function of the new completions and defining your subcommand
# with syntax: _chunkc_<plugin>_<subcmd> like so:
# Fake chunkc plugin
#
# function _chunkc_plugin_set { return }