Skip to content

Instantly share code, notes, and snippets.

View michaeljdennis's full-sized avatar
:octocat:
Building

Michael Dennis michaeljdennis

:octocat:
Building
View GitHub Profile
@michaeljdennis
michaeljdennis / different-ssh-deploy-keys-multiple-private-repos-github-go-mod.md How to use different ssh deploy keys for multiple private github repositories with Golang Modules (go mod)

How to use different ssh deploy keys for multiple private github repositories with Go Modules

Let's assume you are using Go Modules and have a go.mod file that contains multiple private repos each with a different ssh key. How can you get go mod download to do the right thing -- i.e. use ssh key A with private repo A and ssh key B with private repo B?

Ok, here we go!

Let's assume you have some github.com user with multiple private repos:

https://github.com/someuser/private-repo-1

@michaeljdennis
michaeljdennis / main.go
Created September 21, 2020 20:04
Timer
package main
import (
"io/ioutil"
"log"
"time"
)
func main() {
for {
@michaeljdennis
michaeljdennis / migration.php
Last active December 28, 2018 23:10
Klaviyo Track API
<?php
$data = [
'token' => 'KXZ6gp',
'event' => 'Elected President',
'customer_properties' => [
'$email' => 'thomas.jefferson@example.com'
],
'properties' => [
'PreviouslyVicePresident' => true,
@michaeljdennis
michaeljdennis / User Settings
Last active December 20, 2018 03:30
VS Code Settings
{
"workbench.startupEditor": "newUntitledFile",
"editor.minimap.enabled": false,
"files.autoSave": "onFocusChange",
"workbench.editor.highlightModifiedTabs": true,
"workbench.colorTheme": "One Dark Pro",
"explorer.openEditors.visible": 0,
"files.trimTrailingWhitespace": true,
"editor.renderWhitespace": "all",
"files.insertFinalNewline": true,
@michaeljdennis
michaeljdennis / main.cpp
Last active May 17, 2018 03:08
Sort Example
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
static int myCompare (const void * a, const void * b)
{
return strcmp (*(const char **) a, *(const char **) b);
}
void sort(const char *arr[], int n)
@michaeljdennis
michaeljdennis / .eslintrc.js
Created April 22, 2017 02:31
.eslintrc.js
{
"extends": ["eslint:recommended", "google"],
"env": {
"browser": true,
"node": true,
"es6": true,
"jquery": true
},
"rules": {
"valid-jsdoc": ["error", {
atom-beautify
file-icons
keyboard-scroll
linter
linter-eslint
linter-php
merge-conflicts
symbols-tree-view
todo-show
@michaeljdennis
michaeljdennis / gityolo.txt
Last active August 8, 2016 19:18
Git YOLO
alias gityolo='git add -A . && git commit -am "`curl -s whatthecommit.com/index.txt`"'
@michaeljdennis
michaeljdennis / keybase.md
Last active August 29, 2015 14:04
keybase.md

Keybase proof

I hereby claim:

  • I am michaeljdennis on github.
  • I am michaeljdennis (https://keybase.io/michaeljdennis) on keybase.
  • I have a public key whose fingerprint is 0FC1 9A99 B098 BF41 B6A8 772A 004D D8E4 74CD 9853

To claim this, I am signing this object:

@michaeljdennis
michaeljdennis / html5.sublime-snippet
Last active November 11, 2021 22:46
Sublime Text HTML5 Snippet
<snippet>
<content><![CDATA[
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>${1:Title}</title>
<meta name="description" content="">
<link rel="stylesheet" href="css/styles.css">