Skip to content

Instantly share code, notes, and snippets.

View ikuradon's full-sized avatar
🐱
I'm cat.

Takuya Yoshida ikuradon

🐱
I'm cat.
View GitHub Profile
@ikuradon
ikuradon / compose.yaml
Created December 29, 2023 05:33
2023/12/29現在のやぶみリレー設定抜粋
services:
strfry-relay:
image: local/strfry
build:
context: ../repos/strfry
dockerfile: Dockerfile.custom
restart: always
volumes:
- ./data/strfry/strfry.conf:/etc/strfry.conf:ro
- ./repos/writepolicy:/writepolicy
@ikuradon
ikuradon / Dockerfile
Created April 25, 2023 12:22
Umbrelのlightningを無理矢理v0.16.*に対応させるやつ
FROM getumbrel/umbrel-lightning:v1.1.1
RUN find /app -not -path "*node_modules*" -name "*.js" -exec sed -i 's/routerrpc.apriorihopprob/routerrpc.apriori.hopprob/g' {} \; \
&& find /app -not -path "*node_modules*" -name "*.js" -exec sed -i 's/routerrpc.aprioriweight/routerrpc.apriori.weight/g' {} \; \
&& find /app -not -path "*node_modules*" -name "*.js" -exec sed -i 's/routerrpc.penaltyhalflife/routerrpc.apriori.penaltyhalflife/g' {} \; \
&& find /app -not -path "*node_modules*" -name "*.js" -exec sed -i 's/routerrpcApriorihopprob/routerrpcAprioriHopprob/g' {} \; \
&& find /app -not -path "*node_modules*" -name "*.js" -exec sed -i 's/routerrpcAprioriweight/routerrpcAprioriWeight/g' {} \; \
&& find /app -not -path "*node_modules*" -name "*.js" -exec sed -i 's/routerrpcPenaltyhalflife/routerrpcAprioriPenaltyhalflife/g' {} \;
@ikuradon
ikuradon / prod.secret.exs
Created July 9, 2019 08:51
Pleromaの設定@2019-07-09
# Pleroma instance configuration
# NOTE: This file should not be committed to a repo or otherwise made public
# without removing sensitive information.
use Mix.Config
config :pleroma, Pleroma.Web.Endpoint,
url: [host: "v01d.app", scheme: "https", port: 443],
secret_key_base: "[REDACTED]"
@ikuradon
ikuradon / media.comm.cx.conf
Last active August 28, 2018 12:53
メディア鯖移動させていた時のnginxの設定(一部抜粋)
proxy_cache_path /var/cache/nginx/media.comm.cx levels=1:2 keys_zone=media.comm.cx_cache:10m inactive=7d max_size=10g;
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name media.comm.cx;
ssl_certificate /CERT/comm.cx.crt;
ssl_certificate_key /CERT/comm.cx.key;
include ssl.conf;
keepalive_timeout 70;
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets",
"s3:GetBucketLocation"
],
"Resource": "arn:aws:s3:::*"
@ikuradon
ikuradon / CertExpireList.txt
Last active July 23, 2017 13:42
Mastodon証明書有効期限リスト
Updated at: 2017-07-23 22:42:06
1970-01-01: mastodon.mita.me
1970-01-01: mastodon.fun
1970-01-01: misanthropy.wang
1970-01-01: mastodon.not-enough.space
1970-01-01: myfreckle.com
1970-01-01: mastodon.direct
1970-01-01: tooot.im
1970-01-01: mastodon.center
1970-01-01: boredom.land
@ikuradon
ikuradon / sidekiq.rake
Last active June 16, 2017 05:25
Sidekiqを安全に停止させるRailsタスク
namespace :sidekiq do
desc "Stop sidekiq safely."
task :stop do
processes = Sidekiq::ProcessSet.new
abort 'Sidekiq process not running' if processes.count == 0
processes.each do |process|
process.quiet!
puts "Send quiet signal to PID: #{process['pid']}"
end

Keybase proof

I hereby claim:

  • I am ikuradon on github.
  • I am ikuradon (https://keybase.io/ikuradon) on keybase.
  • I have a public key whose fingerprint is 2CE4 DB2A 094F 97F2 B73E 9E28 E64E C221 E099 BA05

To claim this, I am signing this object:

@ikuradon
ikuradon / !etc!rsyslog.conf
Created December 24, 2015 15:04
foltia anime lockerがrsyslogに出力するメッセージを加工する何か
...
# ### end of the forwarding rule ###
$IncludeConfig /etc/rsyslog.d/*.conf