I hereby claim:
- I am nordineb on github.
- I am nordineb (https://keybase.io/nordineb) on keybase.
- I have a public key whose fingerprint is D8A3 E77F 6D7C 29F9 C577 07BC 0045 F242 17B5 7521
To claim this, I am signing this object:
try{ | |
Import-Module WebAdministration | |
Get-WebApplication | |
$webapps = Get-WebApplication | |
$list = @() | |
foreach ($webapp in get-childitem IIS:\AppPools\) | |
{ | |
$name = "IIS:\AppPools\" + $webapp.name | |
$item = @{} |
<# | |
.SYNOPSIS | |
Modifies some Azure cscfg entries that Octopus Deploy 2.0 is not able to as of today. | |
.DESCRIPTION | |
Sets the thumbprint of the first certificate value. Sets the instance count for each role. Octopus-variables must match either of the two forms: | |
Azure.Role[rolename].Instances | |
Azure.Role[rolename].Certificate | |
where rolename is the roleName as defined in the ServiceConfiguration.Cloud.csfcg. | |
The config file must be named ServiceConfiguration.Cloud.cscfg. | |
#> |
## -------------------------------------------------------------------------------------- | |
## | |
## This script is used to control how we deploy packages to Windows Azure. | |
## Orignial script (https://gist.github.com/PaulStovell/5234255) customized for | |
## Staging-To-Production with VIP swap deployment. | |
## | |
## NOTE: the script will only do Staging+VIP swap if $OctopusAzureSlot == "Staging". | |
## If $OctopusAzureSlot == anything else, the script will deploy directly to that slot | |
## without any further swapping. | |
## |
:: Windows 10 Hardening Script | |
:: This is based mostly on my own personal research and testing. My objective is to secure/harden Windows 10 as much as possible while not impacting usability at all. (Think being able to run on this computer's of family members so secure them but not increase the chances of them having to call you to troubleshoot something related to it later on). References for virtually all settings can be found at the bottom. Just before the references section, you will always find several security settings commented out as they could lead to compatibility issues in common consumer setups but they're worth considering. | |
:: Obligatory 'views are my own'. :) | |
:: Thank you @jaredhaight for the Win Firewall config recommendations! | |
:: Thank you @ricardojba for the DLL Safe Order Search reg key! | |
:: Thank you @jessicaknotts for the help on testing Exploit Guard configs and checking privacy settings! | |
:: Best script I've found for Debloating Windows 10: https://github.com/Sycnex/Windows10Debloater | |
: |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |