Skip to content

Instantly share code, notes, and snippets.

@r00t0vi4
r00t0vi4 / logparser.ps1
Created July 16, 2018 10:51 — 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'"
@r00t0vi4
r00t0vi4 / .bashrc
Created February 15, 2016 20:36 — forked from drakmail/.bashrc
Nice PS1 for bash
# Check for an interactive session
[ -z "$PS1" ] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
bash_prompt() {
local NONE="\[\033[0m\]" # unsets color to term's fg color
@r00t0vi4
r00t0vi4 / .bashrc screen
Created February 10, 2016 18:57 — forked from anatolyg/.bashrc screen
always load screen when session starts
# add to bottom of your .bashrc
if [ "$TERM" != "screen" ]; then
#screen -D -R
#Update 2008 Dec 16: -xRR is way better
screen -xRR
fi