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
/home/rails/rails_app/shared/log/*.log { | |
weekly | |
missingok | |
rotate 24 | |
dateext | |
compress | |
delaycompress | |
su rails rails | |
create 0644 rails rails |
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
package jp.dakatsuka.http4s | |
import argonaut.Argonaut._ | |
import argonaut.CodecJson | |
import com.github.mauricio.async.db.{RowData, Configuration} | |
import com.github.mauricio.async.db.mysql.MySQLConnection | |
import org.http4s.argonaut._ | |
import org.http4s.EntityEncoder | |
import org.http4s.dsl._ | |
import org.http4s.server.HttpService |
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
FROM ruby:2.2.2 | |
RUN apt-get update && apt-get install -y nodejs npm mysql-client --no-install-recommends && rm -rf /var/lib/apt/lists/* | |
RUN update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10 | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
COPY Gemfile /usr/src/app/ | |
COPY Gemfile.lock /usr/src/app/ |
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
gem 'aws-sdk', '~> 1' | |
gem 'aws-sdk-resources', '~> 2' |
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 Specinfra::Command::Darwin::Base::Package | |
class << self | |
def check_is_installed_homebrew_cask(package, version=nil) | |
escaped_package = escape(package) | |
if version | |
"/usr/local/bin/brew cask info #{escaped_package} | grep -E '^#{package}: #{escape(version)}'" | |
else | |
"/usr/local/bin/brew cask list -1 | grep -E '^#{escaped_package}$'" | |
end | |
end |
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
HipChat.app/Contents/Resources/chat.cssにパッチを適用すればOK。ご利用は計画的に。 |
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 | |
PID_FILE=/var/run/mailcatcher.pid | |
NAME=mailcatcher | |
PROG=/opt/rbenv/versions/1.9.3-p484/bin/mailcatcher | |
USER=mailcatcher | |
GROUP=mailcatcher | |
start() { | |
echo -n "Starting MailCatcher" |
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
{ | |
"repositories": [ | |
{ | |
"type": "package", | |
"package": { | |
"name": "knplabs/gaufrette", | |
"version": "0.2.0", | |
"source": { | |
"url": "git://github.com/KnpLabs/Gaufrette.git", | |
"type": "git", |
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
<?php | |
require './vendor/autoload.php'; | |
use Aws\CloudFront\CloudFrontClient; | |
$cloudfront = CloudFrontClient::factory([ | |
'private_key' => getcwd() . '/private_key.pem', | |
'key_pair_id' => 'YYYYYYYYYYYY' | |
]); |
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
<?php | |
class Stream implements \Iterator | |
{ | |
/** | |
* @var int | |
*/ | |
private $position; | |
/** |