Skip to content

Instantly share code, notes, and snippets.

Avatar
☀️
洗濯物をしています

tamaina tamaina

☀️
洗濯物をしています
View GitHub Profile
@mamemomonga
mamemomonga / misskey.md
Last active Mar 5, 2022
Docker Imageを使ったmisskeyの起動例
View misskey.md

misskey設置例(docker image)

  • misskey の構築例です
  • Docker Hub で公開されているイメージを使用します
  • misskey/releaseTagsで最新のバージョンを確認する
  • 2021年8月 作成

凡例

  • "#" から始まっているものは rootでの操作
@cutiful
cutiful / mastodon-ip.md
Last active May 1, 2022
Detecting the real IP of a Cloudflare'd Mastodon instance
View mastodon-ip.md

Detecting the real IP of a Cloudflare'd Mastodon instance

NB: This will not work for instances that proxy outgoing requests!

Reading the docs

I wanted to find a way to detect the real IP address of a Mastodon/Pleroma/Misskey/etc instance hosted behind Cloudflare. How to do that? Well, it's federated, which means I can probably get it to send a request to a server of mine! And how to do that? I tried reading the ActivityPub spec. The following caught my attention:

Servers should not trust client submitted content, and federated servers also should not trust content received from a server other than the content's origin without some form of verification.

@lifehome
lifehome / README.md
Last active Apr 27, 2022 — forked from benkulbertis/cloudflare-update-record.sh
Cloudflare API v4 Dynamic DNS Update in Bash
View README.md

Cloudflare DDNS bash client with systemd

This is a bash script to act as a Cloudflare DDNS client, useful replacement for ddclient.

Look out!

A newer version is available!

This gist will no longer update, instead please go to https://github.com/lifehome/systemd-cfddns for more updated versions.

How to use?

  1. Put the cfupdater files to /usr/local/bin
  • If you are using IPv4 for A record, append -v4 to cfupdater in the following systemd service unit.
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active Jul 6, 2022
Simple Github -> Discord webhook
View Github Webhook Tutorial.md

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@japboy
japboy / jade-ftw.md
Last active May 6, 2022
Jade について。
View jade-ftw.md

Jade FTW

こんにちは。今回は現実逃避を兼ねて Jade の素晴らしさをお伝えしたいと思います。

Jade とは何か

[Jade][0] は JST (JavaScript Templates) の一つであり、HTML を書くための[軽量マークアップ言語][1] である [Haml][2] に影響を受けた JavaScript テンプレートエンジンでもあります。