Skip to content

Instantly share code, notes, and snippets.

@unarist
unarist / only_statuses.sql
Last active October 23, 2017 11:03 — forked from aschmitz/sample_load.sql
Loading a representative sample of data into a Mastodon database for migration tests
DO $$
DECLARE ratio float;
DECLARE statuses_count integer;
DECLARE conversations_count integer;
DECLARE notifications_count integer;
DECLARE media_attachments_count integer;
DECLARE oauth_access_tokens_count integer;
DECLARE stream_entries_count integer;
DECLARE favourites_count integer;
DECLARE mentions_count integer;
@esetomo
esetomo / .env.production
Created April 29, 2017 16:52
MastodonでConoHaさんのオブジェクトストレージを使う設定
SWIFT_ENABLED=true
SWIFT_USERNAME=gncuなんとか
SWIFT_TENANT=gnctなんとか
SWIFT_PASSWORD=[APIパスワード]
SWIFT_AUTH_URL=https://identity.tyo1.conoha.io/v2.0/tokens
SWIFT_CONTAINER=mayodon
SWIFT_OBJECT_URL=https://media.s-tomo.jp/mayodon
@jimmycuadra
jimmycuadra / cloud-config.yml
Last active April 19, 2021 03:04
CoreOS cloud-config for DigitalOcean with iptables firewall
#cloud-config
coreos:
etcd:
# generate a new token for each unique cluster from https://discovery.etcd.io/new
discovery: https://discovery.etcd.io/<token>
# multi-region deployments, multi-cloud deployments, and droplets without
# private networking need to use $public_ipv4
addr: $private_ipv4:4001
peer-addr: $private_ipv4:7001
@nulltask
nulltask / 20140826.md
Last active September 13, 2020 09:08
Express / Socket.IO をスケールアウトしてみよう
@syusui-s
syusui-s / Makefile
Last active November 23, 2015 11:22
いい感じのレポート用Makefile 依存: pandoc, platex, dvipdfmx, inkscape, jlistings(lib/jlisting.styとして配置、http://mytexpert.osdn.jp/index.php?Listings)
PANDOC = pandoc
PLATEX = platex
DVIPDFMX = dvipdfmx -f fontmap.map
OPTIONS = -s -S -N --chapters --latex-engine=pdflatex --variable=documentclass:jreport --variable=papersize:a4j --template=default.latex --listings -f markdown+tex_math_double_backslash
TOFORMAT = -t latex
OUTPUTDIR = build
PDFNAME = $(OUTPUTDIR)/document.pdf
DVINAME = $(OUTPUTDIR)/document.dvi
TEXNAME = $(OUTPUTDIR)/document.tex
MKDFILES = # Markdownファイルを相対パスで指定。連結されて一つのファイルとして処理される。
@hayajo
hayajo / changelog_en.md
Last active May 3, 2024 08:29
ChangeLog を支える英語

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形