Skip to content

Instantly share code, notes, and snippets.

@onigra
onigra / study.md
Last active September 22, 2022 09:04
技術書読むの苦手なんですよね

何が言いたいのか

  • 「技術書を読まなくていい」と言っているわけではない
  • 「プログラマー・エンジニアだから技術書をたくさん読んで理解しなければならない」という価値観にとらわれる必要は無い
  • 人によって物事の得意な認知の仕方は異なる
  • 自分に合った学習スタイルを見つけられるといい
  • もしくは、本の読み方にはコツがある

技術書読むと眠くなっちゃうんですよ

@onigra
onigra / nba21-22.md
Last active October 19, 2021 14:11
NBA 2021-22 Season予想

EAST

  1. MIL
  2. BKN
  3. ATL
  4. MIA
  5. PHI
  6. NYK
  7. BOS
  8. CHI
@onigra
onigra / nba20-21.md
Created December 12, 2020 07:43
NBA 2020-21 Season 順位予想

West

  1. LAL
  2. DEN
  3. LAC
  4. POR
  5. UTA
  6. DAL
  7. GSW
  8. PHX
--update-service platformVersionの指定 before after
1.4.0 1.4.0 1.4.0
1.3.0 1.4.0 1.3.0
1.4.0 1.3.0 1.3.0
1.4.0 1.3.0 1.4.0
1.4.0 1.4.0 1.4.0
1.3.0 1.4.0 1.4.0
1.3.0 1.4.0 1.3.0
@onigra
onigra / gist:7b566efd51d8839c8016f2ae7b7dd85b
Last active April 1, 2020 06:10
rails mysql2 nokogiri ビルド 方法 最強
bundle config --global build.mysql2 --with-opt-dir="$(brew --prefix openssl)"
bundle config --global build.nokogiri --use-system-libraries --with-xml2-include=$(brew --prefix libxml2)/include/libxml2
@onigra
onigra / nba19-20.md
Last active October 22, 2019 14:17
NBA 2019-20 Season 順位予想

East

  1. MIL
  2. IND
  3. PHI
  4. TOR
  5. BOS
  6. BKN
  7. DET
  8. ORL
@onigra
onigra / drama.md
Last active August 23, 2019 06:10
見た海外ドラマのメモ

全部見た部門

⭐️⭐️⭐️⭐️⭐️

  • The Marvelous Mrs. Maisel
    • エミー賞総なめしただけあって演技も映像も音楽もシナリオも素晴らしい。今一番アツいと思う。
  • The Good Fight
    • かなり好み。The Good Wifeからさらにシニカルになった
  • The Good Wife
  • シニカルで時事ネタも面白い
@onigra
onigra / func.zsh
Created February 7, 2019 06:52
remote branch checkout
function gcp() {
local res
local branch=$(git branch -a | peco | tr -d ' ')
if [ -n "$branch" ]; then
if [[ "$branch" =~ "remotes/" ]]; then
local b=$(echo $branch | cut -d '/' -f 3-)
res="git checkout -b ${b} ${branch}"
else
res="git checkout ${branch}"
@onigra
onigra / remove_arifacts.sh
Created December 25, 2018 09:45
remove artifacts
aws s3 ls \
s3://bucket/artifacts \
--recursive \
--human-readable | \
grep manifest.yml | \
sort -r | \
tail -n+20 | \
awk -F ' ' '{ print $5 }' | \
sed -e 's/\(artifacts\/.*\)\/namespace\/manifest\.yml/s3:\/\/bucket\/\1/g' | \
xargs -I{} aws s3 rm --recursive "{}"
@onigra
onigra / async.js
Created December 13, 2018 15:15
js async function
const http = require("http");
const util = require("util");
function post(payload) {
return new Promise((resolve, reject) => {
const options = {
method: "POST",
hostname: "httpbin.org",
port: 80,
path: "/post"