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/bash | |
YEAR=`date "+%Y"` | |
MONTH=`date "+%m"` | |
DAY=`date "+%d"` | |
BACKUP_NAME=$YEAR-$MONTH-$DAY | |
DATABASES="template1 postgres target_database_name1" | |
BACKUP_DIR=/backups/data/postgresql | |
DAYS=3 |
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
@charset "UTF-8"; | |
.jp-audio { | |
width: 100%; | |
background: #FFFFFF; | |
} | |
.jp-controls li, | |
.jp-toggles li, | |
.jp-playlist li { |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>jPlayer for Bootstrap</title> | |
<!-- Bootstrap core CSS --> |
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 Picture < ActiveRecord::Base | |
before_create :randomize_file_name | |
pt = ':rails_root/documents/:class/:id_partition/:style/:basename.:extension' | |
if Rails.env.production? | |
pt = '/documents/:class/:id_partition/:style/:basename.:extension' | |
end | |
has_attached_file :file, { | |
url: '/:class/detail/:id/:hash', |