Skip to content

Instantly share code, notes, and snippets.

@kPherox
kPherox / feelcycle-diff-sheet.user.js
Last active May 14, 2021 — forked from owatan/feelcycle-diff-sheet.js
FEELCYCLE の予約ページで難易度を表示する userscript
View feelcycle-diff-sheet.user.js
// ==UserScript==
// @name feelcycle-diff-sheet.js
// @namespace http://tampermonkey.net/
// @version 0.3
// @description FEELCYCLE の予約ページで難易度を表示する userscript
// @author owatan
// @match https://m.feelcycle.com/reserve
// @icon https://m.feelcycle.com/favicon.png
// @grant none
// ==/UserScript==
@kPherox
kPherox / twitter_userid_crawl.sh
Created Apr 7, 2021
ツイッターのユーザーID収集。一回の実行で90000の範囲を探すのに10分ぐらいかかる
View twitter_userid_crawl.sh
#!/bin/bash
# ##Requirements
# - twurl
# - Ruby
# - SQLite 3
set -e
# cronとかで使えるようにsqliteとruby、ruby gemsのパスを通す。これはmacOSのHomebrewで入れた場合
View zenza-watch-dev-20210316fix-kpherox-patch.user.js
This file has been truncated, but you can view the full file.
// ==UserScript==
// @name ZenzaWatch DEV版 20210316fix
// @namespace https://github.com/segabito/
// @description ZenzaWatchの開発 先行バージョンの20210315仕様変更対応版
// @match *://www.nicovideo.jp/*
// @match *://ext.nicovideo.jp/
// @match *://ext.nicovideo.jp/#*
// @match *://blog.nicovideo.jp/*
// @match *://ch.nicovideo.jp/*
@kPherox
kPherox / niconico-user-page-dark-theme.user.css
Last active Apr 8, 2021
ニコニコ動画のマイページとユーザーページを暗くするやつ。stylish: https://userstyles.org/styles/190808
View niconico-user-page-dark-theme.user.css
/* ==UserStyle==
@name niconico user page dark theme
@namespace kpherox.dev
@version 1.2.0
@author kPherox <admin@mail.kr-kp.com>
==/UserStyle== */
@-moz-document url-prefix("https://www.nicovideo.jp/my"),
url-prefix("https://www.nicovideo.jp/user"),
url-prefix("https://www.nicovideo.jp/series") {
body.BaseLayout {
View minecraft-forge-downloader.pl
#!/usr/bin/perl
use feature qw(say);
use strict;
use warnings;
use Cwd 'abs_path';
use File::Basename 'dirname';
use File::Spec;
use Getopt::Long 'GetOptions';
use JSON::PP;
View gist:42582a90aa0d0125beef326a655cdf0c

SHORTCUTS

Key/Command Description
Tab Auto-complete files and folder names
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + W Delete the word before the cursor
Ctrl + T Swap the last two characters before the cursor
@kPherox
kPherox / nginx-proxy.docker-compose.yml
Last active May 13, 2020
nginx-proxy and letsencrypt-nginx-proxy-companion for Docker compose version 3
View nginx-proxy.docker-compose.yml
version: '3.5'
services:
nginx-proxy:
image: jwilder/nginx-proxy:alpine
restart: always
network_mode: host
ports:
- "443:443"
- "80:80"
View keys.pub.txt
BEGIN MESSAGE.
SoqBCiBCUt0YFRK VBYKMB9Le3hycjo fx03sJOhfgNGFa9 MCIQYVRvMRM6sgV
Po3ZXGpVXV3MBqv m60DrQJJqbcTCKq 6Xr2MZHgg79rPdm OTI2Vku08a3WQlk
RRMT8yQFgCfTwgY o7XH4F8Ey6JiSbA EOk41UVArILIWPN GOtlzjPCcDnFUo0
jFgTPh1jw94esFW 1LDUhQm0kKsO8IK o0cuQ2IP.
END MESSAGE.
@kPherox
kPherox / youtube-chat-hidden-name.css
Last active Sep 18, 2020
If you want user script/style, click raw button of youtube-chat-hidden-name.user.{js,css}
View youtube-chat-hidden-name.css
/* Need `.yt-live-chat-text-message-renderer >` for ignored Super Chat/stickers design. */
.yt-live-chat-text-message-renderer > #author-name {
display: none !important;
}
/* Floating left member badge. Need `.yt-live-chat-text-message-renderer >` for ignored Super Chat/stickers design. */
.yt-live-chat-text-message-renderer > #chat-badges {
position: absolute;
top: 8px;
left: 2px;
}
@kPherox
kPherox / LICENSE
Last active Jan 9, 2020
This license applies to all public Gists of https://gist.github.com/kPherox unless otherwise stated.
View LICENSE
Creative Commons Legal Code
CC0 1.0 Universal
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM