Skip to content

Instantly share code, notes, and snippets.

Avatar
😇
INNOCENT

KOHMURA Jin jadiunr

😇
INNOCENT
View GitHub Profile
@jadiunr
jadiunr / delete_all_private_statuses.pl
Last active Apr 5, 2020
Mastodonの鍵トゥを片っ端から消して回るスクリプト 自己責任
View delete_all_private_statuses.pl
use strict;
use warnings;
use utf8;
use Furl;
use JSON qw/decode_json/;
$|=1;
my $domain = '<YOUR MASTODON DOMAIN>';
my $access_token = '<YOUR MASTODON ACCESS TOKEN>';
@jadiunr
jadiunr / get_all_own_repositories.sh
Created Jul 27, 2021
リポジトリ全部抜く
View get_all_own_repositories.sh
#!/bin/bash
# Usage: ./get_all_own_repositories.sh <your github token>
# Requirements: jq, ghq
TOKEN=$1
PAGE=1;
while true; do
REPOS=`curl -sS -H "Authorization: Bearer $TOKEN" -H 'Accept: application/vnd.github.v3+json' https://api.github.com/user/repos?page=$PAGE | jq -r .[].ssh_url`
if [ -z "$REPOS" ]; then
exit