NOTE: I want disclaimer that this work is not complete mine. Most of the work here is comming from: https://dhwaneetbhatt.com/blog/run-docker-without-docker-desktop-on-macos
$ brew doctor
$ brew update
NOTE: I want disclaimer that this work is not complete mine. Most of the work here is comming from: https://dhwaneetbhatt.com/blog/run-docker-without-docker-desktop-on-macos
$ brew doctor
$ brew update
import * as React from 'react'; | |
import PropTypes from 'prop-types'; | |
class RatingComponent extends React.Component { | |
static propTypes = { | |
maxValue: PropTypes.number, | |
value: PropTypes.number, | |
onRatingUpdatedEvt: PropTypes.func | |
} |
locals { | |
our_rendered_content = templatefile("${path.module}/yourtemplatefile.tmpl", { yourvars = var.yourvars }) | |
} | |
resource "null_resource" "local" { | |
triggers = { | |
template = local.our_rendered_content | |
} | |
# Render to local file on machine |
#!/usr/bin/env bash | |
# | |
# Usage: dev_signed_cert.sh HOSTNAME | |
# | |
# Creates a CA cert and then generates an SSL certificate signed by that CA for the | |
# given hostname. | |
# | |
# After running this, add the generated dev_cert_ca.cert.pem to the trusted root | |
# authorities in your browser / client system. | |
# |
// @flow | |
import React from 'react'; | |
import type { Element as ReactElement } from 'react'; | |
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; | |
import getMuiTheme from 'material-ui/styles/getMuiTheme'; | |
import RsgWrapper from 'react-styleguidist/lib/rsg-components/Wrapper'; | |
import injectTapEventPlugin from 'react-tap-event-plugin'; | |
import $ from 'jquery'; |
You need to create a new user and give it sudo privleges: | |
$adduser username | |
Set password prompts: | |
Enter new UNIX password: | |
Retype new UNIX password: | |
passwd: password updated successfully | |
Changing the user information for username | |
Enter the new value, or press ENTER for the default | |
Full Name []: |
Running on master in /var/lib/jenkins/workspace/MY_JOB_NAME | |
[Pipeline] { | |
[Pipeline] pwd | |
[Pipeline] load | |
[Pipeline] // load | |
[Pipeline] } | |
[Pipeline] // node | |
[Pipeline] End of Pipeline | |
java.nio.file.NoSuchFileException: /var/lib/jenkins/workspace/MY_JOB_NAME/common.groovy |
// 'Hello World' nodejs6.10 runtime AWS Lambda function | |
exports.handler = (event, context, callback) => { | |
console.log('Hello, logs!'); | |
callback(null, 'great success'); | |
} |
#!/usr/bin/env bash | |
# | |
# getopts_long -- POSIX shell getopts with GNU-style long option support | |
# | |
# Copyright 2005-2009 Stephane Chazelas <stephane_chazelas@yahoo.fr> | |
# | |
# Permission to use, copy, modify, distribute, and sell this software and | |
# its documentation for any purpose is hereby granted without fee, provided | |
# that the above copyright notice appear in all copies and that both that |
import React, { Component } from 'react' | |
class MyTopLevelComponent extends Component { | |
componentDidMount () { | |
this.scrollToHashId() | |
} | |
componentDidUpdate () { | |
this.scrollToHashId() | |
} |