This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Folder to crawl | |
$srcFolder = "C:\Users\xxx\Documents\test" | |
# Folder to regroup identical file names which have different versions | |
$sortedFolder = "C:\Users\xxx\Documents\sorted" | |
# If the folder doesn't exist, create it | |
if(!(Test-Path $sortedFolder)) { | |
New-Item -ItemType Directory -Path $sortedFolder -ErrorAction Stop | |
} else { | |
"Sorted folder already exists, please delete it first" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable built-in rules which conflict with GPO rules filtering on IP origin | |
$rules = Get-NetFirewallRule -Direction Inbound -Enabled True |?{$_.Name -like "RemoteDesktop*"} | |
foreach ($r in $rules) { | |
"Disabling: " + $r.Name | |
$r | Disable-NetFirewallRule | |
} | |
<# | |
Disabling: RemoteDesktop-UserMode-In-TCP | |
Disabling: RemoteDesktop-UserMode-In-UDP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install node | |
brew install npm | |
brew install git | |
sudo npm install gulp yarn -g | |
brew install hugo | |
mkdir ComptoirSecu | |
cd ComptoirSecu/ | |
git clone https://github.com/comptoirsecu/csec-hugo | |
|| sous gentoo: |