Skip to content

Instantly share code, notes, and snippets.

View tsub's full-sized avatar
👶
On leave of absence

Tsubasa Takayama tsub

👶
On leave of absence
View GitHub Profile
@tsub
tsub / github-subscribe-my-repositories.sh
Last active June 5, 2019 09:17
自分のリポジトリをまとめて watch するやつ
#!/bin/sh
PAGE=$1
SUBSCRIPTION_URLS=$(curl -s -H "Authorization: Bearer $GITHUB_API_TOKEN" "https://api.github.com/user/repos?affiliation=owner&page=$PAGE&per_page=100" | jq -r '.[] | select(.fork == false) | .subscription_url')
for url in $SUBSCRIPTION_URLS; do
RESPONSE=$(curl -s -H "Authorization: Bearer $GITHUB_API_TOKEN" "$url" | jq -r '.url')
if [ "$RESPONSE" = "null" ]; then
@tsub
tsub / .env.template
Last active July 2, 2019 13:12
esa の記事のカテゴリを整理するための雑スクリプト群
ESA_ACCESS_TOKEN=
ESA_TEAM=
@tsub
tsub / Gemfile
Last active March 15, 2020 17:42
Test codes to reproduce not thread-safe errors of Dynamoid
# frozen_string_literal: true
source 'https://rubygems.org'
gem 'dynamoid'
gem 'pry-byebug', platforms: :ruby
gem 'rake'