This file contains hidden or 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
| { | |
| title: Using Phoenix Webframework as static content generator | |
| pars: [ | |
| { | |
| text: """ | |
| |## Introduction ## | |
| | | |
| |Phoenix is not only an excellent web framework, but also it can be transformed with a few steps into a | |
| |static content generator. You need some programming knowledge, so this way is | |
| |rather something for developers. |
This file contains hidden or 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 elixir:1.9.1-alpine as build | |
| # install build dependencies | |
| RUN apk add --update build-base nodejs yarn | |
| # prepare build dir | |
| RUN mkdir /app | |
| WORKDIR /app | |
| # install hex + rebar |
This file contains hidden or 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
| defmodule Ldif do | |
| import NimbleParsec | |
| name= ascii_string([?a..?z, ?A..?Z, ?0..?9], min: 1) | |
| eol = ascii_char([?\n]) |> ignore() | |
| assigment = | |
| choice([ | |
| string("::") |> replace(:base64), |
This file contains hidden or 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
| $ID = ?? | |
| docker stop $ID & | |
| docker update --restart=no $ID & |
This file contains hidden or 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
| void setup() { | |
| MCUSR = 0; | |
| wdt_disable(); | |
| } | |
NewerOlder