fzf は asdf で、ghq は golang のパッケージマネージャーでインストールする。
- asdf のセットアップ
function venv(){ | |
VENV=$(ls ~/.venv/ | fzf) && | |
source ~/.venv/${VENV}/bin/activate | |
} |
version: 1 | |
frontend: | |
phases: | |
build: | |
commands: | |
- python3 -m pip install pip setuptools -U | |
- python3 -m pip install -r requirements.txt | |
- make clean && make html | |
artifacts: | |
baseDirectory: _build/html/ |
#!/bin/gawk | |
# awk --re-interval -f kaisetsu.awk | |
RS="@"{ | |
kaisetsu="" | |
for(i=5; i<=NF; i++){ | |
gsub(/\n/, "", $i) | |
kaisetsu=kaisetsu$i | |
} | |
printf("@\n%s\n%s\n%s\n%s\n%s\n", $1, $2, $3, $4, kaisetsu) |
#!/bin/gawk | |
# awk --re-interval -f maeshori.awk | |
BEGIN{ | |
print "@" | |
} | |
!/^-------.+/{ | |
gsub(/;/, ":", $1) | |
converted=gensub(/(技能|上限|タイミング|対象|射程|目標値|対決|解説)(1|二|ニ)/, "\\1:", "g", $1) | |
converted=gensub(/(上限|タイミング|対象|射程|目標値|対決):(ー|一)/, "\\1:-", "g", converted) |
#!/bin/gawk | |
# awk --re-interval -f convert_style.awk style.txt > style.tsv | |
RS="@" { | |
split($1, sname, ":") | |
gsub("^技能:|上限:", "\t", $2) | |
gsub("^タイミング:", "\t", $3) | |
gsub("^対象:|射程:", "\t", $4) | |
gsub("^目標値:|対決:", "\t", $5) | |
gsub("^解説:", "\t", $6) |
from jinja2 import Template, Environment, FileSystemLoader | |
import csv | |
env = Environment(loader=FileSystemLoader('.'), encording='utf-8', autoescape=True) | |
template = env.get_template('temp02.xml.j2') | |
with open("kamiwaza.csv", newline="") as csvfile: | |
kamiwazareader = csv.reader(csvfile, delimiter=",", quotechar="|") | |
for row in kamiwazareader: | |
number = row[0] |
" Note: Skip initialization for vim-tiny or vim-small. | |
if 0 | endif | |
if &compatible | |
set nocompatible " Be iMproved | |
endif | |
" Required: | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ |
#!/usr/bin/gawk | |
/^.+/{ | |
LOCALUSER=$1 | |
HOSTNAME=$2 | |
PASSWORD=$3 | |
printf "powershell Start-Process powershell.exe -Verb runas\ | |
\nRename-Computer %s\ | |
\n(Get-WmiObject win32_TerminalServiceSetting -Namespace root\\cimv2\\TerminalServices).SetAllowTSConnections(1)\ | |
\nNET USER %s /add\nNET USER %s %s\ | |
\nwmic useraccount where \"Name='%s'\" set PasswordExpires=FALSE\ |