method | path parameter | others parameters | ||
---|---|---|---|---|
pages.list | GET | 〇 | user | ページの一覧を取得 |
pages.create | POST | 〇 | ページを作成 | |
pages.update | POST | 〇 | ページを更新 | |
pages.get | GET | 〇 | ページを取得 | |
pages.seen | POST | 〇 | ページのタグを取得 |
- Download Raspbian for Raspberry Pi
- Version:November 2018
- Release date:2018-11-13
- Kernel version:4.14
- お約束のコマンド
sudo apt update
sudo apt upgrade
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
var AWS = require('aws-sdk'); | |
const ec2 = new AWS.EC2(); | |
exports.handler = (event, context, callback) => { | |
if(typeof(event.ec2id) !== "undefined") { | |
ec2.startInstances({InstanceIds: [event.ec2id]}).promise() | |
.then((r) => { | |
console.log("START EC2 instance", event.ec2id); | |
callback(null, 'START EC2 instance: ' + event.ec2id); |
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
# 固定長のShift_JISファイルの特定位置の文字を削除する | |
$filename = "hogehoge.txt" | |
$tempfile = "ZZZZZ_$filename" | |
$enc = [Text.Encoding]::GetEncoding("Shift_JIS") | |
$fhIn = New-Object System.IO.StreamReader($filename, $enc) | |
$fhOut = New-Object System.IO.StreamWriter($tempfile, $false, $enc) | |
$isCuted = $FALSE | |
# 1行ずつ処理 | |
while (($l = $fhIn.ReadLine()) -ne $null) { |
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
<?php | |
$server = var_export( $_SERVER, true ); | |
file_put_contents( date('YmdHis')."_S.txt", var_export( $server,true ) ); | |
$method = $_SERVER['REQUEST_METHOD']; | |
if ($method == 'POST') { | |
$post = var_export( $_POST, true ); | |
file_put_contents( date('YmdHis')."_P.txt", var_export( $post,true ) ); | |
} |
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
#!/bin/sh | |
ls -la /tmp/ | |
rm -rf /tmp/wget.$1 | |
rm /tmp/urls.txt.$1 | |
rm /tmp/$1.tar.gz | |
ls -la /tmp/ |
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
sudo yum update | |
sudo yum groupinstall "Development Tools" | |
sudo yum install zlib-devel.x86_64 | |
sudo yum install perl-ExtUtils-MakeMaker curl-devel expat-devel openssl-devel | |
wget https://www.kernel.org/pub/software/scm/git/git-2.15.1.tar.xz | |
tar Jxfv git-2.15.1.tar.xz | |
cd git-2.15.1 |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Receive action="https://ceaseless-trees-XXXX.twil.io/fax.received" /> | |
</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 ( | |
"bufio" | |
"encoding/json" | |
"encoding/xml" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" |