Skip to content

Instantly share code, notes, and snippets.

@fisherevans
fisherevans / _gotestbranch.md
Last active July 22, 2024 23:12
Test local golang changes

gotestbranch

This script tries to make it easy to test changes in a go project by:

  1. Identifying what packages have been changed within your current git branch
  2. Finding all the packages that depend on those packages
  3. Merging those two lists of packages together
  4. Runs go test on those packages

This makes it easy to ensure your changes have not broken any compile-time dependencies, and that all existing tests are passing.

@fisherevans
fisherevans / cal_sync.js
Last active March 14, 2024 18:33
Google App Script - Personal Calendar Sync
function sync() {
var secondaryCalIds = [];
secondaryCalIds.push("[email protected]");
secondaryCalIds.push("[email protected]");
var primaryEventTitle = "Personal Appointment";
var eventBufferMinutes = 20;
var eventBufferMs = eventBufferMinutes * 60 * 1000;
var visiblity = CalendarApp.Visibility.PUBLIC;
var color = CalendarApp.EventColor.YELLOW;
@fisherevans
fisherevans / api_calls.md
Created May 8, 2020 14:25
Okta SMS factors work after deletion

SMS Factor Works after Delete

Example API calls to reproduce this bug.

1. Create User

1.a. Create User

curl --request POST \
@fisherevans
fisherevans / calls.md
Last active April 22, 2020 12:20
Okta SMS Factor - Remembered Verification

1. Create User

curl --request POST \
  --url https://dev-####.okta.com/api/v1/users \
  --header 'authorization: SSWS <TOKEN>' \
  --header 'content-type: application/json' \
  --data '{
  "profile": {
 "firstName": "Jane",