Skip to content

Instantly share code, notes, and snippets.

@yujingz
yujingz / test.rb
Created August 16, 2019 05:29
Aliyun MTS API Signature Computation Ruby Version
def get_signature(params = {}, accessKeySecrt = '')
canonicalizedQueryString = ''
params.keys.sort.each do |key|
return if (params[key].nil?)
canonicalizedQueryString +=
'&' + URI.encode_www_form_component(key) + '=' +
URI.encode_www_form_component(params[key])
end
canonicalizedQueryString = canonicalizedQueryString[1..-1]

Keybase proof

I hereby claim:

  • I am yujingz on github.
  • I am yujingz (https://keybase.io/yujingz) on keybase.
  • I have a public key whose fingerprint is 5A88 8D2F F824 D833 575D DA9A 78C5 9AA6 5FB3 B598

To claim this, I am signing this object:

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

body
#header style="background-color: #1A1A1A;"
img height="13px" name="logo" src="https://s3-us-west-2.amazonaws.com/ve-go/noon-email/vego@2x.png" style="padding: 10px;" width="50"
img name="gale_img" src="https://s3-us-west-2.amazonaws.com/ve-go/email-invitation/img_full_logo@2x.png" style="display: block;width: 100%;"
table width="100%" border="0" cellspacing="0" cellpadding="0"
tr
td align="Center"
div style="background-color: #1A1A1A;height:25px; margin-top: 5px;"
a class="bar_buttons" href="vegoapp://#{@booking[:reservation].reservation_id}" id="checkin" style="margin-right:0px;"
img src="https://s3-us-west-2.amazonaws.com/ve-go/noon-email/btn_check_in_active@2x.png" alt="CHECK IN" height="16"