From 10fff7494f44ba09519573139cd05d4c715c4178 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Fri, 2 Dec 2022 18:34:31 -0500 Subject: Automated commit --- 2022/organizers-notebook/index.org | 121 ++++++++++++++++++++++++++++++++++--- 1 file changed, 114 insertions(+), 7 deletions(-) (limited to '2022/organizers-notebook') diff --git a/2022/organizers-notebook/index.org b/2022/organizers-notebook/index.org index 639712e1..99f8926d 100644 --- a/2022/organizers-notebook/index.org +++ b/2022/organizers-notebook/index.org @@ -134,9 +134,15 @@ res.emacsconf.org:/data/emacsconf/2021/dumps/ Now there should be more space in case we want to enable dumping before the resize -*** BLOCKED [#A] Update ansible configuration :sachac: +*** STARTED [#A] Update ansible configuration :sachac: SCHEDULED: <2022-12-02 Fri> -Waiting for Resie +:PROPERTIES: +:Effort: 0:30 +:END: +:LOGBOOK: +CLOCK: [2022-12-02 Fri 15:59] +:END: +Waiting for resize Clean up the media root in all.yml @@ -145,7 +151,9 @@ test_mode: false then -ansible-playbook -i inventory.yml prod-playbook.yml --tags media,stream,publish +ansible-playbook -i inventory.yml prod-playbook.yml --tags media +ansible-playbook -i inventory.yml prod-playbook.yml --tags stream +ansible-playbook -i inventory.yml prod-playbook.yml --tags publish Confirm that - icecast dumps recordings @@ -730,15 +738,113 @@ CLOCK: [2022-11-23 Wed 21:52]--[2022-11-23 Wed 22:57] => 1:05 "\n")) #+end_src -*** TODO Upload talks to YouTube +*** STARTED Upload talks to YouTube SCHEDULED: <2022-12-05 Mon> :PROPERTIES: :CREATED: [2022-12-01 Thu 07:47] +:Effort: 0:30 :END: -*** TODO upload the rest of the files onto Toobnix -SCHEDULED: <2022-12-02 Fri> +:LOGBOOK: +CLOCK: [2022-12-02 Fri 12:56]--[2022-12-02 Fri 15:59] => 3:03 +:END: + +#+begin_src emacs-lisp :eval yes +(seq-keep + (lambda (o) + (when (and + (file-exists-p + (expand-file-name + (concat (plist-get o :video-slug) "--final.webm") + emacsconf-cache-dir)) + (null (plist-get o :youtube-url))) + (concat (plist-get o :video-slug) "--final.webm"))) + (emacsconf-get-talk-info)) +#+end_src + +#+begin_src emacs-lisp :eval no +;; This buffer is for text that is not saved, and for Lisp evaluation. +;; To create a file, visit it with C-x C-f and enter text in its buffer. + +;; (let ((pos (shell-command-to-string "xdotool getmouselocation"))) +;; (when (string-match "x:\\([0-9]+\\) y:\\([0-9]+\\)" pos) +;; (insert (format "(shell-command \"xdotool mousemove %s %s click 1\")\n" (match-string 1 pos) (match-string 2 pos))))) + +(setq list (seq-filter (lambda (o) + (and + (file-exists-p + (expand-file-name + (concat (plist-get o :video-slug) "--final.webm") + emacsconf-cache-dir)) + (null (plist-get o :youtube-url)))) + (emacsconf-prepare-for-display (emacsconf-get-talk-info)))) + +(setq talk (pop list)) +(progn + ;; click create + (shell-command "xdotool mousemove 2439 223 click 1 sleep 1") + ;; video + (shell-command "xdotool mousemove 2420 260 click 1 sleep 1") + ;; select files + (shell-command (concat "xdotool mousemove 1897 984 click 1 sleep 4 type " + (shell-quote-argument (concat (plist-get talk :video-slug) "--final.webm")))) + (shell-command "xdotool mousemove 2101 961 click 1 sleep 5") + + (shell-command (concat "xdotool mousemove 1530 447 click 1 key Ctrl+a Delete sleep 1 type " + (shell-quote-argument (concat + emacsconf-name " " + emacsconf-year ": " + (plist-get talk :title) + " - " + (plist-get talk :speakers-with-pronouns))))) + + (emacsconf-publish-video-description talk t t)) + +;; next +(progn + (shell-command "xdotool mousemove 2315 1488 click 1 sleep 2") + ;; add captions + (shell-command "xdotool mousemove 2285 462 click 1 sleep 4") + (shell-command "xdotool mousemove 1576 619 click 1 sleep 3") + (shell-command "xdotool mousemove 2015 940 click 1 sleep 4") + (shell-command (concat "xdotool mousemove 1984 869 click 1 sleep 4 type " + (shell-quote-argument (concat (plist-get talk :video-slug) "--main.vtt")))) + (progn + (shell-command "xdotool mousemove 2102 954 sleep 1 click 1 sleep 4") + ;; done + (shell-command "xdotool mousemove 2285 500 click 1 sleep 3") + (shell-command "xdotool mousemove 2312 1483 click 1 sleep 1") + (shell-command "xdotool mousemove 2312 1483 click 1 sleep 1") + ;; schedule + (shell-command "xdotool mousemove 1527 752 click 1") + (message "%s" (format-time-string "%Y-%m-%d %I:%M %p" (plist-get talk :start-time) + emacsconf-timezone)))) +;; (shell-command (concat "xdotool mousemove 1695 611 click 1 key Shift+PgDn Ctrl+a Del type " +;; (format-time-string "%I:%M %p" +;; (plist-get talk :start-time) +;; emacsconf-timezone))) +;; copy link + +(progn + (shell-command "xdotool mousemove 2284 668 click 1 sleep 1 click 1") + ;; schedule + (shell-command "xdotool mousemove 2324 1498 click 1 sleep 3") + (emacsconf-with-talk-heading talk + (org-entry-put (point) "YOUTUBE_URL" (read-string "URL: " (current-kill 0))) + ) + ;; close + (shell-command "xdotool mousemove 2100 996 click 1") + ) + + +#+end_src +*** DONE upload the rest of the files onto Toobnix +CLOSED: [2022-12-02 Fri 12:54] SCHEDULED: <2022-12-02 Fri> :PROPERTIES: :CREATED: [2022-12-02 Fri 08:16] +:Effort: 0:30 +:END: +:LOGBOOK: +CLOCK: [2022-12-02 Fri 12:47]--[2022-12-02 Fri 12:54] => 0:07 :END: ** DONE [#A] Do another run CLOSED: [2022-11-28 Mon 00:21] SCHEDULED: <2022-11-27 Sun> @@ -2801,7 +2907,8 @@ CLOSED: [2022-11-29 Tue 07:50] SCHEDULED: <2022-12-01 Thu> (null (plist-get o :captions-edited)))) (emacsconf-get-talk-info))) #+end_src -**** STARTED Automatically commit and push the wiki +**** DONE Automatically commit and push the wiki +CLOSED: [2022-12-02 Fri 12:47] :PROPERTIES: :Effort: 0:30 :END: -- cgit v1.2.3