Skip to content

Instantly share code, notes, and snippets.

View yasulab's full-sized avatar
💎
\\ Rubyist! //

Yohei Yasukawa yasulab

💎
\\ Rubyist! //
View GitHub Profile
@voluntas
voluntas / hireling_erlang_vm_contributor.rst
Last active December 13, 2023 02:48
Erlang VM に貢献したい人を探しています

Erlang VM に貢献したい人を探しています

更新:2023-12-14
バージョン:2023.1
作者:@voluntas
URL:http://voluntas.github.io/

概要

@JunichiIto
JunichiIto / tokyogirlsrb-policy.md
Last active October 7, 2024 04:14
TokyoGirls.rb アンチハラスメントポリシー

TokyoGirls.rb アンチハラスメントポリシー

TokyoGirls.rbではアンチハラスメントポリシーを定めています。イベントに参加するみなさんは以下のポリシーを遵守するように心がけてください。

当ポリシーの目的と適用範囲

当ポリシーは、イベントの参加者全員が楽しく、安全に集える場を維持するために策定されました。

「参加者全員が楽しく、安全に集える場を維持する」という目的には、「将来開催されるイベントについてもみなさんが不安や心配を感じることなく、気軽に参加できること」も含まれています。

@db0sch
db0sch / regenerate_credentials.md
Last active July 30, 2024 12:59
How to regenerate the master key for Rails 5.2 credentials

If your master.key has been compromised, you might want to regenerate it.

No key regeneration feature at the moment. We have to do it manually.

  1. Copy content of original credentials rails credentials:show somewhere temporarily.
  2. Remove config/master.key and config/credentials.yml.enc
  3. Run EDITOR=vim rails credentials:edit in the terminal: This command will create a new master.key and credentials.yml.enc if they do not exist.
  4. Paste the original credentials you copied (step 1) in the new credentials file (and save + quit vim)
  5. Add and Commit the file config/credentials.yml.enc
@slavikdev
slavikdev / cheatsheet.md
Last active January 1, 2025 15:03
Rails request path cheatsheet

Rails request path cheatsheet

Full path with query string

>>  request.url
=> "http://localhost:3000/ask-help.amp?ptn=pnh"

Virtual path without query string

>>  request.path
=> "/ask-help.amp"
@tompng
tompng / block_quine.rb
Last active October 6, 2024 01:03
ブロック崩しQuine 左右キーかadキーで移動 spaceで一時停止 ファイルに保存するとその状態から再開できるよ
s=%w(ABCDEFGHIJKMNOQRSUWXYZ0123456789 "`^' acegmnopqrsuwxyz)########################################
b='';d=->c{(w=s.find{|a|a[c]})&&(b+=(w.size+w.index(c)).to_s(2)[1..-1])};%(#########################
B^"`^^```^""NB^"`^^```^""NBS4K2DANGSGDJXANGWGDJDBYUS4I2OENGWGDJD""'`"^"'""'J"`^"`^^`"`^DJ"`^"`^^`"`^
D mqwgmqwa anawoqom NOGGS24NNUZ6YX1BJAWC2IUKE21CCKJFFYZWQM wsereues Z pnaxmxex aomoeooo
C 3MDN7SQJ 2BCEA37Q IBEG24XQOOX082HI6X0QZ51B7HW8WUIE7JYQZ4 ME7JSE6W M RO7GG835 N77U0Y5W
F BDZ6UK1K OMZGQU5K O5WSFIME7JYGE34HOJ1Q525RO7SQ54HD2RGKFI UJE6XYJ4 D Q6FDEMXX KNM0GWW9
M 6YH4448A 2YH4Z24R Y3UY9MDM27Y0G3IRYXUY9JDM27Y0G3IRZBZ60U 8O6YH4J4 8 OYDDYZS4 A27FNGSG
D `"""'"` xa "'"'"'" 1JIRYUZ65M7E7QWS13IRYZSE1SCMI9G8KCDM3Xg ``""``" 9 ``^^'`` en `^`"^^`
7F NQSGcsooosasp444WQ3FHY7U4A2OH443IRY3Z6DU4C7FZ0Y5HHI3U0 S21 RZOY G
B xuwpxew "8H3IN27BQW45KOXXY04DA71U8W4RD6YA8GWRM2FE0D5KA27FNW^ psaycsa Y roryxma '" pmswrmz
@eyecatchup
eyecatchup / git-commit-log-stats.md
Last active April 11, 2025 08:16
Some commands to get git commit log statistics for a repository on the command line.

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.




@nashirox
nashirox / rails-validates.rb
Last active January 29, 2025 11:07
Rubyのバリデーション用正規表現集
#
# 数字
#
# 全て数値(全角)
/\A[0-9]+\z/
# 全て数値(半角)
/\A[0-9]+\z/
@hanachin
hanachin / yasslab.rb
Created November 4, 2015 08:41
ヤスラボ
puts eval(%( [1_2_5_1_6,1_2_4_7_3,1_2_5_2_1,
1 ## ## ## ## _
2 #### ## #### #### ## ## ## _
5 ## # # # ## # ## _
0 ## ### #### #### ## ### #### _
8 ## # # # # ## # # ## # ]
. ## ### #### #### ## ### #### m
ap{|c|c.chr('utf-8')}).gsub(/\s|#/,'')).join
@koyhoge
koyhoge / report.md
Last active November 18, 2018 02:35
エンジニアのための法律勉強会 #8『盗用と著作権の基礎知識と注意点&エンジニアのための?!結婚と離婚の基本のキ(番外編)』  参加メモ

エンジニアのための法律勉強会 #8『盗用と著作権の基礎知識と注意点&エンジニアのための?!結婚と離婚の基本のキ(番外編)』 参加メモ

イベントURL: https://coedo-dev.doorkeeper.jp/events/31461