Skip to content

Instantly share code, notes, and snippets.

@var23rav
var23rav / MoveFile.go
Last active October 21, 2023 15:34
GoLang: os.Rename() give error "invalid cross-device link" for Docker container with Volumes. MoveFile(source, destination) will work moving file between folders
import (
"fmt"
"io"
"os"
)
/*
GoLang: os.Rename() give error "invalid cross-device link" for Docker container with Volumes.
MoveFile(source, destination) will work moving file between folders
*/
@vividtone
vividtone / create_redmine_user.rb
Created March 27, 2015 02:56
CSVファイルを読み込んでRedmineにREST API経由でユーザーを登録する
#!/usr/bin/env ruby
# encoding: utf-8
#
# CSVファイルを読み込んで、REST API経由でRedmineのユーザーを作成する
#
# CSVファイルの形式:
# ログインID,パスワード,名,姓,メールアドレス
require 'rest-client' # gem install rest-client
@takungsk
takungsk / tmux_cheat_cheet.markdown
Last active April 7, 2019 18:21
tmuxのcheat sheet(日本語)

tmux cheat sheet

コマンド

新しく開始:

tmux

セッションに名前を付けて開始:

tmux new -s myname

アタッチ:

tmux a # (or at, or attach)

再アタッチ:

tumx a -d

@ohnishiakira
ohnishiakira / .gemrc
Created August 1, 2011 03:13
.gemrcの書き方
# 普段はこう書いている
install: --no-rdoc --no-ri
update: --no-rdoc --no-ri
search: --remote
specification: --remote