Skip to content

Instantly share code, notes, and snippets.

View phroggyy's full-sized avatar
🔥
Building the world's best incident management platform

Leo Sjöberg phroggyy

🔥
Building the world's best incident management platform
View GitHub Profile
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "kubernetes.fullname" . }}
labels:
app.kubernetes.io/name: {{ include "kubernetes.fullname" . }}
helm.sh/chart: {{ include "kubernetes.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
/*
Copyright 2014 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
<?php
namespace App\Jobs;
use Decahedron\StickyLogging\StickyContext;
use Exception;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Http\Kernel;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
@phroggyy
phroggyy / start.sh
Last active February 7, 2019 11:24
#!/bin/bash
docker ps --format "{{.Names}} {{ .Ports }}" | sed -e 's/_/-/g' | perl -n -e'/^([\w-]+).+:(\d+)->(\d+)/ && print "{\"name\":\"$1\",\"host\":\"$2\",\"container\":\"$3\"}\n"' | jq -r -s 'map(select(.container == "80")) | map(.name + ".test:443 {\n tls self_signed\n proxy / 127.0.0.1:" + .host + "\n}\n") | .[]' > Caddyfile
caddy
FROM php:7.1.8-fpm as base
WORKDIR /app
RUN apt-get update && apt-get install -y libmcrypt-dev mysql-client zlib1g-dev \
&& docker-php-ext-install mcrypt pdo_mysql zip pcntl
ENV COMPOSER_HOME ./.composer
COPY --from=composer:1.7.2 /usr/bin/composer /usr/bin/composer
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: {{ .Chart.Name }}
labels:
app: {{ include "notifications.name" . }}
chart: {{ include "notifications.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
@Directive({
selector: '[hsThemed]',
})
export class ThemedDirective implements OnInit {
@Input() lightClass = '';
@Input() darkClass = '';
constructor(private el: ElementRef, private themingService: ThemingService) {
}
.panel-splitter {
width: 8px;
border-width: 0 1px;
cursor: col-resize;
&.theme--dark {
@apply .border-gray-lighter .bg-gray;
}
}
.panel-splitter {
@apply .border-gray-lighter .bg-gray;
width: 8px;
border-width: 0 1px;
cursor: col-resize;
}
<div hsThemed
class="mt-4 p-2"
lightClass="bg-off-white"
darkClass="bg-gray-darker"></div>
</div>