Skip to content

Instantly share code, notes, and snippets.

Yoel yoelblum

Block or report user

Report or block yoelblum

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 gist:1b1c42ca33b199d08a4e44563010c51c
def leaseweb_secure_url
cname = ''
path = path_to_file
secret = 'YourSecret'
expire = ( + 86400).to_s
ip = ''
secure_url = secret + ip + path + expire
secure_url_md5 = Digest::MD5.digest(secure_url)
secure_url_base64 = Base64.strict_encode64(secure_url_md5)
secure_url_base64 = secure_url_base64.gsub('+', '-').gsub('/', '_')
You can’t perform that action at this time.