psql DATABASE_URL -c "select id,title from articles" -A -F, | pbcopy
-A
位置揃えなし-F,
カンマ区切りDATABASE_URL
はpostgres://user:password@host:port/database
# target_version: | |
# rubocop v0.34.2 | |
# 自動生成されるものはチェック対象から除外する | |
AllCops: | |
Exclude: | |
- "vendor/**/*" # rubocop config/default.yml | |
- "db/schema.rb" | |
DisplayCopNames: true |
#!/bin/zsh | |
case "$1" in | |
test) | |
TYPE=$1 | |
;; | |
clean) | |
TYPE=$1 | |
;; | |
*) |
Vaultを正しく理解して、実務で導入/運用をできるようにするワークショップです。 なお、WEB+DB PRESS Vol.104をあらかじめ買って「Hashicorp Vaultで秘密情報管理」の記事を読んでおくとバッチリでしょう。
import fetch from "node-fetch" | |
const sleep = msec => new Promise(resolve => setTimeout(resolve, msec)) | |
type Page = { | |
id: string | |
title: string | |
isPublic: boolean | |
} |
Currently, there is an explosion of tools that aim to manage secrets for automated, cloud native infrastructure management. Daniel Somerfield did some work classifying the various approaches, but (as far as I know) no one has made a recent effort to summarize the various tools.
This is an attempt to give a quick overview of what can be found out there. The list is alphabetical. There will be tools that are missing, and some of the facts might be wrong--I welcome your corrections. For the purpose, I can be reached via @maxvt on Twitter, or just leave me a comment here.
There is a companion feature matrix of various tools. Comments are welcome in the same manner.
I hereby claim:
To claim this, I am signing this object:
moved: https://github.com/linyows/lunch-train.gs |
#!/bin/bash | |
pr_id=$(git log | grep 'Merge pull request' | head -n 1 | sed -e 's/[^0-9]//g') | |
repo=$(git remote get-url origin | sed -e 's/ssh:\/\/git@.*\/\(.*\)\/\(.*\).git/\1\/\2/') | |
title=$(curl -s -H "Authorization: token ${GITHUB_TOKEN}" \ | |
${GITHUB_API}repos/${repo}/pulls/${pr_id} | grep title | sed -e 's/.*".*": "\(.*\)",/\1/g') | |
echo $title |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <regex.h> | |
#include <string.h> | |
// Unatched: 0 | |
// Matched: 1 | |
int octopass_match(char *str, char *pattern, char **matched) | |
{ | |
int res; |