View logstash.conf
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
input { | |
file { | |
path => "C:\dev\data\*" | |
type => "crawlerlog" | |
start_position => "beginning" | |
} | |
} | |
filter { | |
if [type] == "crawlerlog" { |
View remote_network_copy.ps1
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
$secpassword = ConvertTo-SecureString "********" -AsPlainText -Force | |
$creds = New-Object System.Management.Automation.PSCredential ("**********", $secpassword) | |
$targetip = "*************" | |
$localfolder = "C:\path\to\local\folder\" | |
$networkfolder = "\\networkfileserver\path\to\network\folder\" | |
$remotefolder = "/opt/path/to/remote/folder/" | |
#Remove old files from local directory | |
if(!(Test-Path -Path $localfolder )){ | |
New-Item -ItemType directory -Path $localfolder |
View shell_one_liners.sh
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
# iterate dir and perform mvn commands across all subdirs - in this example 'mvn clean' | |
for folder in */; do folder=${folder%*/}; cd $folder; if [[ -f "pom.xml" ]]; then mvn clean; else echo "not a maven project"; fi; cd ..; done; |
View Brewfile
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
# Taps | |
tap "homebrew/cask" | |
tap "adoptopenjdk/openjdk" | |
tap "bufbuild/buf" | |
tap "FiloSottile/musl-cross" | |
tap "messense/macos-cross-toolchains" | |
# Casks - OSX only | |
# cask "vagrant" | |
# cask "docker" |