Skip to content

Instantly share code, notes, and snippets.

@atheken
atheken / copy-templates.php
Created February 20, 2017 21:08
A quick template copying script using postmark-php.
<?php
// You should have already installed wildbit/postmark-php via Composer.
// This script should be run from the root directory where the 'vendor'
// folder is created by Composer.
require_once('./vendor/autoload.php');
use Postmark\PostmarkClient;
use Postmark\Models\PostmarkException;
try{
@atheken
atheken / set_upstream.sh
Created March 2, 2017 20:44
Set the upstream branch to the same as the current for git.
git config --global alias.up '! git branch -u origin/$(git symbolic-ref --short HEAD)'
@atheken
atheken / Keybase.md
Created October 10, 2017 00:14
Keybase.md

Keybase proof

I hereby claim:

  • I am atheken on github.
  • I am atheken (https://keybase.io/atheken) on keybase.
  • I have a public key ASAbplGO49Zmf-sLUTuHRka7bw0ZPbLZZJeKVZQbPd0RNgo

To claim this, I am signing this object:

@atheken
atheken / pi-instructions.md
Last active February 9, 2018 18:40
Writing Images for Raspberry Pi SD Cards (mac os)
  1. Insert SD card to mac
  2. In disk utility, or from command line, unmount the SD card disk
  3. Format the disk as FAT
  4. Install ddrescue, a better version of dd: brew install ddrescue
  5. Locate the raw disk that is used for the SD card, on my laptop, it's /dev/rdisk2
  6. Write your boot image to the SD card: sudo ddrescue -v --force boot-image-of-choice.img /dev/rdisk2
@atheken
atheken / cloud-custodian.schema.json
Last active April 8, 2025 20:26
custodian schema
This file has been truncated, but you can view the full file.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"id": "http://schema.cloudcustodian.io/v0/custodian.json",
"definitions": {
"resources": {
"aws.access-analyzer-finding": {
"actions": {},
"filters": {},
"policy": {

Keybase proof

I hereby claim:

  • I am atheken on github.
  • I am atheken (https://keybase.io/atheken) on keybase.
  • I have a public key ASDtD9yuN69YgLE2k1cWshSi4-IH4wpoWekitFEIUwS5qwo

To claim this, I am signing this object: