$ man launchd
$ man launchctl
$ man launchd.plist
$ man plutil
# データベースへロード | |
docker exec $(docker ps -f name=freecodecamp_server_1 -q) node seed |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8' /> | |
<title></title> | |
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /> | |
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.26.0/mapbox-gl.js'></script> | |
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.26.0/mapbox-gl.css' rel='stylesheet' /> | |
<link href='https://www.mapbox.com/base/latest/base.css' rel='stylesheet' /> | |
<style> |
type | Regexp |
---|---|
iPhone | .iPhone. |
iPad | .iPad. |
Android | .Android. |
Windows Phone | .Windows Phone. |
BlackBerry | .BlackBerry. |
Symbian | .Symbian. |
IE | .Mozilla/[\d.]+ (compatible; MSIE (\d+). |
Chrome | .Chrome.(\d+). |
if (phantom.args.length == 0) { | |
phantom.exit(); | |
} | |
var i = 0, ua, url, clipRect = null, file, wait_ms; | |
if (!phantom.args[i].match(/^https?:\/\//)) { | |
ua = phantom.args[i++]; | |
} | |
url = phantom.args[i++]; | |
file = phantom.args[i++]; |
# using ruby 2.0.0-p247 | |
rbenv local 2.0.0-p247 | |
# install fluentd | |
echo 'source "https://rubygems.org" | |
gem "fluentd"' > Gemfile | |
bundle install --path=bundle | |
# create fluent.conf | |
echo '<source> |
class AHelper | |
def render_ul arg | |
unless arg.nil? or arg.empty? | |
"<ul>#{render arg}</ul>".html_safe | |
else | |
"" | |
end | |
end | |
end |