Skip to content

Instantly share code, notes, and snippets.

satisfy any;
allow localhost;
deny all;
auth_basic "Members Only";
auth_basic_user_file /path/to/.htpasswd;
AuthType Basic
AuthName "Typo3 Backend"
AuthUserFile /path/to/.htpasswd
Require valid-user
SetEnvIf HOST ^www\.domain\.tld$ ALLOWED_HOST
SetEnvIf Request_URI admin/ !ALLOWED_HOST
Order deny,allow
Deny from all
@valenz
valenz / system.ps1
Created October 24, 2014 15:04
Get computer system and hardware information
# thx@thommck (twitter)
# Local System Information v3
# Shows details of currently running PC
# Thom McKiernan 11/09/2014
$computerSystem = Get-CimInstance CIM_ComputerSystem
$computerBIOS = Get-CimInstance CIM_BIOSElement
$computerOS = Get-CimInstance CIM_OperatingSystem
$computerCPU = Get-CimInstance CIM_Processor
$computerHDD = Get-CimInstance Win32_LogicalDisk -Filter "DeviceID = 'C:'"
@valenz
valenz / install.ps1
Last active August 29, 2015 14:06
Install Chocolatey and package list using Powershell script
# EXCEPTION:
# Die Datei "I:\Downloads\install.ps1" kann nicht geladen werden, da die Ausführung von Skripts auf diesem System
# deaktiviert ist. Weitere Informationen finden Sie unter "about_Execution_Policies"
# (http://go.microsoft.com/fwlink/?LinkID=135170).
# + CategoryInfo : Sicherheitsfehler: (:) [], ParentContainsErrorRecordException
# + FullyQualifiedErrorId : UnauthorizedAccess
#
# TYPE:
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -ErrorAction Stop -Force -Verbose