This file contains hidden or 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
MIT License | |
Copyright (c) 2023 inomoto | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
This file contains hidden or 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
const _deps = {} | |
const _devDeps = {} | |
function add(deps, devDeps) { | |
Object.assign(_deps, (deps || {})) | |
Object.assign(_devDeps, (devDeps || {})) | |
} | |
const devDeps = (targets) => add({}, targets) | |
add({ | |
"react": "^17.0.2", |
This file contains hidden or 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
# syntax=docker/dockerfile:1.3-labs | |
# usage (for gh user): | |
# $ docker build -t usage . | |
# $ docker run -it -e ACCESS_TOKEN=$(cat ~/.config/gh/hosts.yml | grep token | tr -s ' ' | cut -d' ' -f 3) usage your-org-name | |
FROM ruby:3.0 | |
RUN gem install octokit |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>app</title> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"> | |
</head> |
This file contains hidden or 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
import boto3 | |
ec2 = boto3.client("ec2") | |
ssm = boto3.client("ssm") | |
# refs https://qiita.com/cumet04/items/5888e037105e6ea5f6bc | |
def lambda_handler(event, context): | |
try: | |
targets = target_instances("cron", "true") |
This file contains hidden or 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
### system side setup ---------- | |
execute "enable docker-ce repo" do | |
repo = "https://download.docker.com/linux/fedora/docker-ce.repo" | |
command "dnf config-manager --add-repo=#{repo}" | |
not_if "test -e /etc/yum.repos.d/docker-ce.repo" | |
end | |
%w( | |
awscli |
This file contains hidden or 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
{"lastUpload":"2020-04-29T15:04:09.105Z","extensionVersion":"v3.4.3"} |
This file contains hidden or 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
#!/bin/bash | |
K3S_VERSION=v0.8.0 | |
BIN_DIR=/usr/local/bin | |
# for master | |
#cat > /opt/k3s_env_put.sh << 'EOF' | |
##!/bin/bash | |
# | |
#ip=$(hostname | cut -d'.' -f1 | cut -d'-' -f2,3,4,5 | tr '-' '.') |
This file contains hidden or 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
#!/bin/bash | |
anyenv update | |
LATEST_NODE=$(nodenv install -l | grep '\ 10' | tail -n 1) | |
nodenv install $LATEST_NODE | |
nodenv local $LATEST_NODE | |
npm install -g yarn | |
yarn init | |
yarn add -D typescript prettier |
NewerOlder