Lambda でメモリサイズをあげておかないと、大きいファイルの場合は image magick の実行でエラーになります。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return handlerInput.responseBuilder | |
.speak('Hello APL.') | |
.reprompt('Hello APL.') | |
.addDirective({ | |
"type" : "Alexa.Presentation.APL.RenderDocument", | |
"token" : "token", | |
"document" : { | |
"type" : "APL", | |
"version" : "1.0", | |
"theme" : "dark", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./dayone-to-quiver -i "~/Desktop/exporttech/tech.json" -o "/tmp/dayone.qvnotebook" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface RequestHandler { | |
canHandle(handlerInput: HandlerInput): Promise<boolean> | boolean; | |
handle(handlerInput: HandlerInput): Promise<Response> | Response; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"strings" | |
"net/http" | |
"net/url" | |
) | |
/* | |
Slack にメッセージを送信します。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
raspistill -o /tmp/image.jpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nkf -SLuw --overwrite ./**/* | |
S → Shift-JIS を仮定する、半角カナ文字とかの変換がうまくいくが、問題が起こる場合もあるので注意 | |
Lu → 改行コードを LF にする | |
w → 文字コードを UTF-8 にする |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setColor() { | |
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); | |
var startRow = 2; // 開始行を指定 | |
var lastRow = sheet.getLastRow(); | |
var lastColumn = sheet.getLastColumn(); | |
for (var i = startRow; i <= lastRow; i++ ) { | |
var range = sheet.getRange(i, 1, 1 ,lastColumn); | |
// 色を設定するための値(ステータス)を取得する。 | |
// 行オフセット、列オフセット(一番左が0はじまりで取得する列数を指定。ここの値をステータス列の列数に変更すればOK)、 | |
// オフセット範囲の行数、オフセット範囲の列数 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; ------------------------------------- | |
;; TeraTerm ログインスクリプト | |
;; SSHで接続する。 | |
;; ログを取る。 | |
;; ------------------------------------- | |
;; ログインユーザー名(アカウント) | |
;;(自分のユーザー名に合わせて変えてください) | |
strUsername = 'user' | |
strPassword = 'pass' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[client] | |
default-character-set=utf8 | |
[mysqld] | |
datadir=/var/lib/mysql | |
socket=/var/lib/mysql/mysql.sock | |
user=mysql | |
# Disabling symbolic-links is recommended to prevent assorted security risks | |
symbolic-links=0 | |
log-slow-queries=mysql_slow.log |
NewerOlder