Skip to content

Instantly share code, notes, and snippets.

@kflorence
kflorence / invoke-lambda.sh
Last active February 16, 2022 18:27
Invokes an AWS Lambda function and displays the logs for the invocation
#!/usr/bin/env bash
set -e -o pipefail
FILENAME=$0
FILENAME=$(basename "$FILENAME")
function usage {
echo "Invokes an AWS Lambda function and displays the logs for the invocation."
echo "usage: $FILENAME --function-name [--help] [--payload] [--wait] [<STDIN>]"
echo " --function-name the Lambda function name or ARN."
@kflorence
kflorence / ircd.php
Last active September 1, 2022 21:44
An IRC daemon written in PHP
<?
#require("server-functions.php");
#Phircd v 0.1.0 - written by siron.
set_time_limit(0);
error_reporting(0);
/* reads the config file and defines commands
$cline = file("ircd.conf") or die("cannot find ircd.conf!");
$cnum_lines = count($cline);
$conf = 0;