Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View tacostea's full-sized avatar
📛
Tofu on fire

Takaki IEKURA tacostea

📛
Tofu on fire
View GitHub Profile
@tacostea
tacostea / css
Last active December 21, 2020 14:07
niconico user page/ニコ動ユーザーページ用usercss
/* Last Update: 2020/08/31 */
/*
// 新ユーザーページ見づらいので自分用スタイル
// なんかあれば自分で直して
// とりあえずUserPageHeaderとUserPage-headerのクラス名はやめたほうがいいと思う
*/
/* ユーザーページ用ヘッダー(ロゴとか) */
/* 色塗りと密度調整 */
// ==UserScript==
// @name NicoNico Header
// @namespace http://tampermonkey.net/
// @version 0.2
// @description none
// @author tacostea
// @match www.nicovideo.jp/*
// @grant none
// ==/UserScript==
@tacostea
tacostea / dirname-pextax2adobe
Last active March 6, 2020 13:27
A bash one-liner to rename directories based on modified date from PENTAX format (id_mmdd) to Adobe format (yyyy-mm-dd)
for d in $(find . -name "*_*" -type d); do mv "$d" $(date +%Y-%m-%d -r $(find "$d"/*|head -1)); done
// ==UserScript==
// @name Mastodon Drawable Drawer
// @namespace https://github.com/tacostea/
// @version 0.24
// @description 畳めるDrawer
// @author tacostea
// @match https://*/web/*
// ==/UserScript==
/*
# Due to Average of `httping -c 3 https://[instance_name]/api/v1/instance` >= 1000 ms
a.weirder.earth
ablative.stream
aleph.land
amicale.net
angel.innolan.net
anti.energy
awoo.space
bapp.me
@tacostea
tacostea / mastodon-usercount.sh
Created June 3, 2017 03:04
Mastodonのユーザー数カウントするsh
#!/bin/bash
# TMP=0とか書いて置いておけばいい
. ./usercount.txt
COUNT=$(sudo -u postgres echo $(psql -U postgres -t -c 'select count(*) from accounts where domain is null;' mastodon_production))
if [ $COUNT -gt $TMP ] ; then
echo "TMP=$COUNT" > ./usercount.txt
echo "$TMP -> $COUNT"

Keybase proof

I hereby claim:

  • I am tacostea on github.
  • I am tacostea (https://keybase.io/tacostea) on keybase.
  • I have a public key ASC3XreuGIa5Y_Bssav8RnQ2DsLUzBolCa5BFYgRXHZR9Ao

To claim this, I am signing this object: