Skip to content

Instantly share code, notes, and snippets.

@isuzuki
isuzuki / Dockerfile
Created September 15, 2019 05:56
rails-docker
FROM node:12.10-buster as nodejs
FROM ruby:2.6-buster
COPY --from=nodejs /opt/yarn-v1.17.3 /opt/yarn
COPY --from=nodejs /usr/local/bin/node /usr/local/bin/node
RUN ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarnpkg
RUN gem install rails
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.5.1")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.3.4")
addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.3")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1")
organization := "io.github.isuzuki"
name := "scala-samples"
version := "0.1"
scalaVersion := "2.12.6"
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
FROM debian
RUN apt-get update \
&& apt-get upgrade -y \
# add install packages
&& apt-get install -y {packages} \
&& apt-get purge -y --auto-remove
#! /usr/bin/env bash
set -ue -o pipefail
// @see https://scalameta.org/scalafmt/docs/configuration.html
version = 2.3.2
align.openParenCallSite = true
align.openParenDefnSite = true
maxColumn = 120
continuationIndent.defnSite = 2
assumeStandardLibraryStripMargin = true
danglingParentheses = true
rewrite.rules = [AvoidInfix, SortImports, RedundantBraces, RedundantParens, SortModifiers]
docstrings = JavaDoc
# http://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
@isuzuki
isuzuki / .php_cs
Last active September 26, 2022 19:58
Config for PHP-CS-Fixer ver 2 (based on laravel .php_cs https://github.com/laravel/framework/blob/5.4/.php_cs)
<?php
/**
* Config for PHP-CS-Fixer ver2
*/
$rules = [
'@PSR2' => true,
// addtional rules
@isuzuki
isuzuki / file0.txt
Last active November 9, 2016 19:00
vagrant up shared foldersエラー ref: http://qiita.com/isuzuki/items/e63f9c4148075b840bde
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
The missing package can be probably installed with
yum install kernel-devel-2.6.32-573.el6.x86_64
Building the main Guest Additions module[FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions[ OK ]