var gulp = require('gulp');

var jshint = require('gulp-jshint');

JohnDX 發表在 痞客邦 留言(0) 人氣()

 

Internationalization

JohnDX 發表在 痞客邦 留言(0) 人氣()

Using OpenSSL to encrypt messages and files on Linux

OpenSSL enc

JohnDX 發表在 痞客邦 留言(0) 人氣()

[原]使用cat命令和EOF标识输出多行文件

[Linux] cat <<EOF (Here document) 的用法

JohnDX 發表在 痞客邦 留言(0) 人氣()

製作可開機USB Win7安裝隨身碟


JohnDX 發表在 痞客邦 留言(0) 人氣()

Sublime Text2 SublimeCodeIntel 語言開發套件包 (含追蹤程式碼)

[Sublime Text] 用 SublimeCodeIntel 輔助 auto-complete

文章標籤

JohnDX 發表在 痞客邦 留言(0) 人氣()

天呀! 這個舞蹈編的好棒!

舞者更是跳的超好!!!

JohnDX 發表在 痞客邦 留言(0) 人氣()

http://wen00072-blog.logdown.com/posts/139116-lear...


JohnDX 發表在 痞客邦 留言(0) 人氣()

boto using server side encryption need Signature v4

if not boto.config.get('s3', 'use-sigv4'):

JohnDX 發表在 痞客邦 留言(0) 人氣()

```
from boto.s3.connection import S3Connection
from boto.sts.connection import STSConnection
sts_conn = STSConnection(aws_access_key_id=self._secret_id, aws_secret_access_key=self._access_key)
# get limited privilege by policy
federation_token = sts_conn.get_federation_token(user_name, duration=duration, policy=policy)
sts_conn.close()
s3conn = S3Connection(federation_token.credentials.access_key, 
federation_token.credentials.secret_key,
security_token=federation_token.credentials.session_token)
upload_url = s3conn.generate_url(duration, 'PUT', bucket_name, object_key)
s3conn.close()
```


JohnDX 發表在 痞客邦 留言(0) 人氣()