Skip to content

Instantly share code, notes, and snippets.

View sakahukamaki's full-sized avatar

sakahukamaki sakahukamaki

  • 路地ラボ
  • Shimane -> Osaka -> Tottori
View GitHub Profile
@ilyakatz
ilyakatz / pre-commit
Last active February 22, 2023 14:51
helpful precommit hooks
#!/bin/bash -l
# A git hook script to find and fix trailing whitespace
# in your commits. Bypass it with the --no-verify option
# to git-commit
#
.git/hooks/pre-commit-master-no-no
if [[ $? == 1 ]]
then
@hayajo
hayajo / changelog_en.md
Last active May 3, 2024 08:29
ChangeLog を支える英語

ChangeLog を支える英語

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

ほとんど引用です。

基本形

@mori-dev
mori-dev / gist:2659080
Created May 11, 2012 11:24
attr_encrypted gem の紹介

attr_encrypted gem でカラムを暗号化する

特徴

attr_encrypted gem を使えば、データベースのテーブルの指定したカラムを暗号化できます。次のような特徴があります。

  • 通常の処理はプログラムから暗号化カラムを意識せずに書けます
  • ActiveRecord の find_by_, scoped_by_ メソッドも暗号化カラムを意識せずに使えます
  • 様々な暗号化方式を選択できます