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
| # ...definitions... | |
| describe "Automated vlogging" do | |
| # ...setup... | |
| it "should happen whenever iCloud has a new *relevant* video" do | |
| Dir.chdir LOG_PROJ_DIR do | |
| before_dir = Dir.children(TODAY_DATE_DIR) rescue [] | |
| expect(expected_pub_url = ask("Enter the (\"channel\") URL for publishing")).not_to be_empty | |
| puts RQRCode::QRCode.new(expected_pub_url).as_ansi | |
| expect(ask "Now, shoot your best (very short, please) video with your (stock) iSome device:\n" + | |
| "at the end of the video, point and focus its camera on the QR above (publishing URL).\n" + |
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 python:3.9 | |
| WORKDIR /stan-xpolog | |
| ADD requirements.txt . | |
| RUN pip install -r requirements.txt | |
| ADD . . | |
| ENV PORT=80 |
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: | |
| xpolog: | |
| build: . |
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 debian:bookworm | |
| RUN apt update && apt install -y curl | |
| WORKDIR /tmp | |
| RUN curl -O "https://xdn.xplg.com/downloads/xpolog/GA/linux/XpoLogCenterSetup-64.bin.gz" && gunzip XpoLogCenterSetup-64.bin.gz && chmod a+x XpoLogCenterSetup-64.bin | |
| RUN yes '' | ./XpoLogCenterSetup-64.bin | |
| WORKDIR /root | |
| EXPOSE 30303 |
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
| describe "Automated publishing" do # NOTE incl. drv/youtube integration | |
| # ...setup... | |
| it "should happen whenever .pub.video is comitted to 'log' git repo" do | |
| Dir.chdir log_repo_work_dir do | |
| sample_pub_video_path = File.join(today_date_path, 'just-testing.pub.video') | |
| sample_pub_video_text = # NOTE straight outta ../README.md | |
| <<EOF | |
| Chang Wash Fun, winter 2022, Chiang Mai, Thailand | |
| src: |
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 |