This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://stackoverflow.com/questions/2683279/how-to-detect-if-a-script-is-being-sourced | |
is_sourced() { | |
if [ -n "$ZSH_VERSION" ]; then | |
case $ZSH_EVAL_CONTEXT in *:file:*) return 0;; esac | |
else # Add additional POSIX-compatible shell names here, if needed. | |
case ${0##*/} in dash|-dash|bash|-bash|ksh|-ksh|sh|-sh) return 0;; esac | |
fi | |
return 1 # NOT sourced. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use feature 'say'; | |
use utf8; | |
binmode(STDIN, ":utf8"); | |
binmode(STDOUT,":utf8"); | |
binmode(STDERR,":utf8"); | |
my $uranai_data; |
マストドンでのメール送信チェック
$ RAILS_ENV=production bundle exec rails c
m = UserMailer.new.mail to:'email@address.com', subject: 'test', body: 'awoo'
m.deliver
ポスト詳細のへのリンクをタイツアイコンに移動し、ポスト内容のコピペをやりやすくします。
こちらと同じ です。
タイッツーのリタイーツボタンをとりあえず使えるようにするユーザスクリプトです。 この機能は内部が変わると動作しなくなる場合があります。タイッツーは現在鋭意開発中なため、すぐに使えなくなる可能性があります。ご了承ください。 7月2日 0:00 現在は利用可能です。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
# リタイーツ ツール(macOS専用) | |
# [使い方] | |
# 1.リタイーツしたいメッセージをコピーする | |
# 2.retaittsuu.shを実行する | |
# 3.ペーストして投稿する | |
BUFFER=$(pbpaste) |
Wasabi は Amazon S3 互換のオブジェクトストレージである。1TB までだいたい$5 という安さが魅力である。 しょっちゅう止まるが、us-west-1は比較的安定している印象。
特定バケットのみフルアクセスが可能な、コンソールアクセス権限なしのユーザを作る
- https://console.wasabisys.com/に Root ユーザでログイン