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
#!/bin/bash | |
R="\x1b[31m" | |
G="\x1b[32m" | |
Y="\x1b[33m" | |
B="\x1b[34m" | |
W="\x1b[37m" | |
CLR="\x1b[0m" | |
if [ "$#" -eq 1 ]; then | |
echo -e $B"Creating virtual host and structure for: $1."$CLR |
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
name: 'Build & Release' | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest |
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
<?php | |
use MongoDB\BSON\ObjectId; | |
use MongoDB\Collection; | |
use MongoDB\Database; | |
use MongoDB\Model\BSONDocument; | |
class SemiUnstructuredData | |
{ | |
public function testMongodb() |
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 | |
# --column-statistics=0: https://serverfault.com/a/912677/530593 | |
DUMP_COMMAND="mysqldump \ | |
--column-statistics=0 \ | |
--host=db.ac93.uk \ | |
--user=user \ | |
--password=password" | |
function dump_crm_structure | |
{ |
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
terraform { | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = "~> 2.70" | |
} | |
cloudflare = { | |
source = "cloudflare/cloudflare" | |
version = "~> 2.0" | |
} |
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
resource "minio_s3_bucket" "ac_website" { | |
bucket = "ac-website" | |
acl = "public" | |
} |
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
resource "graylog_input" "syslog_udp" { | |
title = "syslog" | |
type = "org.graylog2.inputs.syslog.udp.SyslogUDPInput" | |
global = true | |
attributes = jsonencode({ | |
bind_address = "0.0.0.0" | |
port = 514 | |
recv_buffer_size = 262144 | |
decompress_size_limit = 8388608 |
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
# docker run --rm -v $(pwd):/data cytopia/yamlfmt -w docker-compose.yml | |
version: '3.4' | |
services: | |
mailhog: | |
image: mailhog/mailhog:latest | |
ports: | |
- 1025:1025 | |
- 8025:8025 | |
minio: |
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
<?php | |
namespace App\Providers; | |
use Event; | |
use Illuminate\Console\Events\CommandStarting; | |
use Illuminate\Database\Events\MigrationsEnded; | |
use Illuminate\Support\ServiceProvider; | |
class CommandListenerProvider extends ServiceProvider |
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
# build | |
# docker build --force-rm --tag=alistaircol/tcv . | |
# run | |
# docker run --rm -it -p 9999:80 alistaircol/tcv:latest | |
FROM node:16-alpine AS build | |
WORKDIR /usr/src/app | |
RUN npm install tailwindcss tailwind-config-viewer; \ | |
npx tailwindcss init --jit --full; \ | |
npx tailwind-config-viewer export tcv-out |
OlderNewer