This file contains hidden or 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
Remove duplicates | |
awk '!(count[$0]++)' old.txt > new.txt | |
Sort wordlist by length | |
awk '{print length, $0}' old.txt | sort -n | cut -d " " -f2- > new.txt | |
Sort by alphabetical order |
This file contains hidden or 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
#include <windows.h> | |
#include <tlhelp32.h> | |
#include <iostream> | |
#include <algorithm> | |
int currentShot = 0; | |
int gunAttachments[2][4]; | |
int scopeType[2]; | |
int attMod[2]; | |
int cur_gun_id[3]; |
This file contains hidden or 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-Module ActiveDirectory | |
$UserName = Read-Host "Please enter username" | |
#Get main DC | |
$PDC = (Get-ADDomainController -Filter * | Where-Object {$_.OperationMasterRoles -contains "PDCEmulator"}) | |
#Get user info | |
$UserInfo = Get-ADUser -Identity $UserName | |
#Search PDC for lockout events with ID 4740 | |
$LockedOutEvents = Get-WinEvent -ComputerName $PDCEmulator.HostName -FilterHashtable @{LogName='Security';Id=4740} -ErrorAction Stop | Sort-Object -Property TimeCreated -Descending | |
#Parse and filter out lockout events | |
Foreach($Event in $LockedOutEvents) |
This file contains hidden or 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
private bool StringValidator(string input) | |
{ | |
string pattern = "[^a-zA-Z]"; | |
if (Regex.IsMatch(input, pattern)) | |
{ | |
return true; | |
} | |
else | |
{ | |
return false; |
This file contains hidden or 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 | |
title Activate Microsoft Office 2019 ALL versions for FREE!&cls&echo ============================================================================&echo #Project: Activating Microsoft software products for FREE without software&echo ============================================================================&echo.&echo #Supported products:&echo - Microsoft Office Standard 2019&echo - Microsoft Office Professional Plus 2019&echo.&echo.&(if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo ============================================================================&ech |
This file contains hidden or 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
Get-Service | |
Status Name DisplayName | |
------ ---- ----------- | |
Stopped AJRouter AllJoyn Router Service | |
Stopped ALG Application Layer Gateway Service | |
Stopped AppIDSvc Application Identity | |
Running Appinfo Application Information |
This file contains hidden or 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
## ENUM ALL START MENU ITEMS | |
(New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | %{$_.Name} | sort | |
## UNPIN ALL FROM STARTMENU | |
(New-Object -Com Shell.Application). | |
NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}'). | |
Items() | | |
%{ $_.Verbs() } | | |
?{$_.Name -match 'Un.*pin from Start'} | | |
%{$_.DoIt()} |
This file contains hidden or 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
Public Sub saveAttachtoDisk() | |
Dim itm As Outlook.MailItem | |
Dim currentExplorer As Explorer | |
Dim Selection As Selection | |
Dim strSubject As String, strExt As String | |
Dim objAtt As Outlook.Attachment | |
Dim saveFolder As String | |
Dim enviro As String | |
' enviro = CStr(Environ("\\Corp.ngsmedicare.com\Users")) |
This file contains hidden or 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
netsh interface teredo set state disabled | |
netsh interface 6to4 set state disabled | |
netsh winsock reset | |
netsh interface isatap set state disable | |
netsh int tcp set global timestamps=disabled | |
netsh int tcp set heuristics disabled | |
netsh int tcp set global autotuninglevel=disable | |
netsh int tcp set global congestionprovider=ctcp | |
netsh int tcp set supplemental Internet congestionprovider=CTCP | |
netsh int tcp set global chimney=disabled |
This file contains hidden or 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
<# | |
20gb E: SQLBinaries | |
20gb F: SystemDB | |
10gb G: TempDBData | |
10gb H: TempDBData2 | |
10gb I: TempDBData3 | |
10gb J: TempDBData4 | |
10gb K: TempDBLog | |
50gb L: SQLData | |
20gb M: SQLLog |
NewerOlder