Skip to content

Instantly share code, notes, and snippets.

@mystelynx
Last active April 28, 2022 23:07
Show Gist options
  • Save mystelynx/8bdcb0dcbd5966ebf8e7 to your computer and use it in GitHub Desktop.
Save mystelynx/8bdcb0dcbd5966ebf8e7 to your computer and use it in GitHub Desktop.
housekeeper
- hosts: localhost
tasks:
- name: update homebrew
homebrew: update_homebrew=yes
- name: upgrade all packages
homebrew: upgrade_all=yes
- name: tap homebrew repositories
homebrew_tap: tap={{ item }} state=present
ignore_errors: yes
with_items:
- homebrew/dupes
- caskroom/cask
- caskroom/fonts
- homebrew/versions
- caskroom/versions
- peco/peco
- motemen/ghq
- aereal/aereal_casks
- name: install packages
homebrew: name={{ item }} state=latest
with_items:
- direnv
- pt
- brew-cask
- jq
- tmux
- docker
- boot2docker
- docker-machine
- docker-swarm
- docker-compose
- vim
- zsh
- git
- peco
- ghq
- ttyrec
- imagemagick
- hub
- tig
- icdiff
- hg
- hg-flow
- sf-pwgen
- envchain
- moreutils
- coreutils
- rbenv
- rbenv-gem-rehash
- rbenv-gemset
- openssl
- name: install gems
gem: name={{ item }} state=latest
with_items:
- git-issue
<?xml version="1.0"?>
<root>
<list>
<item>
<name>AquaSKK</name>
<appdef>
<appname>Terminal</appname>
<equal>com.googlecode.iterm2</equal>
<equal>com.apple.Terminal</equal>
</appdef>
<list>
<item>
<name>Ctrl-J to Kana on Apple Terminal/iTerm2</name>
<only>Terminal</only>
<identifier>private.iterm2.ctrl_j_to_kana</identifier>
<autogen>
__KeyToKey__
KeyCode::J, ModifierFlag::CONTROL_L,
KeyCode::JIS_KANA
</autogen>
</item>
<item>
<name>Ctrl-J to Kana on Apple Terminal/iTerm2 for Dvorak user</name>
<only>Terminal</only>
<identifier>private.iterm2.ctrl_j_to_kana.dvorak</identifier>
<autogen>
__KeyToKey__
KeyCode::C, ModifierFlag::CONTROL_L,
KeyCode::JIS_KANA
</autogen>
</item>
<item>
<name>Control_L to Control_L</name>
<appendix>(+ When you type Control_L only, send Escape + EISUU)</appendix>
<identifier>remap.controlL2controlL_escape_orig</identifier>
<autogen>
--KeyOverlaidModifier--
KeyCode::CONTROL_L,
KeyCode::CONTROL_L, KeyCode::JIS_EISUU, KeyCode::ESCAPE
</autogen>
</item>
</list>
</item>
</list>
</root>
#!/bin/bash
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew reinstall ansible
ansible-pull -i localhost, -U https://gist.github.com/8bdcb0dcbd5966ebf8e7.git
@mystelynx
Copy link
Author

  1. create s3 bucket (static.urau.la) and redirect all requests to https://gist.githubusercontent.com/mystelynx/8bdcb0dcbd5966ebf8e7/raw/xxx
  2. create A record on Route53. alias=yes
  3. wait for a while...
curl -sL static.urau.la | sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment