This file contains 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 nginx:alpine | |
# https://thepracticalsysadmin.com/templated-nginx-configuration-with-bash-and-docker/ | |
ENV LISTEN_PORT=80 \ | |
NGINX_ENV=production \ | |
SERVER_NAME=_ \ | |
RESOLVER=8.8.8.8 \ | |
UPSTREAM_API=api:3000 \ | |
UPSTREAM_API_PROTO=http \ | |
WORKDIR=/www \ |
This file contains 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
// @flow | |
import React, {Component, Element, PropTypes} from 'react' | |
import classNames from 'classnames' | |
import pure from 'recompose/pure' | |
import merge from 'lodash/merge' | |
import {createStyleSheet} from 'jss-theme-reactor' | |
import Logger from '../../util/Logger' | |
import {capitalizeFirstLetter} from '../../util/strings' | |
type DefaultProps = { |
This file contains 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
# include in the server section of the conf. | |
# --------------------------------------------------------------- | |
# If we perform a rewrite on every immediately, images won't be | |
# displayed, so we have to avoid the rewrite for specific files | |
# in support of displaying the outdated page. | |
# | |
set $browser_unsupported_rewrite do_not_perform; | |
if ($outdated){ |
This file contains 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
/* variation on https://medium.com/@DanHomola/react-higher-order-components-in-typescript-made-simple-6f9b55691af1 */ | |
import * as React from 'react' | |
import { wrapDisplayName } from 'recompose' | |
// Props you want the resulting component to take (besides the props of the wrapped component) | |
interface ExternalProps {} | |
// Props the HOC adds to the wrapped component | |
export interface InjectedProps {} |
This file contains 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
{"lastUpload":"2019-11-21T21:14:36.267Z","extensionVersion":"v3.4.3"} |
This file contains 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
import * as pulumi from "@pulumi/pulumi"; | |
import * as k8s from "@pulumi/kubernetes"; | |
import * as k8sOutput from "@pulumi/kubernetes/types/output"; | |
import * as k8sapi from 'kubernetes-client'; | |
const job = new k8s.batch.v1.Job("job", { | |
spec: { | |
template: { | |
spec: { | |
containers: [{ |
This file contains 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
# verified against log_in.feature for blake | |
# https://github.com/jnicklas/capybara/issues/1443 | |
# turn on webkit driver debug | |
$use_webkit = true | |
$use_chrome_instead_of_firefox = false | |
$webkit_debug = false | |
$wait_time = 5 | |
def webkit_driver | |
if $webkit_debug |
This file contains 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
// tslint:disable:object-literal-sort-keys | |
import { create, StyleSheet } from 'jss' | |
import { jssPreset } from '@material-ui/core' | |
const jss = create(jssPreset()) | |
const log = Logger.get('Intercom') | |
let invisibleSheet: undefined | StyleSheet<string> |
This file contains 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
import { ExtendMui } from '@alienfast/ui/styles' | |
import { default as MuiDialog, DialogProps as MuiDialogProps } from '@material-ui/core/Dialog' | |
import { createStyles, Theme, withStyles, WithStyles } from '@material-ui/core/styles' | |
import { keys } from '@material-ui/core/styles/createBreakpoints' | |
import { Breakpoint } from '@material-ui/core/styles/createBreakpoints' | |
import withMobileDialog from '@material-ui/core/withMobileDialog' | |
import { isWidthUp } from '@material-ui/core/withWidth' | |
import * as React from 'react' | |
const MobileResponsiveDialog = withMobileDialog<MuiDialogProps>({ breakpoint: 'xs' })(MuiDialog) |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
MANIFESTS=${BASH_SOURCE%/*}/./environments/$1/manifests | |
rm -rf ${MANIFESTS} && mkdir ${MANIFESTS} | |
FILE=${MANIFESTS}/cert-manager.yml | |
./show "$@" --module cert-manager > ${FILE} | |
FILE=${MANIFESTS}/certificates.yml |
NewerOlder