Hidden Content
My hidden text
```bash
echo "code block"
### Keybase proof | |
I hereby claim: | |
* I am alismx on github. | |
* I am alismxwll (https://keybase.io/alismxwll) on keybase. | |
* I have a public key ASBsdpZnOphGCBP595QPS3T1B-jLjyhaSPVTkxeS6dPZFAo | |
To claim this, I am signing this object: |
#!/bin/bash | |
LOCK_FILE="/var/lock/s3cmd.lock" | |
# Check if another instance is already running | |
if [[ -e $LOCK_FILE ]]; then | |
echo "Another instance of the script is already running. Exiting..." | |
exit 1 | |
else | |
touch $LOCK_FILE |
# Add these variables to your environment or define them in the script | |
# export BUCKET_URL=s3://your-bucket-name/path-to-files/ | |
# export LOCAL_DIR=/path/to/local/dir/ | |
#!/bin/bash | |
function file_sync() { | |
local operation=$1 | |
local source=$2 | |
local destination=$3 |
# `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() |
#!/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 |
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 |
# 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)" |
name: Terraform Checks | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- "**" | |
defaults: | |
run: |
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: |