Skip to content

Instantly share code, notes, and snippets.

View yuta-ron's full-sized avatar

Yutaro Nishi yuta-ron

View GitHub Profile
11.4.5.14 yjsnpi.com
@yuta-ron
yuta-ron / ublacklist.txt
Created February 4, 2023 23:35
ublacklistで検索から消しているサイト
*://www.sejuku.net/*
*://techplay.jp/*
*://qiita.com/*
*://modis.co.jp/*
*://www.modis.co.jp/*
*://web-camp.io/*
*://udemy.benesse.co.jp/*
*://itra.co.jp/*
*://www.itra.co.jp/*
*://zero-plus.io/*
@yuta-ron
yuta-ron / mute.sh
Last active September 28, 2021 10:23
[Twitter] フォロー中の全アカウントをミュートするシェル
#!/bin/bash
###########################################
# twurlコマンドをインストールしておいてください #
###########################################
SCREEN_NAME=`twurl -X GET /1.1/account/settings.json | jq -r '.screen_name'`
USER_ID=`twurl -X GET /2/users/by/username/$SCREEN_NAME | jq -r '.data.id'`
NEXT_TOKEN="initial"
@yuta-ron
yuta-ron / noise_remover.js
Last active March 6, 2021 15:30
ブラウザ版Twitterからノイズを消すやつ
// Chromeのみ。
// ScriptAutoRunnerをインストールして⇩を設定してください。
// https://chrome.google.com/webstore/detail/scriptautorunner/gpgjofmpmjjopcogjgdldidobhmjmdbm?hl=ja
const target = document.body;
const observer = new MutationObserver(records => {
document.getElementsByClassName("css-1dbjc4n r-1ysxnx4 r-k0dy70 r-1867qdf r-1phboty r-rs99b7 r-1ifxtd0 r-1udh08x")[0].style.display = "none";
document.getElementsByClassName("css-1dbjc4n r-15zivkp r-1bymd8e r-13qz1uu")[0].style.display = "none";
document.getElementsByClassName("css-1dbjc4n r-1ysxnx4 r-k0dy70 r-1867qdf r-1phboty r-rs99b7 r-1ifxtd0 r-1bro5k0 r-1udh08x")[0].style.display = "none";
@yuta-ron
yuta-ron / cli_trans.py
Last active March 5, 2020 01:11
AWS Transcript Convert to HTMLDoc
##
# cat asrOutput.json | python3 cli_trans.py > result.html
##
import json
import sys
def confidence_to_color(confidence: float) -> str:
"""confidenceの値に応じてHTMLの色を指定する"""
@yuta-ron
yuta-ron / container_force_remove
Created May 1, 2019 07:47
dockerコンテナを強制的に終了する
# docker kill 5d2561cd9278 で落とせない時
docker rm --force 5d2561cd9278
@yuta-ron
yuta-ron / functions.php
Created July 13, 2018 19:44
navmenu_with_thumbnail
<?php
/**
* Twenty Fifteen functions and definitions
*
* Set up the theme and provides some helper functions, which are used in the
* theme as custom template tags. Others are attached to action and filter
* hooks in WordPress to change core functionality.
*
* When using a child theme you can override certain functions (those wrapped
* in a function_exists() call) by defining them first in your child theme's
@yuta-ron
yuta-ron / functions.php
Created July 13, 2018 19:44
navmenu_with_thumbnail
<?php
/**
* Twenty Fifteen functions and definitions
*
* Set up the theme and provides some helper functions, which are used in the
* theme as custom template tags. Others are attached to action and filter
* hooks in WordPress to change core functionality.
*
* When using a child theme you can override certain functions (those wrapped
* in a function_exists() call) by defining them first in your child theme's