View sysdiff.sh
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 -euo pipefail | |
IFS=$'\n\t' | |
export SHELL=`which bash` | |
function usage() { | |
cat <<EOF | |
Usage: ${0} <host> |
View example.hs
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
couldFail :: (MonadHttp m, OneOf err '[A, B]) => ExceptT err m [Key SomeEntity] | |
handleStuff :: Handler () | |
handleStuff = do | |
result <- runExceptT $ do | |
action <- catchOneT (catchOneT couldFail | |
\(A _) -> $(logWarn) "Handling an A failure" >> pure mempty) | |
\(B _) -> $(logWarn) "Handling a B failure" >> pure mempty | |
return action | |
case result of |
View Dockerfile
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
# This Dockerfile was generated from the template at templates/Dockerfile.j2 | |
FROM node:8.11.4 | |
EXPOSE 5601 | |
# Add Reporting dependencies. | |
RUN apt update && apt install -y fontconfig && rm -rf /var/lib/apt/lists/* | |
WORKDIR /usr/share/kibana | |
# Set gid to 0 for kibana and make group permission similar to that of user |
View .gitignore
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
.vagrant |
View example-app.yaml
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: logstash-secrets | |
data: | |
logstash.secrets: | | |
ELASTICSEARCH_USERNAME=elasticsearch/production#username | |
ELASTICSEARCH_PASSWORD=elasticsearch/production#password | |
--- | |
apiVersion: v1 |
View .config
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/arm64 4.4.52 Kernel Configuration | |
# | |
CONFIG_ARM64=y | |
CONFIG_64BIT=y | |
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y | |
CONFIG_MMU=y | |
CONFIG_STACKTRACE_SUPPORT=y | |
CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000 |
View .config
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/arm64 4.12.0-1 Kernel Configuration | |
# | |
CONFIG_ARM64=y | |
CONFIG_64BIT=y | |
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y | |
CONFIG_MMU=y | |
CONFIG_ARM64_PAGE_SHIFT=12 | |
CONFIG_ARM64_CONT_SHIFT=4 |
View Vagrantfile
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Required: | |
# vagrant: 1.9.3 | |
# vagrant plugin install vagrant-hosts | |
# vagrant plugin install vagrant-auto_network | |
require 'tempfile' |
View stdout
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
error: The option `systemd.services.docker.restartIfChanged' has conflicting definitions, in `/etc/nixos/configuration.nix' and `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/virtualisation/docker.nix'. | |
(use ‘--show-trace’ to show detailed location information) |
View configuration.nix
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
... | |
nixpkgs.config = { | |
packageOverrides = pkgs: rec { | |
matrix-synapse = pkgs.stdenv.lib.overrideDerivation pkgs.matrix-synapse (oldAttrs : { | |
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ pkgs.pythonPackages.psycopg2; | |
}); | |
}; | |
}; | |
NewerOlder