$ docker-compose run --rm web ./bin/rails c
Running via Spring preloader in process 27
Loading development environment (Rails 5.1.0)
[1] pry(main)> User.count
(0.5ms) SET NAMES utf8mb4, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483
(0.9ms) SELECT COUNT(*) FROM `users`
=> 1
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
{ | |
"application.css": "", | |
"application.js": "", | |
"common.js": "", | |
"locale_en.js": "", | |
"logo.png": "", | |
"mastodon_small.jpg": "", | |
"public.js": "" | |
} |
MastodonをDockerでどっかーっと一発で動かすための便利なdocker-compose.yml
です。
$ sudo useradd mastodon
$ sudo usermod -aG docker mastodon
$ sudo -u mastodon mkdir -p ~mastodon/live
$ cd ~mastodon/live
$ sudo -u mastodon wget https://gist.github.com/ykzts/64e188dc7cd1cf6b98ff98678da5b267/raw/docker-compose.yml
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
fetch('/api/web/settings',{method:'put',credentials:'include',body:JSON.stringify(Object.assign({},JSON.parse(document.getElementById('initial-state').text).settings,{onboarded:false}))}).then(console.log.bind(console)).catch(console.error.bind(console)) |
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
javascript:(a=>(a=()=>[...document.querySelectorAll('.media-spoiler')].map(b=>b.click())&&requestAnimationFrame(a))())() |
- one
- two
- two-one
- two-two
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
FROM ubuntu:xenial | |
ENV PATH /usr/local/node-v6.9.5-linux-x64/bin:/usr/local/phantomjs-2.5.0-beta-ubuntu-xenial/bin:/root/.yarn/bin:${PATH} | |
RUN \ | |
apt-get update && \ | |
apt-get -y upgrade && \ | |
apt-get -y --no-install-recommends install ca-certificates curl libfontconfig-dev libhyphen-dev libjpeg-dev libxslt-dev && \ | |
rm -rf /var/lib/apt/lists/* && \ | |
mkdir -p /usr/local && \ |
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
{ | |
"babel": { | |
"babelrc": false, | |
"plugins": [ | |
"transform-es2015-modules-commonjs" | |
] | |
}, | |
"eslintConfig": { | |
"env": { | |
"browser": true, |
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 | |
rivarun --b25 --sid 23608 --ch GR/16 - - | \ | |
~chinachu/Chinachu/usr/bin/ffmpeg \ | |
-i pipe:0 \ | |
-map 0:0 \ | |
-map 0:1 \ | |
-c:v h264 \ | |
-c:a aac \ | |
-bsf:v h264_mp4toannexb \ |