Skip to content

Instantly share code, notes, and snippets.

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

Mayo mayocream

我が名はめぐみん。紅魔族随一の魔法の使い手にして、爆裂魔法を操りし者。我が力、見るがいい!エクスプロージョン!
View GitHub Profile
version: "3.8"
services:
postgres:
image: postgres:13
command: -c max_connections=5000
environment:
POSTGRES_PASSWORD: kong
POSTGRES_USER: kong
POSTGRES_DB: kong
gateway.QueryPlanList{
&gateway.QueryPlan{
Operation: &ast.OperationDefinition{
Operation: "query",
Name: "",
VariableDefinitions: ast.VariableDefinitionList(nil),
Directives: ast.DirectiveList(nil),
SelectionSet: ast.SelectionSet{
&ast.Field{
Alias: "allUsers",
@mayocream
mayocream / fishshell luarocks path
Created June 29, 2022 07:41 — forked from leolovenet/fishshell luarocks path
luarocks path command for fishshell
for i in (luarocks path | awk '{sub(/PATH=/, "PATH ", $2); print "set -gx "$2}'); eval $i; end
local to_hex = require "resty.string".to_hex
local get_rand_bytes = require "kong.tools.utils".get_rand_bytes
local concat = table.concat
local proxy_span = {
trace_id = get_rand_bytes(16),
span_id = get_rand_bytes(8),
parent_id = get_rand_bytes(8),
should_sample = true,
}

Keybase proof

I hereby claim:

  • I am mayocream on github.
  • I am mayocream (https://keybase.io/mayocream) on keybase.
  • I have a public key whose fingerprint is CC3E 9C36 BF34 15F3 7E68 D592 21CB B025 7CBD DEF6

To claim this, I am signing this object:

@mayocream
mayocream / CKA-CKAD-Bookmarks.html
Created October 11, 2021 16:30
Bookmarks for CKA and CKAD Exam.
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1632151371" LAST_MODIFIED="1632151379" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks bar</H3>
<DL><p>
DOMAIN-SUFFIX,ts.shoujo.network
DOMAIN-SUFFIX,beta.tailscale.net
DOMAIN-SUFFIX,dev1.me
IP-CIDR,100.64.0.0/10
@mayocream
mayocream / clash.service
Last active March 11, 2024 08:01
/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,