-
Homebrew の rbenv や ruby-build をインストールしていたら、もろもろ削除する
$ brew uninstall --force rbenv ruby-build $ rm -rf ~/.rbenv
-
rbenv をインストールする
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
format: | |
subject: '### %{subject}' | |
line: '* [%{title}](%{url}) %{status}' | |
dictionary: | |
status: | |
merged: '**merged!**' | |
closed: '**closed!**' |
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
;; moved to https://github.com/masutaka/dotfiles-public/blob/main/.emacs.d/init.el |
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
explore: sample { | |
join: sample2 { | |
type: left_outer | |
relationship: many_to_one | |
sql_on: ${sample.medium} = ${sample2.medium} ;; | |
} | |
} | |
view: sample { | |
derived_table: { |
name
と type
は必須。mode
のデフォルト値は Nullable
。
$ bq mkdef --noautodetect --source_format=GOOGLE_SHEETS \
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
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: ruby:2.3.3-alpine | |
working_directory: /home/circleci/masutaka.net | |
steps: | |
- setup_remote_docker: | |
# https://circleci.com/docs/2.0/docker-layer-caching/ | |
reusable: true |
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
EXPIRE_SEC := $(shell expr 24 '*' 60 '*' 60) | |
KERNEL := $(shell uname | tr '[:upper:]' '[:lower:]') | |
MITAMAE_BIN_DIR := bin | |
MITAMAE_REPO := itamae-kitchen/mitamae | |
MITAMAE := $(MITAMAE_BIN_DIR)/mitamae | |
MITAMAE_ARCH_BIN := mitamae-x86_64-$(KERNEL) | |
MITAMAE_LATEST_TAR_BALL_URL := https://github.com/$(MITAMAE_REPO)/releases/latest/download/$(MITAMAE_ARCH_BIN).tar.gz | |
MITAMAE_LATEST_VERSION := $$(curl -s https://api.github.com/repos/$(MITAMAE_REPO)/releases/latest | jq -r .tag_name) |
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
select | |
job_type | |
, user_email | |
, referenced_tables.dataset_id | |
, round(sum(total_bytes_billed) / pow(10, 9), 2) AS total_gb_billed | |
from | |
`region-us.INFORMATION_SCHEMA.JOBS_BY_PROJECT` | |
, UNNEST(referenced_tables) AS referenced_tables | |
WHERE CAST(creation_time AS DATE) = DATE('2021-11-18') | |
group by job_type, user_email, referenced_tables.dataset_id |
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
(require 'cl) | |
(defvar my-recentf-list-prev nil) | |
(defadvice recentf-save-list | |
(around no-message activate) | |
"If `recentf-list' and previous recentf-list are equal, | |
do nothing. And suppress the output from `message' and | |
`write-file' to minibuffer." | |
(unless (equal recentf-list my-recentf-list-prev) |
NewerOlder