Skip to content

Instantly share code, notes, and snippets.

@eashman
eashman / macos-preferences.md
Created September 22, 2025 15:15 — forked from ahmedomer/macos-preferences.md
This document details how I customize my macOS system with specific configuration preferences, updated for Sonoma 14.4.

macOS Preferences for Sequoia

This document outlines how I configure macOS manually on a clean install of macOS Sequoia (15.4) on an Apple Silicon Mac. The focus is on privacy, usability, and performance, with added guidance for security-conscious users and developers. Scripts are intentionally avoided to ensure users understand and control each change.

Feel free to fork, tweak, or contribute.

@eashman
eashman / easily-switch-accounts-in-aws.md
Created August 4, 2023 15:27 — forked from noahcoad/easily-switch-accounts-in-aws.md
Easily Switch Accounts in AWS with Role Switcher

Easily Switch Accounts in AWS

When working with multiple AWS accounts, it can be a pain to keep signing out and signing back in. I work with a number of accounts, my own, customer accts, burner accts, etc. It was a pain to keep logging in and out of the AWS Console. Thankfully the AWS Console has a "Role Switcher" that lets you quickly switch between accounts built-in. It does this by assuming a role from another account. Here's how to set that up...

@eashman
eashman / README.md
Created January 25, 2023 22:48 — forked from hopsoft/README.md
Smart Heroku Review Apps managed by GitHub Actions

Smart Heroku Review Apps managed by GitHub Actions

This gist aims to provide a simple solution for managing Heroku Review Apps with GitHub Actions due to the security incident that continues to disrupt Heroku's GitHub integration. Watch the demo to learn more.

Demo Video

.github
├── workflows
│   ├── heroku_review_app_create.yml
@eashman
eashman / .gitlab-ci.yml
Created September 14, 2021 15:57 — forked from nwellis-opi/.gitlab-ci.yml
AWS Fargate GitLab Pipeline
stages:
- build
- deploy
variables:
BASE_REPOSITORY_URL: 936832894876.dkr.ecr.us-east-2.amazonaws.com/slackbot/feedback-bot
.aws_setup:
image: docker:latest
@eashman
eashman / gitflowrebasing.md
Created September 10, 2021 16:30 — forked from markreid/gitflowrebasing.md
git flow with rebasing
@eashman
eashman / google-form-to-github-issue.md
Created August 22, 2019 20:25 — forked from bmcbride/google-form-to-github-issue.md
Create a new GitHub Issue from a Google Form submission

Wiring up a Google Form to GitHub is not that difficult with a little bit of Apps Script automation. All you need is a Google account, a GitHub account, and a web browser...

Set up your GitHub Personal Access Token

Personal access tokens provide an easy way to interact with the GitHub API without having to mess with OAuth. If you don't already have a personal access token with repo or public_repo access, visit your GitHub settings page and generate a new token.

Be sure to copy your token some place safe and keep it secure. Once generated, you will not be able to view or copy the token again.

Set up the Form & Spreadsheet

  1. Create a Google Form.
@eashman
eashman / README.md
Created August 1, 2019 14:47 — forked from arikfr/README.md
Setting up HTTPS with LetsEncrypt for Redash Docker Deployment
  1. Make sure the domain you picked points at the IP of your Redash server.
  2. Switch to the root user (sudo su).
  3. Create a folder named nginx in /opt/redash.
  4. Create in the nginx folder two additional folders: certs and certs-data.
  5. Create the file /opt/redash/nginx/nginx.conf and place the following in it: (replace example.redashapp.com with your domain name)
    upstream redash {
        server redash:5000;
    }
    
@eashman
eashman / git.md
Created January 25, 2019 16:43 — forked from arempe93/git.md
A guide of my git practices
@eashman
eashman / buildspec.yml
Created September 8, 2018 20:01 — forked from quinnypig/buildspec.yml
The buildspec.yml that deploys Last Week in AWS.
version: 0.2
phases:
install:
commands:
- echo Entered the install phase...
- pip install -r requirements.txt
build:
commands:
- echo Entered the build phase...
@eashman
eashman / intercom-delete-old-users.js
Created June 8, 2018 17:28 — forked from zthomas/intercom-delete-old-users.js
Script to delete and clear old users from intercom. Useful for lowering the monthly bill
// License: MIT, feel free to use it!
const Intercom = require('intercom-client');
const appId = 'APP_ID'
const apiKey = 'APP_KEY'
const client = new Intercom.Client(appId, apiKey);
const async = require('async-q')
//REF: https://developers.intercom.com/reference#iterating-over-all-users
//WARNING: you can only have one scroll working at once. you need to wait for that scroll to clear to try again