Compare commits

...

8 Commits

Author SHA1 Message Date
Jeremy Dormitzer
c153b9f9a9 Account for providers gunicorn changes 2021-04-15 15:28:34 -04:00
Jeremy Dormitzer
a20b5f5662 Run ean-hotels not in gunicorn 2021-04-15 15:27:42 -04:00
Jeremy Dormitzer
03d6a83bc4 Specify PORT for secrets 2021-04-15 15:27:33 -04:00
Jeremy Dormitzer
83c442798d Formatting 2021-04-15 15:27:28 -04:00
Jeremy Dormitzer
ce0bc6b3c3 Disable the flake8 flycheck checker 2021-04-15 15:27:10 -04:00
Jeremy Dormitzer
3bfcbd3451 Bind keys to rescale text 2021-04-15 15:26:56 -04:00
Jeremy Dormitzer
d98ce82424 Add xml-pretty-print 2021-04-15 15:26:47 -04:00
Jeremy Dormitzer
b29c541f33 Add wallabag.el 2021-04-15 15:26:38 -04:00
6 changed files with 53 additions and 13 deletions

View File

@ -81,13 +81,13 @@
(funcall create-process) (funcall create-process)
(let ((tryout 0)) (let ((tryout 0))
(prodigy-every 1 (prodigy-every 1
(lambda (next) (lambda (next)
(setq tryout (1+ tryout)) (setq tryout (1+ tryout))
(if (process-live-p process) (if (process-live-p process)
(when callback (funcall callback)) (when callback (funcall callback))
(if (= tryout prodigy-start-tryouts) (if (= tryout prodigy-start-tryouts)
(prodigy-set-status service 'failed) (prodigy-set-status service 'failed)
(funcall next)))))) (funcall next))))))
(plist-put service :process process) (plist-put service :process process)
(when (not (plist-get service :inhibit-process-filter)) (when (not (plist-get service :inhibit-process-filter))
(set-process-filter (set-process-filter
@ -203,6 +203,7 @@
:tags '(lola backend) :tags '(lola backend)
:command "python" :command "python"
:args '("bin/cmdline.py" "www") :args '("bin/cmdline.py" "www")
:env '(("PORT" "7450"))
:cwd "~/lola/secrets" :cwd "~/lola/secrets"
:truncate-output t :truncate-output t
:stop-signal 'int :stop-signal 'int
@ -263,7 +264,7 @@
:name "priceline-service" :name "priceline-service"
:tags '(lola backend) :tags '(lola backend)
:command "~/lola/python_services/priceline/bin/start.sh" :command "~/lola/python_services/priceline/bin/start.sh"
:args '("web") :args '("web-dev")
:cwd "~/lola/python_services" :cwd "~/lola/python_services"
:stop-signal 'int :stop-signal 'int
:init-async (python-service-setup "~/lola/python_services/.venv" :init-async (python-service-setup "~/lola/python_services/.venv"
@ -275,7 +276,7 @@
:tags '(lola backend) :tags '(lola backend)
:command "bash" :command "bash"
:args '("-c" :args '("-c"
"priceline_cars/bin/start.sh web >> ~/lola/logs/priceline-cars.log 2>&1") "priceline_cars/bin/start.sh web-dev >> ~/lola/logs/priceline-cars.log 2>&1")
:cwd "~/lola/python_services" :cwd "~/lola/python_services"
:inhibit-process-filter t :inhibit-process-filter t
:file "~/lola/logs/priceline-cars.log" :file "~/lola/logs/priceline-cars.log"
@ -288,7 +289,7 @@
:name "threev-service" :name "threev-service"
:tags '(lola backend) :tags '(lola backend)
:command "~/lola/python_services/threev/bin/start.sh" :command "~/lola/python_services/threev/bin/start.sh"
:args '("web") :args '("web-dev")
:cwd "~/lola/python_services" :cwd "~/lola/python_services"
:stop-signal 'int :stop-signal 'int
:init-async (python-service-setup "~/lola/python_services/.venv" :init-async (python-service-setup "~/lola/python_services/.venv"
@ -299,7 +300,7 @@
:name "amd-flight-service" :name "amd-flight-service"
:tags '(lola backend) :tags '(lola backend)
:command "~/lola/python_services/amd_flight/bin/start.sh" :command "~/lola/python_services/amd_flight/bin/start.sh"
:args '("web") :args '("web-dev")
:cwd "~/lola/python_services" :cwd "~/lola/python_services"
:stop-signal 'int :stop-signal 'int
:init-async (python-service-setup "~/lola/python_services/.venv" :init-async (python-service-setup "~/lola/python_services/.venv"
@ -311,7 +312,7 @@
:tags '(lola backend) :tags '(lola backend)
:command "bash" :command "bash"
:args '("-c" :args '("-c"
"ean_hotels/bin/start.sh web >> ~/lola/logs/ean-hotels.log 2>&1") "ean_hotels/bin/start.sh web-dev >> ~/lola/logs/ean-hotels.log 2>&1")
:cwd "~/lola/python_services" :cwd "~/lola/python_services"
:inhibit-process-filter t :inhibit-process-filter t
:file "~/lola/logs/ean-hotels.log" :file "~/lola/logs/ean-hotels.log"

View File

@ -29,7 +29,8 @@
:predicate flycheck-buffer-saved-p :predicate flycheck-buffer-saved-p
:working-directory (lambda (checker) :working-directory (lambda (checker)
(or (projectile-compilation-dir) (or (projectile-compilation-dir)
default-directory)))) default-directory)))
(add-to-list 'flycheck-disabled-checkers 'python-flake8))
;; pyvenv to track virtual environments ;; pyvenv to track virtual environments
(use-package pyvenv (use-package pyvenv

View File

@ -26,4 +26,13 @@
(delete-dups (font-family-list))))) (delete-dups (font-family-list)))))
(set-frame-font font)) (set-frame-font font))
(defun text-scale-reset ()
(interactive)
(text-scale-increase 0))
(general-def
"C-c +" #'text-scale-increase
"C-c -" #'text-scale-decrease
"C-c 0" #'text-scale-reset)
(provide 'init-ui) (provide 'init-ui)

View File

@ -0,0 +1,17 @@
;; -*- lexical-binding: t; -*-
(use-package wallabag
:straight (:host github :repo "chenyanming/wallabag.el" :files ("*.el" "emojis.alist"))
:commands (wallabag
wallabag-find
wallabag-full-update
wallabag-request-token
wallabag-add-entry
wallabag-insert-entry)
:config
(setq wallabag-host "https://wallabag.jeremydormitzer.com"
wallabag-username "jdormit"
wallabag-password (password-store-get "wallabag.jeremydormitzer.com")
wallabag-clientid (password-store-get "wallabag-client-id")
wallabag-secret (password-store-get "wallabag-client-secret")))
(provide 'init-wallabag)

View File

@ -4,6 +4,17 @@
:straight (:type built-in) :straight (:type built-in)
:defer t :defer t
:config :config
(defun xml-pretty-print ()
(interactive)
(let ((start (if (region-active-p) (region-beginning) (point-min)))
(end (if (region-active-p) (region-end) (point-max))))
(cond
((executable-find "tidy")
(shell-command-on-region start end "tidy -wrap 88 -q -i -xml" nil t))
((executable-find "xmllint")
(shell-command-on-region start end "xmllint --format -" nil t))
(t (sgml-pretty-print start end)))))
(general-def nxml-mode-map "C-M-\\" #'xml-pretty-print)
(add-to-list 'hs-special-modes-alist (add-to-list 'hs-special-modes-alist
'(nxml-mode '(nxml-mode
"<!--\\|<[^/>]*[^/]>" ;; regexp for start block "<!--\\|<[^/>]*[^/]>" ;; regexp for start block

View File

@ -105,6 +105,7 @@
(require 'init-homebrew) (require 'init-homebrew)
(require 'init-elfeed) (require 'init-elfeed)
(require 'init-1pass) (require 'init-1pass)
(require 'init-wallabag)
(require 'init-lola) (require 'init-lola)
(when (file-exists-p custom-file) (when (file-exists-p custom-file)