Skip to content

Instantly share code, notes, and snippets.

View treetips's full-sized avatar
🤔

tree treetips

🤔
View GitHub Profile
@treetips
treetips / generate-huskyrc.sh
Created August 25, 2022 18:41
Generate ~/.huskyrc
cat << 'EOT' > ~/.huskyrc
if [[ -d '/home/linuxbrew/.linuxbrew' ]]; then
# Linux/WSL
HOMEBREW_HOME='/home/linuxbrew/.linuxbrew'
elif [[ -d '/opt/homebrew' ]]; then
# Apple Silicon Mac
HOMEBREW_HOME='/opt/homebrew'
else
# Intel Mac
HOMEBREW_HOME='/usr/local'
@treetips
treetips / orm_type_checker.sql
Last active May 5, 2020 13:09
ORMのEntity自動生成時の型確認用SQL for MySQL
drop table if exists full_columns;
create table full_columns(
id bigint unsigned auto_increment comment 'id column',
col_int int unsigned not null comment 'int column',
col_smallint smallint unsigned not null comment 'smallint column',
col_tinyint tinyint unsigned not null comment 'tinyint column',
col_mediumint mediumint unsigned not null comment 'mediumint column',
col_bigint bigint unsigned not null comment 'bigint column',
col_decimal decimal(2) not null comment 'decimal column',
col_float float not null comment 'float column',
@treetips
treetips / renderOldDomainHatebuCountLink.html
Last active August 29, 2015 14:25
はてなブログで旧ドメインのはてなブックマーク数を取得しリンクを表示するスクリプト