Skip to content

Instantly share code, notes, and snippets.

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

Mayo Takanashi mayocream

我が名はめぐみん。紅魔族随一の魔法の使い手にして、爆裂魔法を操りし者。我が力、見るがいい!エクスプロージョン!
View GitHub Profile
@mayocream
mayocream / outbound-email-with-cloudflare.md
Created May 15, 2024 05:12 — forked from irazasyed/outbound-email-with-cloudflare.md
Using Gmail SMTP with Cloudflare Email Routing: A Step-by-Step Guide

Using Gmail SMTP with Cloudflare Email Routing: Step-by-Step Guide

Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.

Step 1: Enable 2-Factor Authentication

To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.

Step 2: Create an App Password for Mail

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 August 30, 2024 03:43
/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'