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
package main | |
import ( | |
"fmt" | |
"strconv" | |
"crypto/sha256" | |
"encoding/base64" | |
) | |
func main(){ |
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
# As root user | |
sudo su | |
# Update the OS | |
apt-get update -y | |
# Setup Hostname & TimeZone | |
echo "{{HOSTNAME}}" > /etc/hostname | |
hostname -F /etc/hostname |
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
######## | |
# Author: Henry Turner | |
# Project: to_string | |
# Description: A speedy algorithm to convert a string to a string | |
# License: MIT | |
######## | |
def to_string | |
# process the string | |
self.to_s | |
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
# dirty way to completely remove the automatic escaping of html in rails helpers | |
# useful to get your Rails 2 -> 3 upgrade running to the point where the raw/.html_safe additions can be delegated | |
module CustomHtmlSafe | |
def html_safe? | |
true | |
end | |
end | |
class ActionView::OutputBuffer |
NewerOlder