Skip to content

Instantly share code, notes, and snippets.

View bateller's full-sized avatar
🎯
Focusing

Brian A. Teller bateller

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bateller on github.
  • I am bateller (https://keybase.io/bateller) on keybase.
  • I have a public key ASD_CZiSpt7scDRrzMAofzVKz3yvOcOh9zEDUlg4e26Efgo

To claim this, I am signing this object:

@bateller
bateller / create_ami.sh
Created October 23, 2019 14:15
Create AMIs + Launch Configurations for non aws-cli experts for use in AutoScaling Groups
#!/bin/sh
#
# Copyright: 2017-2019 - B. Teller
# Created by: Brian Teller
# Description: Help non-shell or AWS experts create easy + quick AMIs for use within AutoScaling Groups
#
upSeconds="$(tail /proc/uptime | grep -o '^[0-9]\+')"
upMins=$((upSeconds / 60))
@bateller
bateller / Doxyfile
Created November 21, 2019 15:15 — forked from ugovaretto/Doxyfile
Doxygen sample configuration file to extract everything
# Doxyfile 1.8.7
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
#
# All text after a double hash (##) is considered a comment and is placed in
# front of the TAG it is preceding.
#
# All text after a single hash (#) is considered a comment and will be ignored.
# The format is:
@bateller
bateller / gist:154c6e5d1f6e0e53e527
Last active July 1, 2020 23:11 — forked from boucher/gist:1750375
Stripe Example (Works with v2 of Stripe-PHP)
<?php
// Edited boucher/gist:1750375 to work with stripe-php v2
require 'stripe-php/init.php';
if ($_POST) {
\Stripe\Stripe::setApiKey("YOUR-API-KEY");
$error = '';
$success = '';
try {
if (!isset($_POST['stripeToken']))
throw new Exception("The Stripe Token was not generated correctly");
@bateller
bateller / FizzBuzz.php
Last active February 28, 2024 11:00
FizzBuzz solution in PHP
<?php
if (php_sapi_name() === 'cli') $lb = "\n";
else $lb = "<br />";
for ($i = 1; $i <= 100; $i++)
{
if ($i % 15 === 0) {
echo "FizzBuzz $lb";
}