Skip to content

Instantly share code, notes, and snippets.

View Phrozyn's full-sized avatar
Focusing on Optimizations and Efficiencies

A Smith Phrozyn

Focusing on Optimizations and Efficiencies
View GitHub Profile
"sigma": {
"level": "low",
"text": "",
"falsepositives": [
"backups to gdrive, etc. filtering will be necessary"
"status": "testing"
"release_date": "2020-04-23T09:17:18.000Z",

Keybase proof

I hereby claim:

  • I am Phrozyn on github.
  • I am phrozyn ( on keybase.
  • I have a public key whose fingerprint is B8C2 15FD DE50 451D 2A3A AC27 4A14 056F 9197 2B1F

To claim this, I am signing this object:

# This is the Meteor install script!
# Are you looking at this in your web browser, and would like to install Meteor?
# Just open up your terminal and type:
# curl | sh
Phrozyn / git-add alias
Last active January 27, 2017 18:26
An alias to ansible-vault encrypt and git add in the same command
# Create a .bash_aliases in your home dir and add the following (changing to your username of course
alias git-add='/Users/<username>/'
# Add the following to your .bash_profile (this will only ever need to be added back in if you update bash)
source ~/.bash_aliases
#Add the following script to your home dir (usually /Users/<username>
# This could definitely be improved to add a check for file-type
Phrozyn /
Last active August 9, 2016 19:18
Bash wrapper for rdpy - first try, will try nested loops next
for i in ${rdpHost[@]}; do
echo ${i} >> testcredresult.txt
python rdpy/bin/ -k en -u <username> -p <password> ${i} >> testcredresult.txt 2>&1
sleep 10
exit 0
Remove enclosing brackets
sed -i 's/\(\[\|\]\)//g' $file
Add a new line after closing brace and comma
sed -i 's/\}\,/}\,\n/g' $file
Add index with type
sed -i 's/{/{"index":{"_index":"<index_name>","_type":"<type>"}}\n{/g' $file
Replace all spaces between two words with underscores
sed -i -e 's/\(\w\)\s\(\w\)/\1_\2/g' $file
Add a new line at the end of the file
sed -i -e '$a\' $file