Skip to content

Instantly share code, notes, and snippets.

View zimathon's full-sized avatar
🏠
Working from home

yusuke sasajima zimathon

🏠
Working from home
View GitHub Profile
// https://read.amazon.co.jp/kindle-library
// consoleで実行
let xhr = new XMLHttpRequest();
let domain = 'https://read.amazon.co.jp/';
let items = [];
let csvData = "";
// function
function getItemsList(paginationToken = null) {
import boto3
def is_object_encrypted(s3_client, bucket_name, key):
response = s3_client.head_object(Bucket=bucket_name, Key=key)
return 'ServerSideEncryption' in response
def encrypt_objects(bucket_name, prefix, encryption_type):
s3_client = boto3.client('s3')
# List all objects under the specified prefix

sync atom settings

y - このハンクをステージングする
n - スキップする
q - 終了する
a - 以降のハンクをすべてステージングする
d - 以降のハンクをすべてスキップする
g - 指定したハンクへ移動
/ - 正規表現によるハンクの検索
j - 未確定な前のハンクへ移動する
J - 前のハンクへ移動する
k - 未確定な次のハンクへ移動する
@zimathon
zimathon / .vsvimrc
Last active August 29, 2015 14:15
VsVim用のvimrcを作成する ref: http://qiita.com/zimathon/items/d02e587466dbdc90c9d3
set clipboard=unnamed
nnoremap Y y$
nnoremap x "_x
# nnoremap d "_d
nnoremap D "_D
@zimathon
zimathon / 0_reuse_code.js
Created March 20, 2014 04:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console