diff
is used to find differences between two files. For easier usage, combine it with -u
:
diff -u file1 file2
#!/usr/bin/perl -w | |
use strict; | |
use Socket; | |
use Getopt::Long; | |
use IO::Handle; | |
# Configuration | |
my $default_port = 7890; | |
my $default_host = 'localhost'; | |
my $backlog = 5; |
ARG GO_VERSION=1.20 | |
ARG BASE_IMAGE=golang:${GO_VERSION}-bullseye | |
ARG APP_NAME=app | |
ARG APP_PORT=3000 | |
FROM ${BASE_IMAGE} AS build | |
WORKDIR /app | |
COPY go.mod go.sum ./ |
#!/bin/bash | |
# Author: Mahrous Amer | |
# Date: September 23, 2024 | |
set -euo pipefail | |
# Constants | |
BASE_URL='https://www.alphavantage.co' | |
CONFIG_FILE='config.conf' |
#!/bin/bash | |
PROFILE="" | |
INSTANCE_ID="" | |
echo "Instance ID: $INSTANCE_ID" | |
echo "Fetching instance details..." | |
instance_details=$(aws --profile $PROFILE ec2 describe-instances --instance-ids "$INSTANCE_ID" --query 'Reservations[0].Instances[0]' --output json) | |
echo "Instance details fetched successfully." |
#!/bin/bash | |
# Define variables | |
REGION="eu-west-1" | |
PROFILE="default" | |
OUTPUT_FORMAT="json" | |
# Helper function to fetch and print results | |
function fetch_and_print { | |
local description=$1 |
#!/bin/bash | |
# Define variables | |
REGION="eu-west-1" | |
PROFILE="default" | |
OUTPUT_FORMAT="json" | |
PERIOD_IN_SECONDS=3600 | |
STATISTIC="Maximum" | |
END_TIME=$(date -u "+%Y-%m-%dT%H:%M:%SZ") | |
START_TIME=$(date -u -v-7d "+%Y-%m-%dT%H:%M:%SZ") |
#!/bin/bash | |
# Environment Variables | |
CONTAINER_NAME="dev-postgres" | |
POSTGRES_IMAGE="postgres" | |
POSTGRES_PASSWORD="dev_password" | |
DATA_DIR="${HOME}/dev_postgres/" | |
# Display Help | |
Help() |