Skip to content

Instantly share code, notes, and snippets.

View tmyymmt's full-sized avatar

Tomoya Yamamoto tmyymmt

View GitHub Profile
// copy from Janx Spirit http://janxspirit.blogspot.jp/2011/11/introduction-to-casbah-scala-mongodb.html
//connect to a MongoDB server
val mongo = MongoConnection("anduin")
//create/connect to a collection
val coll = mongo("casbah_examples")("movies")
//drop collection
coll.dropCollection
@tmyymmt
tmyymmt / attach.inc.php.1.5.0.diff
Created September 6, 2014 03:38
puwikiki attach zip /plugin/attach.inc.php.1.5.0.diff
42,43d41
< define('PLUGIN_OPEN_AVOID_DIRECT', FALSE); // TRUE or FALSE
<
160c158
< global $vars, $_attach_messages, $notify, $notify_subject;
---
> global $_attach_messages, $notify, $notify_subject;
190,221d187
< if ($vars['extract_mode'] == 'on') {
< switch (strtolower(substr($file['name'], -4))) {
@tmyymmt
tmyymmt / en.lng.php.1.5.0.diff
Created September 6, 2014 03:40
pukiwiki attach zip /en.lng.php.1.5.0.diff
182d181
< 'err_extract' => 'Unable to extract files from uploaded archive',
185,186c184
< 'btn_submit' => 'Submit',
< 'msg_extract' => 'Extract & Attach files'
---
> 'btn_submit' => 'Submit'
@tmyymmt
tmyymmt / ja.lng.php.1.5.0.diff
Created September 6, 2014 03:41
pukiwiki attach zip /ja.lng.php.1.5.0.diff
184d183
< 'err_extract' => 'Unable to extract files from uploaded archive',
187,188c186
< 'btn_submit' => '実行',
< 'msg_extract' => 'Extract & Attach files'
---
> 'btn_submit' => '実行'
@tmyymmt
tmyymmt / .emacs
Last active August 29, 2015 14:15
.emacs
(define-key global-map "\C-a" 'start-kbd-macro)
(define-key global-map "\C-q" 'end-kbd-macro)
(define-key global-map "\C-z" 'call-last-kbd-macro)
(define-key global-map "\C-o" 'beginning-of-buffer)
(define-key global-map "\C-l" 'end-of-buffer)
(put 'upcase-region 'disabled nil)
(cond
( (or (eq window-system 'ns) (eq window-system 'mac) )
; for cocoa emacs
@tmyymmt
tmyymmt / Brewfile.sh
Last active August 29, 2015 14:17
Brewfile.sh
brew update
brew upgrade
brew install brew-cask
brew install zsh
brew install git
brew install hub
brew install gist
brew install curl
brew install wget
@tmyymmt
tmyymmt / docker_memo.txt
Last active August 15, 2022 08:01
Docker without Docker Desktop
# Docker without Docker Desktop
## Docker without Docker Desktop for macOS
- https://qiita.com/kyosuke5_20/items/cd5f3df4e827c34d7c4a
## Docker without Docker Desktop for Windows
- https://qiita.com/ohtsuka1317/items/617a865b8a9d4fb67989
@tmyymmt
tmyymmt / k8s_kubernetes_memo.txt
Last active August 15, 2022 08:01
k8s kubernetes
# minikube
- https://zenn.dev/gekal/articles/minikube-on-mac-as-local-k8s-env
@tmyymmt
tmyymmt / zsh_asdf_memo.txt
Last active August 17, 2022 05:02
asdf memo
# zsh
- https://wiki.archlinux.jp/index.php/Zsh#.E3.82.B5.E3.83.BC.E3.83.89.E3.83.91.E3.83.BC.E3.83.86.E3.82.A3.E6.8B.A1.E5.BC.B5
## sheldon
- https://github.com/rossmacarthur/sheldon
- https://ryota2357.com/blog/2022/zsh-plugmanager-zplug-to-sheldon/
- https://ktrysmt.github.io/blog/migrate-zinit-to-sheldon/
- https://zenn.dev/ganta/articles/e1e0746136ce67
# asdf
@tmyymmt
tmyymmt / .zshrc
Last active April 21, 2023 09:02
.zshrc
setopt nonomatch
alias ll='ls -al'
alias windows='nkf -sLw --overwrite'
alias linux='nkf -wLu --overwrite'
alias emacs='emacs --no-windows'
HISTFILE=$HOME/.zsh_history # 履歴をファイルに保存する
HISTSIZE=100000 # メモリ内の履歴の数
SAVEHIST=100000 # 保存される履歴の数