Skip to content

Instantly share code, notes, and snippets.

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

Mayo mayocream

我が名はめぐみん。紅魔族随一の魔法の使い手にして、爆裂魔法を操りし者。我が力、見るがいい!エクスプロージョン!
View GitHub Profile
@mayocream
mayocream / k8s-echo-test.yml
Last active September 1, 2020 08:13
k4k8s-test
apiVersion: v1
kind: Service
metadata:
labels:
app: echo
name: echo
spec:
ports:
- port: 80
name: public
@mayocream
mayocream / conf.user.json
Last active January 4, 2021 03:20
Typora
/** For advanced users. */
{
"defaultFontFamily": {
"standard": "Source Han Serif", //String - Defaults to "Times New Roman".
"serif": "Source Han Serif", // String - Defaults to "Times New Roman".
"sansSerif": "Source Han Sans", // String - Defaults to "Arial".
"monospace": "JetBrains Mono" // String - Defaults to "Courier New".
},
"autoHideMenuBar": false, //Boolean - Auto hide the menu bar unless the `Alt` key is pressed. Default is false.
@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.
@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 / .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 / 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 / .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 / ublock-filter
Created April 5, 2021 17:06
Block share.dmhy.org AD rule.
## a > img
// Package k8s provides pod discovery for Kubernetes.
package k8s
import (
"context"
"fmt"
"log"
"path/filepath"
"strconv"
.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,