Skip to content

Instantly share code, notes, and snippets.

💭
Together, anything is possible.

A Smith Phrozyn

💭
Together, anything is possible.
Block or report user

Report or block Phrozyn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

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:

View meteor.sh
#!/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 Jan 27, 2017
An alias to ansible-vault encrypt and git add in the same command
View git-add alias
# 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 Aug 9, 2016
Bash wrapper for rdpy - first try, will try nested loops next
View test-creds.sh
#!/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
View sed snippets for working with json for ELK
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
You can’t perform that action at this time.