Set your PowerShell execution policy
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force
Install Chocolatey
| # Enable syn flood protection | |
| net.ipv4.tcp_syncookies = 1 | |
| # Ignore source-routed packets | |
| net.ipv4.conf.all.accept_source_route = 0 | |
| # Ignore source-routed packets | |
| net.ipv4.conf.default.accept_source_route = 0 | |
| # Ignore ICMP redirects |
| #!/bin/bash | |
| # update apt-get | |
| export DEBIAN_FRONTEND="noninteractive" | |
| sudo apt-get update | |
| # remove previously installed Docker | |
| sudo apt-get remove docker docker-engine docker.io* lxc-docker* | |
| # install dependencies 4 cert |
| Keyboard shortcut | Action |
|---|---|
| Windows key | Open or close Start Menu. |
| Windows key + A | Open Action center. |
| Windows key + C | Open Cortana in listening mode. |
| Windows key + D | Display and hide the desktop. |
| Windows key + E | Open File Explorer. |
| Windows key + G | Open Game bar when a game is ope |
ssh -D 8123 -f -C -q -N [email protected]
| # Reference - http://community.idera.com/powershell/powertips/b/tips/posts/allowing-powershell-script-execution---no-matter-what | |
| $context = $executioncontext.gettype().getfield('_context','nonpublic,instance').getvalue($executioncontext); $field = $context.gettype().getfield('_authorizationManager','nonpublic,instance'); $field.setvalue($context,(New-Object management.automation.authorizationmanager 'Microsoft.PowerShell')) |
Elevate
PSEXEC -i -s -d CMD
Verify
| iwr -Method GET -Uri https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts -OutFile "C:\Windows\System32\drivers\etc\hosts" | |
| ipconfig /flushdns |