Skip to content

Instantly share code, notes, and snippets.

View Neustrashimy's full-sized avatar

Kumasun Morino Neustrashimy

  • Japan
View GitHub Profile
@Neustrashimy
Neustrashimy / mailing list tracker.txt
Last active October 20, 2021 04:11
メール配信サービスのトラッキングURL
hm-f.jp
crmf.jp
登録者名:RAKUS Co.,Ltd.
bme.jp
登録者名:RAKUS Light Cloud Co., Ltd.
株式会社ラクス
https://www.rakus.co.jp/
「配配メール」もしくは「Curumeru」「blastmail」のトラッキングURLか?
@Neustrashimy
Neustrashimy / archiveloader.html
Last active February 2, 2022 06:28
Mastodonアーカイブのoutbox.jsonを読むやつ ローカルでも動くよ
<!DOCTYPE html>
<html lang="en">
<!--
Copyright (c) 2022 Neustrashimy
https://github.com/Neustrashimy
https://nagoyadon.jp/@kumasun
Released under the MIT license
http://opensource.org/licenses/mit-license.php
-->
@Neustrashimy
Neustrashimy / calc_only.rb
Last active June 27, 2019 01:16
Mastodon: Cleanup PreviewCards scripts for Rails Console
total_num = 0; 0
total_size = 0; 0
PreviewCard.where("updated_at < ?", 180.days.ago).find_each do |card|
total_num = total_num + 1
if card.image_file_size != nil then
total_size = total_size + card.image_file_size
end
end; 0
printf("found %d card(s), %d MBytes will reduced\n", total_num, total_size/1.megabytes)
@Neustrashimy
Neustrashimy / console.txt
Created May 8, 2018 00:55
Mastodon db:migrate failed (upgrading v2.3.3 -> v2.4.0rc1)
[mastodon@mstdn- live]$ RAILS_ENV=production bundle exec rails db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke db:load_config (first_time)
** Invoke environment (first_time)
** Execute environment
rails aborted!
SyntaxError: /home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_adapters/postgresql/oid/uuid.rb:23: syntax error, unexpected end-of-input, expecting keyword_end
/home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
/home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
@Neustrashimy
Neustrashimy / kill_crapware.ps1
Last active April 27, 2018 09:55
Kill Windows10 Crapwares 邪魔なストアアプリを一掃する
# Games
Get-AppxPackage *solit* | Remove-AppxPackage # ソリティア
Get-AppxPackage king.com.CandyCrushSodaSaga | Remove-AppxPackage # Candy Crush Soda Saga
Get-AppxPackage 828B5831.HiddenCityMysteryofShadows | Remove-AppxPackage # Hidden City
Get-AppxPackage flaregamesGmbH.RoyalRevolt2 | Remove-AppxPackage # RoyalRevolt 2
Get-AppxPackage king.com.BubbleWitch3Saga | Remove-AppxPackage # バブルウィッチ3
Get-AppxPackage A278AB0D.MarchofEmpires | Remove-AppxPackage # マーチオブエンパイア 領土戦争
# Social
Get-AppxPackage Facebook.Facebook | Remove-AppxPackage # Facebook

Keybase proof

I hereby claim:

  • I am neustrashimy on github.
  • I am neustrashimy (https://keybase.io/neustrashimy) on keybase.
  • I have a public key ASBwIIyV4hqmAP1P8ExtBWQoizIEUbEqmYCKoZHPmXxmpAo

To claim this, I am signing this object: