Skip to content

Instantly share code, notes, and snippets.

View manandearth's full-sized avatar
🏠
Working from home

Adam Gefen manandearth

🏠
Working from home
  • Vejer de la Frontera, Cadiz, Spain
View GitHub Profile
➜ selgros-shop-de git:(develop) ✗ ddev start
Starting selgros-shop-de...
mkcert may not be properly installed, we suggest installing it for trusted https support, `brew install mkcert nss`, `choco install -y mkcert`, etc
. and then `mkcert -install`
Running Command=ip address show dev docker0
Building db
Building web
I'll start at the highest level and go in.
the relevant part of the react component that calls the custom hook:
//////////////
//product.js//
//////////////
///////////////////////////
//useProductDetailData.js//
///////////////////////////
@manandearth
manandearth / gist:5a5a5052878fa3849ec2e8da7cbcfc0a
Last active August 22, 2019 16:26
eslint shell-command hook for js modes
(defun eslint-fix-file ()
(interactive)
(message "eslint --fixing the file" (buffer-file-name))
(shell-command (concat "eslint --fix " (buffer-file-name))))
(defun eslint-fix-file-and-revert ()
(interactive)
(when (or(eq major-mode 'js2-mode)
(eq major-mode 'rjsx-mode)
(eq major-mode 'js2-jsx-mode))
@manandearth
manandearth / stack_trace lein uberjar
Created May 27, 2019 10:43
running hirundia jar
Exception in thread "main" java.lang.ExceptionInInitializerError
at clojure.lang.Namespace.<init>(Namespace.java:34)
at clojure.lang.Namespace.findOrCreate(Namespace.java:176)
at clojure.lang.Var.internPrivate(Var.java:156)
at hirundia.server.<clinit>(Unknown Source)
Caused by: Syntax error compiling at (user.clj:1:1).
at clojure.lang.Compiler.load(Compiler.java:7647)
at clojure.lang.RT.loadResourceScript(RT.java:381)
at clojure.lang.RT.loadResourceScript(RT.java:368)
at clojure.lang.RT.maybeLoadResourceScript(RT.java:364)
h.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE] [21/1332]
13:36:27,189 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.Pa[20/1332]
utEncoder] for [encoder] property [19/1332]
13:36:27,215 |-INFO in c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@158801009 - Archive files will be limited to [64 MB] each. [18/1332]
13:36:27,217 |-INFO in c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@158801009 - No compression will be used [17/1332]
13:36:27,218 |-INFO in c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@158801009 - Will use the pattern logs/playground-%d{yyyy-MM-dd}.%i[16/1332]
the active file [15/1332]
13:36:27,220
➜ playground git:(migration) ✗ lein migrate dev
13:34:07,947 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
13:34:07,947 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
13:34:07,947 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/home/adam/clojure-projects/playground/config/logback.xml]
13:34:07,988 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
13:34:07,993 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Will scan for changes in [file:/home/adam/clojure-projects/playground/config/logback.xml]
13:34:07,993 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Setting ReconfigureOnChangeTask scanning period to 10 seconds
13:34:07,998 |-INFO in ch.qos.logback.core.joran
@manandearth
manandearth / gist:406500aeca58687fd32bb866ba76385a
Last active April 21, 2019 14:55
lein test stack 2019-04-21
16:39:18,408 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Setting ReconfigureOnChangeTask scanning period to 10 seconds
16:39:18,412 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
16:39:18,414 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
16:39:18,417 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
16:39:18,440 |-INFO in c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@976673374 - Archive files will be limited to [64 MB] each.
16:39:18,441 |-INFO in c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@976673374 - No compression will be used
16:39:18,442 |-INFO in c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@976673374 - Will use the pattern logs/playground-%d{yyyy-MM-dd}.%i.log for the active file
16:39:18,444 |-INFO in ch.qos.logb
@manandearth
manandearth / stack_trace
Created April 6, 2019 15:40
stack trace figwheel
Failed to compile build :dev from ["src/cljs"] in 0.571 seconds.
---- Exception ----
com.cognitect.transit.TransitFactory.writer(Lcom/cognitect/transit/TransitFactory$Format;Ljava/io/OutputStream;Ljava/util/Map;Lcom/cognitect/transit/WriteHandler;Ljava/util/function/Function;)Lcom/cognitect/transit/Writer;
---- Exception Stack Trace ----
java.lang.NoSuchMethodError: com.cognitect.transit.TransitFactory.writer(Lcom/cognitect/transit/TransitFactory$Format;Ljava/io/OutputStream;Ljava/util/Map;Lcom/cognitect/transit/WriteHandler;Ljava/util/function/Function;)Lcom/cognitect/transit/Writer;
at cognitect.transit$writer.invokeStatic (transit.clj:157)
cognitect.transit$writer.invoke (transit.clj:139)
(defproject hirundia "0.0.1-SNAPSHOT"
:description ""
:url ""
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [
#_[amazonica "0.3.125"]