Skip to content

Instantly share code, notes, and snippets.

Avatar
🐺
I may be slow to respond.

Bishop Bettini bishopb

🐺
I may be slow to respond.
View GitHub Profile
@bishopb
bishopb / README.md
Created Jan 7, 2021
Show all AWS actions, resources, and conditions known to AWS Policy Generator
View README.md

Looking for a structured list of AWS actions, resources, and conditions? Tired of hunting through the AWS Documentation?

Then just use this simple script.

For example:

aws-arc.sh '.serviceMap["AWS Accounts"]'
View logi.app.js
/**
*
* App.js
*
* creates the Logi global variable
* starts loading the application's initial client side files
* kicks off the Angular bootstrap
*
* Table of Contents
* 1. Create the Logi global variable
@bishopb
bishopb / contents-kind-distribution
Created Apr 26, 2019
Number Format Separator Drill
View contents-kind-distribution
contents_kind count notes
test 86692 *Test.php, */{examples,tests}/*
code 256551
data 2359458 *json.php, */{data,fonts,charset}/*
View CurlCookieJar.php
<?php
/**
* Simple class to parse the contents of a cookie jar file created by the cURL extension.
*
* <code>
* $jar = new CurlCookieJar('/tmp/curl-cookies');
* foreach ($jar->getAllCookies() as $cookie) {
* if ($cookie->expires < time()) {
* echo "Cookie named {$cookie->name} has expired\n";
@bishopb
bishopb / FluentRouter.php
Created Sep 21, 2016
Fluent Router in PHP
View FluentRouter.php
<?php
class FluentRouter
{
const DEADEND_EXCEPTION = 1;
const DEADEND_RETRY = 2;
const DEADEND_BLACKHOLE = 3;
public function __construct(array $callbacks = [], $deadend = null)
{