Skip to content

Instantly share code, notes, and snippets.

View ychubachi's full-sized avatar

Yoshihide Chubachi ychubachi

View GitHub Profile
@ychubachi
ychubachi / settings.json
Last active August 6, 2019 08:56
Visual Studio CodeのLaTeX Workshopの設定
"editor.wordSeparators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~? 、。「」【】『』()!?てにをはがのともへでや",
"latex-workshop.latex.tools": [
{
"name": "latexmk with latexmkrc",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-outdir=%OUTDIR%",
#!/usr/bin/env perl
# Ref.
# - https://texwiki.texjp.org/?Latexmk#ke005cd5
# Latexmk-upLaTeX の場合
# latexmk -gg -pdfdvi foo.tex
# Latexmk-upLaTeX-pdfps の場合
# latexmk -gg -pdfps foo.tex
# Latexmk-pdfLaTeX の場合
#!/bin/bash
# ================================================================
# ・Rails appを生成し,github,travis,herokuと連携させます
# ・下記の準備が終わっていることを前提とします
# - ssh鍵の生成とgithubへの登録
# - Create and register an SSH key for your github account
# - https://gist.github.com/acoulton/1969779
# ================================================================
#!/bin/bash
# github-connect.sh
# -----------------
# Copyright 2012 Andrew Coulton - released under the BSD licence
#
# A simple command line script to set up and register an SSH key against a
# user's github account - for example when provisioning a new virtual
# machine for a developer.
#
** Zsh & oh-my-zsh
- robbyrussell/oh-my-zsh
- https://github.com/robbyrussell/oh-my-zsh
- 'The manual way'参照
- rbenv設定追加
- emacs .zshrc
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
2013/9/3 rails,Herokuメモ
- vagrantで仮想マシンをアップ
$ vagrant up
-- 3000番ポートのフォワード設定を確認
- 仮想マシンに接続
@ychubachi
ychubachi / Vagrantfile
Created July 21, 2013 07:22
Berkshelfが作ったCookbookの中身を理解する ref: http://qiita.com/ychubachi@github/items/d286ccab0fa0d501a45c
...
chef.run_list = [
"precise"
]
...
' っ
- ー
; あん
[ 「
] 」
`, ‥
`/ ・
`; ;
`a ぁ
`b ←
@ychubachi
ychubachi / Berksfile
Created July 11, 2013 17:05
Chefを新しくしてrbenvをberkshellでvagrantのUbuntuにインストール ref: http://qiita.com/ychubachi@github/items/befe8ab4cd0765643628
diff --git a/Berksfile b/Berksfile
index 6d86dcf..b4fe769 100644
--- a/Berksfile
+++ b/Berksfile
@@ -2,3 +2,5 @@ site :opscode
metadata
cookbook 'git'
+cookbook 'ruby_build'
+cookbook 'rbenv', github: "fnichol/chef-rbenv"
@ychubachi
ychubachi / Berksfile
Created July 11, 2013 13:26
ChefもKnifeも知らない初心者がBerkshelfに頼ってVagrantでVMを構築する例. ref: http://qiita.com/ychubachi@github/items/8c57481b85865e562c47
diff --git a/Berksfile b/Berksfile
index c4bb297..6d86dcf 100644
--- a/Berksfile
+++ b/Berksfile
@@ -1,3 +1,4 @@
site :opscode
metadata
+cookbook 'git'