Skip to content

Instantly share code, notes, and snippets.

View wdiechmann's full-sized avatar

Walther Diechmann wdiechmann

View GitHub Profile
@wdiechmann
wdiechmann / phoenix_1.6_docker.md
Last active November 23, 2021 18:08
Trying to get the 1.6 going on a couple of containers

NOTE: If you happen to end up here 'by the hands of Google' or some other (mis)fortune - please have a look at the solution

I use Cesar William Alvarenga's setup to get going - and I'm OK for the db, and for the build of phoenix and, heck, I'm even good for the docker-compose run --rm phoenix mix test like this (my app is named battery_rehab - but otherwise it's a 1:1)

√ battery.rehab % docker-compose run --rm battery_rehab mix test
Creating batteryrehab_battery_rehab_run ... done
Compiling 17 files (.ex)
@wdiechmann
wdiechmann / VueTailwindTest.md
Last active March 10, 2021 15:48
VueTailwind issue

Software versions

rails: 6.1.3 ruby: 2.6.1p33 node: v14.12.0 yarn: 1.22.5

webpacker.yml

# Note: You must restart bin/webpack-dev-server for changes to take effect
@wdiechmann
wdiechmann / gist:ccfa6d70cfd1a39da372ac52e4e28fd6
Created May 20, 2020 06:11
icons missing - and how to fix it
Please see my 'environment' and how to reproduce below!
Trying to use the Google Keep Layout leaves me with the 'icons' spelled as text
If, however, I substitute the
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
with this

My 'workbench'

$ mix archive
* hex-0.16.0
* phoenix_new
* phx_new-1.3.0-rc.2
Archives installed at: /Users/walther/.mix/archives
$ elixir -v
Erlang/OTP 19 [erts-8.3] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
@wdiechmann
wdiechmann / gist:2f19a3c8cbd316e65fff6aa95d3b897a
Created September 6, 2016 05:16
installing yo and seeing it be forgotten
$ npm list yo
/Users/walther
└── (empty)
npm ERR! code 1
$ npm install -g yo
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
/Users/walther/.node/bin/yo -> /Users/walther/.node/lib/node_modules/yo/lib/cli.js
/Users/walther/.node/bin/yo-complete -> /Users/walther/.node/lib/node_modules/yo/lib/completion/index.js
@wdiechmann
wdiechmann / gist:a030590a99aa1e300104c7c1bceaf66d
Created September 5, 2016 18:23
documenting that I (hopefully did it by the book)
cd ~
brew uninstall --force node
sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*}
rm -rf ~/.node
sudo rm -rf ~/.node ~/.npm
sudo rm -rf node_modules /usr/local/lib/node_modules
$ curl "https://nodejs.org/dist/latest/node-${VERSION:-$(wget -qO- https://nodejs.org/dist/latest/ | sed -nE 's|.*>node-(.*)\.pkg</a>.*|\1|p')}.pkg" > "$HOME/Downloads/node-latest.pkg" && sudo installer -store -pkg "$HOME/Downloads/node-latest.pkg" -target "/"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14.8M 100 14.8M 0 0 3821k 0 0:00:03 0:00:03 --:--:-- 3821k
@wdiechmann
wdiechmann / gist:0da1a6d38df3c313ff45
Created February 23, 2016 15:29
elixir abstractcontroller
# web/controllers/page_controller.ex
defmodule HelloPhoenix.PageController do
# use HelloPhoenix.Web, :controller
use AbstractController
# def index(conn, _params) do
# render conn, "index.html"
# end
def show(conn, _params) do
@wdiechmann
wdiechmann / gist:703666a9feea00bdb7a9
Created January 7, 2016 13:40
npm install -g vorlon fails on node 4.2.4
$ which node
/usr/local/bin/node
$ node -v
v4.2.4
$ npm install -g vorlon
/Users/walther/.node/bin/vorlon -> /Users/walther/.node/lib/node_modules/vorlon/bin/vorlon
> bufferutil@1.1.0 install /Users/walther/.node/lib/node_modules/vorlon/node_modules/bufferutil
> node-gyp rebuild
@wdiechmann
wdiechmann / gist:d85b6485316084934803
Created January 6, 2016 12:30
npm install -g vorlon fails
/Users/walther/.node/bin/vorlon -> /Users/walther/.node/lib/node_modules/vorlon/bin/vorlon
> bufferutil@1.1.0 install /Users/walther/.node/lib/node_modules/vorlon/node_modules/bufferutil
> node-gyp rebuild
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
In file included from ../src/bufferutil.cc:16:
../../nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
^
@wdiechmann
wdiechmann / gist:323dd78e83e34e87660c
Last active November 25, 2015 18:17
nanobox hurls - complaining about mysql
[premier] bundle install
Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.4.2
...cut...
Using mysql2 0.3.20
Installing puma 2.15.3
Using sprockets 3.4.0