雑にteeしながら実行するスクリプト書いてみた。
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
## 普通に | |
echo 2 5 9 8 1 3 7 4 | sed 's/ /+/g' | bc | |
## 変態だと思ったがそうでもなかった | |
echo 2 5 9 8 1 3 7 4 | tr ' ' '\n' | awk '{sum = sum + $0} END{print sum}' |
hoge | huga |
---|---|
aaa | bbb |
hoge | huga
-----|------
aaa | bbb
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
# file name example | |
## 2016-04-22 06.21.33.jpg | |
## IMG_20160503_172044.jpg | |
TARGET="$@" | |
# for 2016-04-22 06.21.33.jpg | |
FILE_DATE=$(echo "${TARGET}" | grep -Eo '[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}.[0-9]{2}.[0-9]{2}') | |
DATE_FORMAT="%Y-%m-%d %H.%M.%S" |
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
task_definition: | |
-- -- snip -- -- | |
services: | |
web: | |
secrets: | |
- name: "ENVIRON_1" | |
value_from: "/app/production/environt_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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "", | |
"Effect": "Allow", | |
"Action": "ssm:DescribeParameters", | |
"Resource": "*" | |
}, | |
{ |
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
- name: batch 1 | |
cron: '0 16 * * ? *' # Scheduled Event 用の cron 式を記載 | |
command: batchcommand arg1 arg2 # `python manage.py` に続くコマンド |
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
# Maintainer: yuhr <sdn.pate(at)gmail.com> | |
pkgname=ttf-cica | |
pkgver=4.1.1 | |
pkgrel=1 | |
pkgdesc="Composite font with Ubuntu Mono and Rounded Mgen+." | |
url="https://github.com/miiton/Cica" | |
license=('custom') | |
arch=('any') | |
depends=('fontconfig' 'xorg-font-utils') |
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
#!/usr/bin/env python3 | |
import os | |
import datetime | |
import urllib.request | |
import json | |
def fetch_h2o_status(status_url="http://localhost/server-status"): | |
req = urllib.request.Request(url='{0}/json'.format(status_url)) |
OlderNewer