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 June 12, 2023 23:42
Brewfile
tap "aws/tap"
tap "heroku/brew"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "homebrew/services"
brew "python"
brew "awscli"
brew "glib"
@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
set noautoindent
set paste
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"
# 履歴サイズ
export HISTSIZE=100000
# Go
export GOPATH="/Users/kakakikikeke/go"
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 June 3, 2019 06:24
.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 June 9, 2023 00:49
Mac設定メモ

環境

  • OS:macOS 11.6.3
  • マシン:MacBook Air 11inch
  • キーボード:104

インストールするアプリ一覧

各公式サイトから

@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)))