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
# NOTE re: deployment | |
# - with self server (running on any VM from any provider): | |
# $ @@ dev docker-compose up --remove-orphans | |
# and then: | |
# $ @@ ^dev # will securely tunnel WUI (:3000) to http://localhost:16623 | |
# - with docker-compose configured otherwise: | |
# # well, you must know how to run this in your environment then, see below | |
version: '2.1' | |
services: | |
chat: |
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
docker run --rm -v "`pwd`:`pwd`" -w "`pwd`" ruby bash -c 'gem install html2haml; find . -name "*.erb" | while read path; do html2haml "$path" "${path%erb}haml"; rm "$path"; done' |
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
|o| | |
video_output_options = {resolution: Ffmprb::HD_4K, fps: 60, encoder: 'huffyuv'} | |
class InputSlideCropper | |
def initialize(inp, cols = 1, rows = 1) | |
fail "not much of a slideshow" unless | |
rows > 0 && cols > 0 && rows + cols > 2 | |
@inp = inp | |
@h1 = 1.0/(@rows = rows) | |
@w1 = 1.0/(@cols = cols) |
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
|o| | |
# NOTE Run me like this: | <ffmprb> <OUT-PATH> | |
# NOTE A bit of a boilerplate for more independence: | |
# NOTE for previewing | |
# video_output_options = {resolution: Ffmprb::HD_720p, fps: 30, encoder: 'libx264'} | |
# NOTE for further processing: | |
video_output_options = {resolution: Ffmprb::HD_4K, fps: 60, encoder: 'huffyuv'} | |
# NOTE for viewing |
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
|o| | |
# NOTE Run me like this: | <ffmprb> <OUT-PATH> | |
# NOTE for previewing | |
# video_output_options = {resolution: Ffmprb::HD_720p, fps: 30, encoder: 'libx264'} | |
# NOTE for further processing: | |
video_output_options = {resolution: Ffmprb::HD_4K, fps: 60, encoder: 'huffyuv'} | |
# NOTE for viewing | |
# video_output_options = {resolution: Ffmprb::HD_1080p, fps: 60, encoder: 'libx265'} | |
# NOTE for dev |
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
|o| | |
# NOTE Run me like this: | <ffmprb> <OUT-PATH> | |
# NOTE A bit of a boilerplate for more independence: | |
# NOTE for previewing | |
# video_output_options = {resolution: Ffmprb::HD_720p, fps: 30, encoder: 'libx264'} | |
# NOTE for further processing: | |
video_output_options = {resolution: Ffmprb::HD_4K, fps: 60, encoder: 'huffyuv'} | |
# NOTE for viewing |
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
version: '2.1' | |
services: # NOTE basic, no VPN, setup | |
torrenting: | |
image: linuxserver/transmission | |
environment: | |
- PORT=9091 # NOTE needed by the (self server) platform | |
- PEERPORT=31415 # NOTE a random port for torrent proto | |
- PGID=0 # NOTE the (self server) platform has... | |
- PUID=0 # ...limited use for permissions | |
- TZ=Etc/UTC |
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
[6:v] scale=iw*min(1280/iw\,720/ih):ih*min(1280/iw\,720/ih), setsar=1, pad=1280:720:(1280-iw*min(1280/iw\,720/ih))/2:(720-ih*min(1280/iw\,720/ih))/2, setsar=1, fps=fps=60 [tmo0rl0:v]; [6:a] anull [tmo0rl0:a]; color=0x000000@0:d=7.0:s=1280x720:r=60 [blo0rl0:v]; [tmo0rl0:v] [blo0rl0:v] concat=2:v=1:a=0 [pdo0rl0:v]; [pdo0rl0:v] trim=11.0:18.0, setpts=PTS-STARTPTS [o0rl0:v]; aevalsrc=0:d=7.0 [blo0rl0:a]; [tmo0rl0:a] [blo0rl0:a] concat=2:v=0:a=1 [pdo0rl0:a]; [pdo0rl0:a] atrim=11.0:18.0, asetpts=PTS-STARTPTS [o0rl0:a]; [0:v] scale=iw*min(1280/iw\,720/ih):ih*min(1280/iw\,720/ih), setsar=1, pad=1280:720:(1280-iw*min(1280/iw\,720/ih))/2:(720-ih*min(1280/iw\,720/ih))/2, setsar=1, fps=fps=60 [tmo0rl1:v]; [0:a] anull [tmo0rl1:a]; color=0x000000@0:d=8:s=1280x720:r=60 [blo0rl1:v]; [tmo0rl1:v] [blo0rl1:v] concat=2:v=1:a=0 [pdo0rl1:v]; [pdo0rl1:v] trim=7:15, setpts=PTS-STARTPTS [o0rl1:v]; aevalsrc=0:d=8 [blo0rl1:a]; [tmo0rl1:a] [blo0rl1:a] concat=2:v=0:a=1 [pdo0rl1:a]; [pdo0rl1:a] atrim=7:15, asetpts=PTS-STARTPTS [o0rl1:a]; |