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 (https://keybase.io/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:

#!/bin/sh
# This is the Meteor install script!
#
# Are you looking at this in your web browser, and would like to install Meteor?
#
# MAC AND LINUX:
# Just open up your terminal and type:
#
# curl https://install.meteor.com/ | sh
@Phrozyn
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>/gitadd-ansiblevault.sh'
# 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
---------------------------------------------------------------------
#!/bin/sh
@Phrozyn
Phrozyn / test-creds.sh
Last active August 9, 2016 19:18
Bash wrapper for rdpy - first try, will try nested loops next
#!/bin/bash
rdpHost=(10.0.0.1:3389 10.0.0.2:3389)
for i in ${rdpHost[@]}; do
echo ${i} >> testcredresult.txt
python rdpy/bin/rdpy-rdpclient.py -k en -u <username> -p <password> ${i} >> testcredresult.txt 2>&1
sleep 10
done
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