http://www.crockford.com/wrmg/base32.html
Crockford's Base32 is used as shown.
This alphabet excludes the letters I, L, O, and U to avoid confusion and abuse.
str = '0123456789ABCDEFGHJKMNPQRSTVWXYZ'
| #!/usr/bin/ruby | |
| require 'net/http' | |
| require 'uri' | |
| require 'json' | |
| resp = JSON.parse($stdin.gets) | |
| if resp["exitCode"] != 0 then | |
| uri = URI.parse("https://hooks.slack.com/services/***") |
| var API_KEY = ''; | |
| var VIDEO_ID = ''; | |
| function trigger() { | |
| getStats(); | |
| } | |
| function getStats() { | |
| url = 'https://www.googleapis.com/youtube/v3/videos?id=' + VIDEO_ID + '&key=' + API_KEY + '&fields=items(statistics)&part=statistics' |
| ssh ubuntu@targetIP -o ProxyCommand="ssh -W %h:%p -q bastion-user@bastionIP" |
| var SLACK_WEBHOOK_URL = 'https://hooks.slack.com/services/***'; | |
| var SLACK_CHANNEL = '@yyoshiki41'; | |
| var SLACK_USERNAME = 'My Life'; | |
| var SLACK_EMOJI = ':books:'; | |
| function myFunction() { | |
| var birthYear = '1990'; | |
| var birthDate = '7/5'; | |
| var now = Moment.moment(); |
| # wget https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz | |
| curl -o /tmp/go1.8.3.linux-amd64.tar.gz https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz | |
| sudo tar -C /usr/local -xzf go1.8.3.linux-amd64.tar.gz | |
| export PATH=$PATH:/usr/local/go/bin |
| aws deploy create-deployment \ | |
| --application-name api-server \ | |
| --deployment-group-name api-server \ | |
| --s3-location bucket=deployment,key=server/master/20171007124740-6c86f56/server.tar.gz,bundleType=tgz |
| curl https://raw.githubusercontent.com/getredash/redash/master/setup/ubuntu/bootstrap.sh -o ./bootstrap.sh | |
| chmod +x ./bootstrap.sh | |
| sudo -s ./bootstrap.sh |
| lsof -ti :3000 | xargs kill -9 |
| SHOW VARIABLES WHERE Variable_name LIKE 'character_set_%' OR Variable_name LIKE 'collation%' OR Variable_name LIKE 'init_connect%'; |
http://www.crockford.com/wrmg/base32.html
Crockford's Base32 is used as shown.
This alphabet excludes the letters I, L, O, and U to avoid confusion and abuse.
str = '0123456789ABCDEFGHJKMNPQRSTVWXYZ'