I hereby claim:
- I am azrsh on github.
- I am azarashi2931 (https://keybase.io/azarashi2931) on keybase.
- I have a public key ASBuV-Oz4zUSmODkuzgDXKUPcjOeol9Kft-3Wgw5Ny1_JQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
function remind() { | |
const calendars = CalendarApp.getAllCalendars(); | |
for (const calendar of calendars) { | |
const now = new Date(); | |
for (const event of calendar.getEventsForDay(now)) { | |
const endTime = event.getEndTime(); | |
const minutesBefore = (minutes) => { | |
const date = new Date(endTime); | |
date.setMinutes(endTime.getMinutes() - minutes); | |
return date; |
#set text(font: ("IPAexMincho")) | |
#let data = yaml("input/data.yaml") | |
= 履歴書 | |
#let today = datetime.today() | |
#let birthday = datetime(year: data.birth_day.year, month: data.birth_day.month, day: data.birth_day.day) | |
#let age = { | |
let after-birthday = today.month() > birthday.month() or ( | |
today.month() == birthday.month() and today.day() >= birthday.day() |
#!/bin/bash | |
HOST=$1 | |
curl -sSL "https://github.com/$(gh api user | jq -r '.login').keys" | ssh "${HOST}" 'TEMP=$(mktemp); cat - ~/.ssh/authorized_keys | sort | uniq > ${TEMP}; cat ${TEMP} > ~/.ssh/authorized_keys' |
#!/bin/bash -e | |
while [[ $# -gt 0 ]]; do | |
case $1 in | |
-g|--resource-group) | |
group="$2" | |
shift | |
shift | |
;; | |
-n|--name) |
font: | |
normal: | |
family: "FiraCode Nerd Font" | |
bold: | |
family: "FiraCode Nerd Font" | |
italic: | |
family: "FiraCode Nerd Font" | |
env: | |
TERM: xterm-256color | |
window: |
#!/bin/bash | |
$@ | |
EXIT_CODE=${?} | |
if [ ${EXIT_CODE} = 0 ]; then | |
MESSAGE="✅ \`${@}\` terminated with exit code ${EXIT_CODE}" | |
else | |
MESSAGE="🚨 \`${@}\` terminated with exit code ${EXIT_CODE}" | |
fi |
#!/bin/bash | |
set -euCo pipefail | |
function main() { | |
local default_branch="$(git default-branch)" | |
git branch -d $(git branch --merged "${default_branch}" | grep -vE "\*|${default_branch}") | |
} | |
main |
#!/bin/bash | |
set -euo pipefail | |
function main() { | |
local -r name=$1 | |
local -r arn=$2 | |
local out | |
out=$(aws sts assume-role --role-arn "$arn" --role-session-name "$USER-$(date +'%s')") |