This file contains hidden or 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
| # 下記2行を追加 (ファイルがなければ作成) | |
| limit maxfiles 8192 20480 | |
| limit maxproc 1000 2000 |
This file contains hidden or 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
| $(document).ready(function() { | |
| $('a.location_timer').each(function(index, target) { | |
| var startDate = $(this).attr('data-start-date'); | |
| var endDate = $(this).attr('data-end-date'); | |
| var nowDate = new Date(); | |
| startDate = startDate ? new Date(startDate) : nowDate; | |
| endDate = endDate ? new Date(endDate) : null; | |
| if (startDate <= nowDate && (!endDate || nowDate <= endDate)) { |
This file contains hidden or 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 :admin do | |
| resources :resources | |
| end |
This file contains hidden or 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
| $(document).ready(function() { | |
| $(".view_timer").each(function(index, target) { | |
| var startDate = $(this).attr("start_date"); | |
| var endDate = $(this).attr("end_date"); | |
| var nowDate = new Date(); | |
| if (startDate) { | |
| startDate = new Date(startDate); | |
| } | |
| else { |
This file contains hidden or 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
| module Foo | |
| class Hoge < Thor | |
| # namespace :foo | |
| desc "hoge", "hogehoge!!" | |
| method_option :delete_flg, :type => :boolean, :aliases => "-d" | |
| def hoge() | |
| p "hoge" | |
| end | |
| end |
This file contains hidden or 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
| module Foo | |
| class Fuga < Class | |
| # namespace :foo | |
| desc "fuga", "fugafuga" | |
| method_option :delete_flg, :type => :boolean, :aliases => "-d" | |
| def fuga() | |
| p "fuga" | |
| end | |
| end |
This file contains hidden or 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 Fuga < Class | |
| namespace :foo | |
| desc "fuga", "fugafuga" | |
| method_option :delete_flg, :type => :boolean, :aliases => "-d" | |
| def fuga() | |
| p "fuga" | |
| end | |
| end | |
This file contains hidden or 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 Hoge < Thor | |
| namespace :foo | |
| desc "hoge", "hogehoge!!" | |
| method_option :delete_flg, :type => :boolean, :aliases => "-d" | |
| def hoge() | |
| p "hoge" | |
| end | |
| end |
This file contains hidden or 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/bash | |
| # ブログバックアップスクリプト | |
| # mysqlのアカウント情報 | |
| BLOG_USER=scott | |
| BLOG_PASS=tiger | |
| # WORDPRESSのディレクトリ | |
| WORDPRESS_DIR=/var/www/blog | |
| # バックアップ先Dirと保存する期間 | |
| BACKUP_DIR=/home/hoge/Dropbox/blog | |
| BACKUP_DATE="+10" |
This file contains hidden or 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 | |
| ### BEGIN INIT INFO | |
| # Provides: unicorn | |
| # Required-Start: $local_fs $remote_fs | |
| # Required-Stop: $local_fs $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: starts unicorn | |
| # Description: starts uniconr using start-stop-daemon |