This file contains hidden or 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
#!/usr/bin/env ruby | |
# Converts an Openssl format ec private key to an iOS Compatible version | |
# Generate a key using something like `openssl ecparam -name prime256v1 -genkey -noout -out openssl.key -outform der` | |
unless ARGV.length > 1 | |
puts "You need to specify an input and output file name" | |
exit 1 | |
end |
This file contains hidden or 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
# Enable bash completion | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
. $(brew --prefix)/etc/bash_completion | |
fi | |
# Customize the prompt | |
if [[ ${EUID} == 0 ]] ; then | |
PS1="\[\033[01;31m[\]\h\[\033[01;37m\] \033[01;34m\w \033[0;33m\t\033[01;31m] \n\$\[\033[00m\] " | |
else | |
PS1="\[\033[01;32m[\]\u@\h\[\033[01;37m\] \033[01;34m\w \033[0;33m\t\033[01;32m] \n\$\[\033[00m\] " |
This file contains hidden or 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
set nocompatible | |
filetype indent plugin on | |
syntax on |