This file contains 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
curl -L https://www.opscode.com/chef/install.sh | sudo bash | |
echo 'export PATH="/opt/chef/embedded/bin:$PATH"' >> ~/.bash_profile && source ~/.bash_profile | |
sudo chef-server-ctl reconfigure |
This file contains 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
HEX=c9fc17d693b58ad31448d1177728964591ad1c720b545a05c700395c980a7029 | |
i=1 | |
while (( i <= ${#HEX} )) | |
do | |
char=$(expr substr "$HEX" $i 2) | |
# echo "<$char>" | |
printf "%d\n" 0x$char | |
(( i += 2 )) | |
done |
NewerOlder