Skip to content

Instantly share code, notes, and snippets.

View mayocream's full-sized avatar
我が名はめぐみん。紅魔族随一の魔法の使い手にして、爆裂魔法を操りし者。我が力、見るがいい!エクスプロージョン!

Mayo Takanashi mayocream

我が名はめぐみん。紅魔族随一の魔法の使い手にして、爆裂魔法を操りし者。我が力、見るがいい!エクスプロージョン!
View GitHub Profile
@mayocream
mayocream / clash.service
Last active June 27, 2025 10:17
/etc/systemd/system/clash.service
[Unit]
Description=Clash
After=network.target
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=/etc/clash
User=root
version: '2'
services:
redis-node-0:
image: docker.io/bitnami/redis-cluster:5.0
volumes:
- redis-cluster_data-0:/bitnami/redis/data
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
- 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5'
.menuBar {
background-color: #fff;
border-bottom: 1px solid #eee;
padding: 8px;
}
.menuBar-Btn_Icon,.menuBar-Btn_Icon-fav {
fill: #222;
}
.mtaBox-TextArea-Wrap,
.mtaBox-DrawerBtn,
// Package k8s provides pod discovery for Kubernetes.
package k8s
import (
"context"
"fmt"
"log"
"path/filepath"
"strconv"
@mayocream
mayocream / ublock-filter
Created April 5, 2021 17:06
Block share.dmhy.org AD rule.
## a > img
@mayocream
mayocream / .zshrc
Last active December 29, 2021 05:35
ZSH_THEME="robbyrussell"
# https://github.com/SukkaW/zsh-proxy
plugins=(
git
zsh-proxy
)
# Install Go
# China mirror https://studygolang.com/dl
@mayocream
mayocream / cloudflare.sh
Created February 4, 2021 03:21 — forked from Manouchehri/cloudflare.sh
Allow CloudFlare only
# Source:
# https://www.cloudflare.com/ips
# https://support.cloudflare.com/hc/en-us/articles/200169166-How-do-I-whitelist-CloudFlare-s-IP-addresses-in-iptables-
for i in `curl https://www.cloudflare.com/ips-v4`; do iptables -I INPUT -p tcp -m multiport --dports http,https -s $i -j ACCEPT; done
for i in `curl https://www.cloudflare.com/ips-v6`; do ip6tables -I INPUT -p tcp -m multiport --dports http,https -s $i -j ACCEPT; done
# Avoid racking up billing/attacks
# WARNING: If you get attacked and CloudFlare drops you, your site(s) will be unreachable.
iptables -A INPUT -p tcp -m multiport --dports http,https -j DROP
@mayocream
mayocream / .git-commit-template.txt
Created January 6, 2021 01:47 — forked from adeekshith/.git-commit-template.txt
This commit message template helps you write great commit messages and enforce it across teams.
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
@mayocream
mayocream / FontMod.yaml
Created November 28, 2020 13:28
telegram
style: &style
# Remove '#' to override font style
# size: 0
# width: 0
# weight: 0
# italic: false
# underLine: false
# strikeOut: false
# charSet: 0
# outPrecision: 0
@mayocream
mayocream / settings.json
Last active November 30, 2020 08:04
powershell
// This file was initially generated by Windows Terminal Preview 1.5.3242.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
// You can add more global application settings here.