This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// file settings | |
{ | |
"gutter": false, | |
"line_numbers": false, | |
"color_scheme": "Packages/Color Scheme - Default/LAZY.tmTheme", | |
"line_padding_bottom": 0, | |
"line_padding_top": 2, | |
"font_face": "Andale Mono", | |
"font_size": 16.0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# File: /etc/init.d/nginx | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -x | |
nginx_version=1.0.9 | |
sudo apt-get install gcc | |
sudo apt-get install libpcre3-dev | |
sudo apt-get install libssl-dev | |
mkdir install_nginx && cd install_nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
BASEDIR = ENV["HOME"] + "/.git_redmine" | |
require BASEDIR + "/git_redmine" | |
include GitRedmine::Hooks | |
exit commit_msg(ARGV[0]) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Foo | |
email = [email protected] | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
interactive = auto | |
[merge] | |
summary = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// global settings | |
"theme": "Soda Light 3.sublime-theme", | |
"folder_exclude_patterns": | |
[ | |
".idea", | |
".bundle", | |
".git", | |
"log" | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :db do | |
namespace :migrate do | |
desc 'insert version to migration table directly' | |
task :force, :version do |t, args| | |
ActiveRecord::Base.connection.initialize_schema_migrations_table | |
version = Integer(ENV['VERSION'] || args[:version]) | |
migrations = ActiveRecord::Migrator.migrations(ActiveRecord::Migrator.migrations_paths) | |
table = Arel::Table.new(ActiveRecord::Migrator.schema_migrations_table_name) | |
migrated = ActiveRecord::Migrator.get_all_versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use recipe on git. | |
# | |
# necessary variable: none | |
# | |
# optional variable: | |
# gitipe_repository: | |
# if this is empty, use source as gitipe | |
# gitipe_branch: | |
# if gitipe_repository is not empty, this varaible is not used | |
# default "master" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A | |
def yield_block | |
yield | |
end | |
def call_block(&block) | |
block.call | |
end | |
def eval_block(&block) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'json' | |
require 'optparse' | |
# variables | |
project_name = Dir.pwd.split('/').last | |
project_file = "../.#{project_name}.sublime-project" | |
puts "Project file is #{project_file}" | |
# gem attributes |
OlderNewer