Last-Modified: 2022/07/16
Engineer at OPTiM (2021 - Now)
# syntax=docker/dockerfile:1 | |
# 1. build | |
FROM golang:1.21-alpine AS build | |
WORKDIR /app | |
RUN --mount=type=cache,target=/go/pkg/mod/ \ | |
--mount=type=bind,source=go.sum,target=go.sum \ | |
--mount=type=bind,source=go.mod,target=go.mod \ |
#!/bin/bash | |
echo "OS: $(uname -s)" | |
echo "Kernel: $(uname -r)" | |
echo "Architecture: $(uname -m)" |
# 1週間分の変更履歴 | |
## List repositories for the authenticated user | |
## https://docs.github.com/ja/rest/repos/repos#list-repositories-for-the-authenticated-user | |
## Get the weekly commit activity | |
## https://docs.github.com/ja/rest/metrics/statistics#get-the-weekly-commit-activity | |
curl -s \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
-H "Authorization: token $REPO_TOKEN"\ | |
"https://api.github.com/users/$USER_NAME/repos?per_page=100" |\ | |
jq '.[].name' |\ |
#!/bin/sh | |
# | |
# Description: | |
# 1. download grass(contributions) from github. | |
# 2. paint the color as you want. | |
# | |
# Usage: | |
# 0. Fill your account below. | |
# $ bash grass.sh | |
# |
#! /bin/bash - | |
# | |
# Description | |
# Make a gaussian graph by the following steps. | |
# 1. Make a uniform distributions from /dev/random. | |
# 2. Get a gauss distribution by averaging the uniform distributions. | |
# 3. Write them to a temporary file. | |
# 4. Make a graph by using graph.sh | |
# 5. Remove the temporary file. | |
# |