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
# Registry paths to check | |
$registryPaths = @( | |
"HKLM:\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\PublicProfile", | |
"HKLM:\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile", | |
"HKLM:\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile" | |
) | |
# Loop through each path and get the EnableFirewall value | |
foreach ($path in $registryPaths) { | |
try { |
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
import random | |
hobbies = ['a', 'b', 'c'] | |
hobbies_wieghts = [70, 20, 10] | |
def choice_hobby(): | |
# list enumerate here wraps the arrary in a list so choices returns the indexes | |
c = random.choices(list(enumerate(hobbies)), weights=hobbies_wieghts, k=1) | |
# For the first item in the list get the first item in the inner list | |
arrary_index = c[0][0] |
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
syntax enable | |
set exrc | |
set relativenumber | |
set nu | |
set hidden | |
set noerrorbells | |
set tabstop=4 softtabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set smartindent |
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
@ECHO OFF | |
ECHO ==================================================================== | |
ECHO Sophos Removal v1.0 - Ed Cooper 2014 | |
ECHO Removes Sophos v7 - v10 | |
ECHO ==================================================================== | |
ECHO. | |
ECHO. | |
IF NOT EXIST "%~dp0\msizap.exe" GOTO MSIZAPNOTFOUND | |
ECHO Administrative permissions required. Detecting permissions... | |
ECHO. |
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
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>NUnit</Title> | |
<Author>Mark</Author> | |
<Description></Description> | |
<HelpUrl /> | |
<Keywords /> | |
<SnippetTypes /> |
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
{ | |
"num_words": 4, | |
"word_length_min": 4, | |
"word_length_max": 4, | |
"case_transform": "CAPITALISE", | |
"separator_character": "NONE", | |
"padding_digits_before": 0, | |
"padding_digits_after": 2, | |
"padding_type": "FIXED", | |
"padding_character": "RANDOM", |