Skip to content

Instantly share code, notes, and snippets.

@ctrl78
ctrl78 / logparser.ps1
Created May 20, 2020 14:43 — forked from exp0se/logparser.ps1
Logparser log parsing
# Logparser
###############
# Security Log
###############
# Find Event id
& 'C:\Program Files (x86)\Log Parser 2.2\LogParser.exe' -stats:OFF -i:EVT "SELECT * FROM 'Security.evtx' WHERE EventID = '5038'"
@ctrl78
ctrl78 / Microsoft.PowerShell_profile.ps1
Created February 22, 2018 11:15 — forked from bdangit/Microsoft.PowerShell_profile.ps1
Basic Windows Workstation Configuration
Import-Module posh-git
Import-Module PSReadline
$env:EDITOR = "vim"
# aliases
Set-Alias open explorer.exe -option AllScope
Set-Alias make mingw32-make.exe -option AllScope
Set-Alias p packer.exe -option AllScope
Set-Alias v vagrant.exe -option AllScope
@ctrl78
ctrl78 / basic.rb
Created December 26, 2016 14:31 — forked from karstenmueller/basic.rb
Basic Workstation Configuration
chocolatey_package 'git' do
package_name 'git'
options '-params /GitAndUnixToolsOnPath'
end
packages = %w[conemu visualstudiocode 7zip winmerge vagrant autohotkey]
packages.each do |pkg|
chocolatey_package pkg
end
@ctrl78
ctrl78 / Example1Runspace.ps1
Created December 5, 2016 16:19 — forked from proxb/Example1Runspace.ps1
Example 1 of returning data back from a runspace
# Create an array of computers to do work against
$Computers = “computer01”,”computer02”,”computer03”,”computer04”,”computer05”
# Create an empty array that we'll use later
$RunspaceCollection = @()
# This is the array we want to ultimately add our information to
[Collections.Arraylist]$qwinstaResults = @()
# Create a Runspace Pool with a minimum and maximum number of run spaces. (http://msdn.microsoft.com/en-us/library/windows/desktop/dd324626(v=vs.85).aspx)