Skip to content

Instantly share code, notes, and snippets.

Avatar

Hiroshi Sawai s-hiroshi

View GitHub Profile
View WP API v2 image upload from media endpoint
/*
* WP REST API version 2.0-beta7
* API base url ishttp://www.example.com/wp-json
*
* Reference
* https://wordpress.org/support/topic/new-post-with-image
*/
/*
* Get Guzzle HTTP Client. That client has been authenticated.
*/
View du
```bash
$ du -g -x -m -d 5 | awk '$1 >= 500{print}'
```
re. https://qiita.com/silva114jp/items/6e1e64e9aeaca62b1c04
View s3_copy
```
aws s3 cp file.txt s3://{{バケット名}}
```
View os-version
```
// 設定ファイル検索
$ ll /etc/*-release
// バージョン確認(例 redhat)
$ cat /etc/redhat-release
```
ref.
https://qiita.com/sion_cojp/items/04a2aa76a1021fe77079
View shell
```
$ mysqladmin ping -u {{user}} -p -h {{host}}
```
View html5
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
</html>
View ssh
ProxyCommand ssh -W %h:%p {{踏み台サーバーエイリアス}}