ドキュメントように画像を置く
次のレポジトリで画像を使いたい。
https://github.com/takuya/github-actions-build-and-push-docker-sample
#!/usr/bin/env bash | |
function create_ca(){ | |
# | |
ipsec pki --gen > ${CA_KEY} | |
ipsec pki --self --in ${CA_KEY} --ca --dn "C=JP, O=strongSwan, CN=${SRV_NAME} CA" > ${CA_CRT} | |
} | |
function create_server_crt(){ | |
# | |
ipsec pki --gen > ${SRV_KEY} |
[global] | |
ioengine=libaio | |
iodepth=1 | |
size=1g | |
direct=1 | |
runtime=60 | |
directory=${TARGET} | |
stonewall | |
[Seq-Read] |
次のレポジトリで画像を使いたい。
https://github.com/takuya/github-actions-build-and-push-docker-sample
#!/usr/bin/env sh | |
## @since 2020-05-15 | |
## @last 2021-01-05 | |
## @author takuya | |
## unbound にブロッキング | |
## ブロッキングするURLを定期的に更新する | |
function update_domain_lists(){ | |
update280blocker |
var jibun_login = function( id , password){ | |
// id is like "57114-12345" | |
var crn = id.split(/-/); | |
var inputs = Array.apply(null, document.querySelectorAll("input[name^=fldLoginUserCRN]")); | |
var list = crn.map(function(e, i) {return [e, inputs[i]];}); | |
list.forEach(function(e) {e[1].value = e[0]}); | |
document.querySelector("input[type=password]").value = password; | |
document.querySelector("a[id=idLogon].btn").click(); | |
} |
#!/usr/bin/env bash # -x -v | |
name=`basename $0` | |
APP_PATH=`realpath ~/Applications/JetBrains\ Toolbox` | |
declare -A APPNAME | |
APPNAME[phpstorm]="$APP_PATH/PhpStorm.app" | |
APPNAME[idea]="$APP_PATH/IntelliJ IDEA Ultimate.app" | |
APPNAME[pycharm]="$APP_PATH/PyCharm Professional.app" |
/** | |
* Created by takuya on 20170809. | |
* | |
* | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* |
<html><head> | |
<title>WindowsとOfficeのライセンス確認</title></head> | |
<body> | |
<form name="form1"> | |
<p><input type="button" value="Windowsのライセンスを調査" onClick="show_license('')" /></p> | |
</form> | |
<div id="result"></div> | |
<script type="text/javascript"> | |
//by takuya mori 2009-03-26 | |
//Windowsのシリアルを取得する。 |
require 'mechanize' | |
m = Mechanize.new | |
m.get 'http://t.co' | |
return if m.page.uri.to_s =~ %r'^https?://t.co' | |
m.page.forms[0].submit | |
m.page.form( :action=> /email/ ) | |
f = m.page.form( :action=> /email/ ) | |
f.field( :type => /mail/ ).value = 'yormail@example.com' | |
f.submit() |
# alias の代替にfunction を定義 | |
function find(){ | |
local post=() | |
local pre=() | |
local opts=() | |
local path='' | |
local mindepth=1 | |
while [[ $1 ]]; do | |
case "$1" in | |
-H | -L | -P ) pre+=($1);; |