Skip to content

Instantly share code, notes, and snippets.

Avatar
💤

kPherox kPherox

💤
View GitHub Profile
@kPherox
kPherox / niconico-user-page-dark-theme.user.css
Last active Oct 15, 2020
ニコニコ動画のマイページとユーザーページを暗くするユーザーCSSです。Stylusとかで使ってください
View niconico-user-page-dark-theme.user.css
/* ==UserStyle==
@name niconico user page dark theme
@namespace kpherox.dev
@version 1.0.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") {
body {
color: #ccc;
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
View trap_sigint_and_ctrl_d.sh
#!/bin/sh
abort () {
echo "Aborted."
exit 1
}
echo "Ctrl-D to continue, Ctrl-C to abort."
trap abort 2
View yes_no.sh
#!/bin/sh
echo -n "Default yes [Y/n]: "
read y
if [[ "${y:0:1}" == [nN] ]]; then
echo "Answer no."
exit 1
fi
View root_check.sh
#!/bin/sh
if [ "$(whoami)" != "root" ]; then
exit 126
fi
You can’t perform that action at this time.