This file contains 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
> lein dev-dirac-sample 22:21:59 browser | selected browser binary '/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary' | |
22:21:59 browser | waiting for compilation of clojurescript components... | |
22:22:01 fig-dirac | Figwheel: Cutting some fruit, just a sec ... | |
22:22:01 server-sample | Starting HTTP server on port 9977 => http://localhost:9977 | |
22:22:01 fig-sample | Figwheel: Cutting some fruit, just a sec ... | |
22:22:01 fig-marion | Figwheel: Cutting some fruit, just a sec ... | |
22:22:02 marion-cs | Watching for changes before compiling ClojureScript... | |
22:22:11 marion-cs | Compiling "test/marion/resources/unpacked/.compiled/content_script/content_script.js" from ("src/empty" "src/settings" "src/shared" "test/marion/src/content_script")... | |
22:22:17 fig-sample | Figwheel: Validating the configuration found in project.clj | |
22:22:17 fig-sample | Figwheel: Config |
This file contains 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
diff --git a/project.clj b/project.clj | |
index 55e473c..991ba3b 100644 | |
--- a/project.clj | |
+++ b/project.clj | |
@@ -49,9 +49,7 @@ | |
:source-map-timestamp true | |
;; To console.log CLJS data-structures make sure you enable devtools in Chrome | |
;; https://github.com/binaryage/cljs-devtools | |
- :preloads [devtools.preload dirac.runtime.preload] | |
- :external-config {:dirac.runtime/config {:agent-host "localhost" |
This file contains 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 steveltn/https-portal | |
COPY ./fs_overlay / | |
# official nginx container symlinks both access.log (error.log) to stdout (stderr) | |
# we don't want to spam our docker logs with busy access logging | |
# if needed do `docker exec -ti portal tail -f /var/log/nginx/access.log` to check access logs | |
RUN rm /var/log/nginx/access.log |
This file contains 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
(defmacro log* [& args] | |
`(binding [*ns* ~*ns*] | |
(clj-log.core/log ~@args))) |
This file contains 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
diff --git a/syslog-ng.conf b/syslog-ng.conf | |
index 0836d72..b47f605 100644 | |
--- a/syslog-ng.conf | |
+++ b/syslog-ng.conf | |
@@ -21,15 +21,35 @@ filter f_turris_iptables { | |
not match(".*turris[^:]*: .*" value(MESSAGE)) or not level(debug); | |
}; | |
+filter f_not_cron { | |
+ not program(".*cron.*"); |
This file contains 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
(ns cljs.stripe | |
(:require-macros [cljs.core.async.macros :refer [go]]) | |
(:require [cljs.core.async :refer [<! chan put!]] | |
[oops.core :refer [gcall!]])) | |
; Stripe.piiData.createToken({ | |
; personal_id_number: $('.personal_id_number').val() | |
; }, stripeResponseHandler); | |
; a simple wrapper |
This file contains 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
; we cannot use cljs.core/merge because that would confuse advanced mode compilation | |
; if you look at cljs.core/merge you will see that it relies on protocol checks and this is too dymamic to be elided | |
(defn simple-merge [m1 m2] | |
(loop [m m1 | |
ks (keys m2)] | |
(if (empty? ks) | |
m | |
(recur (assoc m (first ks) (get m2 (first ks))) (rest ks))))) | |
(def default-config defaults/prefs) |
This file contains 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
stdout TypeError: this.$late1$.$select_STAR_$ is not a function | |
command: (select-subreps suggest-box-item-rep? result28455) | |
form: | |
((find-suggest-box-element) | |
(build-rep) | |
(select-subreps suggest-box-item-rep?) | |
(map print-suggest-box-item) | |
(print-list)) | |
error: | |
TypeError: this.$late1$.$select_STAR_$ is not a function |
This file contains 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
planck 00:30:26 | |
cljs.user=> (def my-fn (fn [] (js/RegExp. "^prefix\\s+" "gi"))) | |
#'cljs.user/my-fn | |
cljs.user=> (.toString my-fn) | |
"function cljs$user$my_fn(){\nreturn (new RegExp(\"^prefix\\\\s+\",\"gi\"));\n}" | |
cljs.user=> |
This file contains 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
// ... | |
while (true) { | |
if ((i56549 < len56548)) { | |
var mode56551 = (path56547[i56549]); | |
var key56552 = (path56547[(i56549 + (1))]); | |
var next_obj56553 = oops.core.get_key_dynamically.call(null, obj56550, key56552, mode56551); | |
var G__56555 = mode56551; | |
switch (G__56555) { | |
case (0): | |
var G__56557 = (i56549 + (2)); |