Skip to content

Instantly share code, notes, and snippets.

View mustmodify's full-sized avatar

Johnathon "jw" Wright mustmodify

View GitHub Profile
demo@beaker:~/castle/releases/20181010202129/client$ sh -c "yarn run build:production"
yarn run v1.10.1
$ NODE_ENV=production webpack --config webpack.config.js
/usr/lib/node_modules/webpack-cli/bin/cli.js:244
throw err;
^
Error: Cannot find module 'webpack'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
describe('ROUTE_SHUFFLED', () => {
const initialState = {
entities:
{
routes: [
{
id: 1, waypoints: [
{
position: 0,
appointments: [],
const config = {
entry: [
'es5-shim/es5-shim',
'es5-shim/es5-sham',
'babel-polyfill',
'./app/bundles/SAW/startup/registration',
],
output: {
filename: 'webpack-bundle.js',
Sep 26 09:18:20 logopolis dhclient[1712]: DHCPDISCOVER on enp3s0 to 255.255.255.255 p
Sep 26 09:18:28 logopolis systemd[1]: Started Session 8 of user jw.
Sep 26 09:18:41 logopolis dhclient[1712]: DHCPDISCOVER on enp3s0 to 255.255.255.255 port 67 interval 7 (xid=0xda0a5a2e)
Sep 26 09:18:48 logopolis dhclient[1712]: No DHCPOFFERS received.
Sep 26 09:18:48 logopolis dhclient[1712]: No working leases in persistent database - sleeping.
Sep 26 09:18:48 logopolis systemd[1]: Stopping Network Name Resolution...
Sep 26 09:18:49 logopolis systemd[1]: Stopped Network Name Resolution.
Sep 26 09:18:49 logopolis systemd[1]: Starting Network Name Resolution...
Sep 26 09:18:49 logopolis systemd-resolved[12761]: Positive Trust Anchors:
Sep 26 09:18:49 logopolis systemd-resolved[12761]: . IN DS 19036 8 2 49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5
Sep 25 16:37:10 logopolis NetworkManager[1058]: <info> [1537911430.3426] manager: sleep: sleep requested (sleeping: no enabled: yes)
Sep 25 16:37:10 logopolis systemd[1]: Reached target Sleep.
Sep 25 16:37:10 logopolis systemd[1]: Starting Suspend...
Sep 25 16:37:10 logopolis systemd-sleep[4270]: Suspending system...
Sep 26 10:58:05 logopolis dhclient[1712]: DHCPDISCOVER on enp3s0 to 255.255.255.255 port 67 interval 20 (xid=0x857a6b0e)
Sep 26 10:58:25 logopolis dhclient[1712]: DHCPDISCOVER on enp3s0 to 255.255.255.255 port 67 interval 17 (xid=0x857a6b0e)
jw@logopolis:~$ systemctl status networking.service
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-09-23 14:42:20 CDT; 6s ago
Docs: man:interfaces(5)
Process: 18832 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
Process: 18827 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ] && udevadm settle (code=exited, st
Main PID: 18832 (code=exited, status=1/FAILURE)
function getMyString(datum)
{
let promise = new Promise(function(resolve, reject)
{
// if readonly mode, reject();
// per https://www.w3.org/TR/html51/editing.html#the-datatransferitem-interface
if datum.kind !== 'string'
reject();
else
[
{
"resourceType" : "Medication",
"code" : {
"text": "Norditropin FlexPro Pen 5mg/1.5ml in a blah blah",
"coding": [
{
"system": "http://formulary.mqrx.com/",
"code": "MQRX2135721",
import BiomarkerCard from './BiomarkerCardComponent';
const BiomarkersCard = ({biomarkers, tense} => {
if( biomarkers.length == 0 )
return null
else
{
return(
<div className="biomarkers">
{this.props.children}
@mustmodify
mustmodify / gist:f73fe4bdf04e25edfe9f4055afd2599c
Last active July 18, 2018 13:50
nginx rails configuration
server {
server_name demo.domain.com;
listen 80;
charset utf-8;
root /home/demo/castle/current/public;
location @rails {
proxy_pass http://localhost:1123;
proxy_set_header Host $host;