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: Dependabot Create Issue | |
on: | |
pull_request: | |
types: [opened, reopened] | |
jobs: | |
issue: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
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: Dependabot Close Issue | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
issue: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
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 docker image | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "" | |
env: |
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
# https://github.com/GoogleChrome/lighthouse-ci | |
name: "Lighthouse Audit" | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
lhci: | |
name: Lighthouse |
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: 'Set Swap Space' | |
description: Used to set swap | |
inputs: | |
swap-size-gb: | |
description: 'Swap space to create, in Gigabytes.' | |
required: false | |
default: '10' | |
runs: | |
using: "composite" | |
steps: |
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: Terraform Checks | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- "**" | |
defaults: | |
run: |
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
# load into your path and run `whatisonport 5432` | |
whatisonport() { | |
echo "lsof results - " | |
echo "$(sudo lsof -i :$1)" | |
echo " " | |
echo "fuser results - " | |
echo "$(sudo fuser $1/tcp)" | |
echo " " | |
echo "netstat results - " | |
echo "$(sudo netstat -ltnp | grep -w :$1)" |
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
function generate_ascii_art() { | |
local chars=("@" "#" "%" "*" "+" "-" "=", "¯\_(ツ)_/¯") | |
local num_chars=${#chars[@]} | |
local rows=$(($RANDOM % 10 + 25)) | |
local cols=$(($RANDOM % 10 + 100)) | |
for ((i=0; i<$rows; i++)); do | |
for ((j=0; j<$cols; j++)); do | |
local char_idx=$(($RANDOM % $num_chars)) | |
printf "%s" "${chars[$char_idx]}" | |
done |
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 | |
# Pick and set one of these environmet variables | |
tag="$LIQUIBASE_ROLLBACK_TAG" | |
count="$LIQUIBASE_ROLLBACK_COUNT" | |
clear="$LIQUIBASE_CLEAR_CHECKSUMS" | |
if [ "${clear}" = "true" ]; then | |
echo "Clearing checksums..." | |
gradle liquibaseClearCheckSums |
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
# `pip install faker` | |
# OR | |
# specify fake in your requirements.txt file | |
# then run `pip install -r requirements.txt` | |
#!/usr/bin/python3 | |
from faker import Faker | |
import csv | |
fake = Faker() |
OlderNewer