Skip to content

Instantly share code, notes, and snippets.

Gem::Specification.new do |spec|
spec.add_dependency "pry"
spec.add_dependency "pry-doc"
spec.add_dependency "solargraph"
end
@kakakikikeke
kakakikikeke / Brewfile
Last active October 20, 2026 09:18
Brewfile
brew "curl"
brew "ansible"
brew "emacs"
brew "exiftool"
brew "ffmpeg"
brew "git"
brew "glib"
brew "go"
brew "iproute2mac"
brew "jq"
@kakakikikeke
kakakikikeke / Vagrantfile
Created February 3, 2022 23:01
Vagrantfile
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.network "private_network", ip: "192.168.100.10"
config.vm.provider "virtualbox" do |vb|
vb.memory = 4096
vb.cpus = 2
end
end
filetype plugin indent on
syntax on
set term=builtin_ansi
set backspace=indent,eol,start
augroup vimrcEx
au BufRead * if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" | endif
augroup END
# 各種エイリアス
alias ls="ls -G"
alias history="history -E 1"
alias bundleinit="bundle init --gemspec=~/.gemspec_template"
alias gits="git status"
alias gcm="git checkout master && git pull origin master"
# 履歴サイズ
export HISTSIZE=100000
require 'irb/completion'
IRB.conf[:SAVE_HISTORY] = 10000
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"
IRB.conf[:PROMPT][:DEFAULT] = {
:PROMPT_I=>"%N(%m):%03n:%i> ",
:PROMPT_N=>"%N(%m):%03n:%i> ",
:PROMPT_S=>"%N(%m):%03n:%i%l ",
:PROMPT_C=>"%N(%m):%03n:%i* ",
@kakakikikeke
kakakikikeke / cygwin_config.md
Last active March 22, 2023 01:07
Cygwin 設定メモ

インストーラ

  • Packge Install
  • Options -> Text -> 12pt
  • Options -> Looks -> Cursor -> Block
  • Options -> Terminal -> Bell -> no beep

ssh

  • cd
@kakakikikeke
kakakikikeke / .tmux.conf
Last active October 20, 2026 05:49
.tmux.conf
# Change prefix
unbind-key C-b
set-option -g prefix C-t
bind-key C-t send-prefix
# Set Keybind
## Resize pane
bind -r C-h resize-pane -L 5
bind -r C-l resize-pane -R 5
bind -r C-j resize-pane -D 5
@kakakikikeke
kakakikikeke / mac_config.md
Last active October 20, 2026 09:17
Mac設定メモ

環境

  • OS:macOS 26.6.2
  • キーボード:104

キーバインド設定

  • 「修飾キー」で検索 -> 修飾キーをカスタマイズ -> Caps Lock キーを Control に変更
  • 「Spotlight」で検索 -> Spotlight 検索を表示 -> Cmd + Shift + Space に変更する
  • 「ファンクションキー」で検索 -> ファンクションキー ->F1,F2 などのすべてのキーを標準のファンクションキーとして使用にチェックを入れる
  • 「入力ソース」で検索 -> キーボードショートカット -> 入力ソース -> 前の入力ソースを選択 -> Cmd + Space に変更
  • 「キーボードショートカット」で検索 -> キーボードショートカット -> キーボード -> 次のウィンドウを操作対象にする -> Alt + Tabに変更
@kakakikikeke
kakakikikeke / send-http-request.el
Last active December 15, 2015 12:39
emacsでHTTP Requestを送信、取得するためのelispです。デフォルトemacsに入っている url パッケージを使っています。
(require 'url)
(defun send-http-request (url)
"Send a simple http request and open a result within an other buffer.."
(let
(
(url-request-method "GET")
(url-request-extra-headers '(("Content-Type" . "application/x-www-form-urlencoded"))))
(url-retrieve url 'switch-to-buffer-for-responce)))