This file contains hidden or 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/python3 | |
| import argparse | |
| import logging | |
| import subprocess | |
| import os | |
| import tempfile | |
| from tempfile import mkstemp | |
| import configparser | |
| import gzip |
This file contains hidden or 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
| -- Collision-resistant ids optimized for horizontal scaling and performance, for PL/PgSQL. | |
| -- Based on https://github.com/ericelliott/cuid | |
| -- Version 1.0.0 | |
| -- Usage: SELECT cuid(); | |
| -- BEGIN CONFIG --- | |
| -- Put a unique host ID (int) here per server instance. | |
| -- Once set, this value should not be changed. |
This file contains hidden or 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
| English short name lower case | Alpha-2 code | Alpha-3 code | Numeric code | ISO 3166-2 | |
|---|---|---|---|---|---|
| Afghanistan | AF | AFG | 004 | ISO 3166-2:AF | |
| Åland Islands | AX | ALA | 248 | ISO 3166-2:AX | |
| Albania | AL | ALB | 008 | ISO 3166-2:AL | |
| Algeria | DZ | DZA | 012 | ISO 3166-2:DZ | |
| American Samoa | AS | ASM | 016 | ISO 3166-2:AS | |
| Andorra | AD | AND | 020 | ISO 3166-2:AD | |
| Angola | AO | AGO | 024 | ISO 3166-2:AO | |
| Anguilla | AI | AIA | 660 | ISO 3166-2:AI | |
| Antarctica | AQ | ATA | 010 | ISO 3166-2:AQ |
This file contains hidden or 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 microsoft/mssql-server-linux:2017-CU9 | |
| ENV ACCEPT_EULA=Y | |
| ENV SA_PASSWORD=yourStrong(!)Password | |
| RUN apt-get update && apt-get install unzip -y | |
| # SqlPackage taken from https://github.com/Microsoft/mssql-docker/issues/135#issuecomment-389245587 | |
| RUN wget -O sqlpackage.zip https://go.microsoft.com/fwlink/?linkid=873926 \ | |
| && unzip sqlpackage.zip -d /tmp/sqlpackage \ |
This file contains hidden or 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
| #! /bin/bash | |
| cd $(mktemp -d) | |
| wget https://aur.archlinux.org/cgit/aur.git/snapshot/insomnia.tar.gz | |
| tar xzf insomnia.tar.gz | |
| cd insomnia | |
| makepkg -s | |
| sudo pacman -U insomnia-*-x86_64.pkg.tar |
This file contains hidden or 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
| global | |
| log /dev/log local0 | |
| log /dev/log local1 notice | |
| chroot /var/lib/haproxy | |
| stats socket /run/haproxy/admin.sock mode 660 level admin | |
| stats timeout 30s | |
| user haproxy | |
| group haproxy | |
| daemon | |
| maxconn 1024 |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Globalization; | |
| using System.IdentityModel.Tokens.Jwt; | |
| using System.Linq; | |
| using System.Security.Claims; | |
| using System.Threading.Tasks; | |
| using AspNet.Security.OpenIdConnect.Client; | |
| using AspNet.Security.OpenIdConnect.Primitives; | |
| using Microsoft.AspNetCore.Authentication; |
This file contains hidden or 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
| /* | |
| The purpose of this pattern is to consolidate all application | |
| configuration into just ONE file and configure the app based | |
| on the server/dev environment where it finds itself. It removes | |
| the need for environment variables and/or JSON config files on | |
| individual machines. | |
| */ | |
| using System; | |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.AspNetCore.Mvc; |