Skip to content

Instantly share code, notes, and snippets.

View katsumata-ryo's full-sized avatar

Katsumata Ryo katsumata-ryo

  • Yokohama, Kanagawa, JP
View GitHub Profile
@katsumata-ryo
katsumata-ryo / Gemfile
Created December 1, 2018 17:45
jobcan touch by aws lambda for ruby via IFTTT
source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
gem 'slack-ruby-client'
$ rails generate sorcery:install
Running via Spring preloader in process 29650
create config/initializers/sorcery.rb
gsub config/initializers/sorcery.rb
generate model User --skip-migration
Running via Spring preloader in process 29679
invoke active_record
create app/models/user.rb
invoke test_unit
create test/models/user_test.rb
$ rails new <NAME>
### Gemfile のアップデート
# Gemfile
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.5.1'
@katsumata-ryo
katsumata-ryo / gist_test.rb
Created August 19, 2018 13:10
Gist Embed Test
def say_hello(name)
puts "Hello, #{name}"
end
say_hello('ryo')
[user]
name = name
email = name@example.com
[alias]
log = log --graph --date=short
pr = pull-request -b develop
unstage = reset -q HEAD --
amend = commit --amend
uncommit = reset --mixed HEAD~
discard = checkout --
@katsumata-ryo
katsumata-ryo / .bashrc
Last active April 24, 2016 14:58
my_bashrc
# LANG=C
export LANG=C
# sshkey read.
sshaddl=`ssh-add -L`
username = `uname -n`
case $sshaddl in
"The agent has no identities.")
ssh-add /Users/$username/.ssh/id_rsa ;;
@katsumata-ryo
katsumata-ryo / sublime_user_setting.json
Last active January 25, 2016 07:47
Sublime Text 3 - Settings User
{
// encoding & line ending
"default_encoding": "UTF-8",
"fallback_encoding": "UTF-8",
"default_line_ending": "unix",
"show_encoding": true,
"show_line_endings": true,
// UI
"caret_style": "smooth",
@katsumata-ryo
katsumata-ryo / gist:4e7c1a2b1f3c1df7059b
Last active December 14, 2015 01:46 — forked from machida/html_practice.html
HTMLの練習(このレシピにマークアップをしてみましょう)
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>カレーのレシピ</title>
</head>
<body>
<article>
<header>
<h1>カレーのレシピ</h1>
@katsumata-ryo
katsumata-ryo / .vimrc
Last active August 29, 2015 14:09
.vimrcテンプレート
" color scheme
" get => https://raw.githubusercontent.com/tomasr/molokai/master/colors/molokai.vim
" change : ctermfg=222 => ctermfg=227
colorscheme molokai
syntax on
let g:molokai_original = 1
let g:rehash256 = 1
set background=dark
set t_Co=256
@katsumata-ryo
katsumata-ryo / gist:d94b4fe3be8053ad8599
Last active August 29, 2015 14:07
mklink for java config(apache directory studio )
# windows install java. for slink(mklink) memo
# launch admin permission.
mklink /D "新しく作りたいシンボリックリンクのフルパス" "リンクさせたいディレクトリのフルパス"