I hereby claim:
- I am nahtnam on github.
- I am nahtnam (https://keybase.io/nahtnam) on keybase.
- I have a public key whose fingerprint is 44F7 D0C4 4B1F 693E 3C5A 7299 BCBB A793 8FF8 8DA0
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const shell = require('shelljs'); | |
const offlineTime = 300; // 5 minutes | |
const exec = cmd => shell.exec(cmd, { silent: true }); | |
let state = true; | |
let lastOnlineAt = Date.now(); | |
const ips = ['INSERT IP 1 HERE', 'INSERT MORE IF YOU NEED']; | |
exec('vcgencmd display_power 1'); // turn on the monitor to make sure the state is correct |
I hereby claim:
To claim this, I am signing this object:
Laravel-Mix is "an elegant wrapper around Webpack for the 80% use case". It has nothing to do with Elixir's Mix and does not require Laravel to work!
Create a new phoenix application with mix phx.new
. You may choose to add the --no-brunch
flag to stop brunch from being intiailized, but I personally prefer leaving that in and replacing brunch so that the folder structure is set up for me.
$ mix phx.new demo
image: node:6.2.2 | |
before_script: | |
- npm config set spin false | |
- npm install -g bower | |
- npm install -g ember-cli | |
- npm install -g phantomjs-prebuilt | |
- npm install | |
- bower install --allow-root |
image: elixir:1.3 | |
services: | |
- postgres:9.6 | |
variables: | |
MIX_ENV: "test" | |
before_script: | |
# Setup phoenix dependencies |