Skip to content

Instantly share code, notes, and snippets.

View RickCogley's full-sized avatar
👻
Migrated eSolia to MS365, implementing ISO 27001 ISMS in Sharepoint.

Rick Cogley RickCogley

👻
Migrated eSolia to MS365, implementing ISO 27001 ISMS in Sharepoint.
View GitHub Profile
# FORGE CONFIG (DOT NOT REMOVE!)
include forge-conf/mydomain.com/before/*;
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name mydomain.com;
root /home/forge/mydomain.com/;
# FORGE SSL (DO NOT REMOVE!)
@RickCogley
RickCogley / 1-setup.md
Created April 28, 2020 01:20 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS Sierra/High Sierra

Methods of Signing with GPG

There are now two ways to approach this:

  1. Using gpg and generating keys
  2. Using Kryptonite by krypt.co

This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing with either GPG or Krypt.co.

@RickCogley
RickCogley / test.boxnote.json
Created October 20, 2019 11:06
Box boxnote json
{"head":48,"savepointDataFileId":"542419107704","savepointListObject":{"41":{"revisionId":41,"timestamp":1571393802884,"state":"saved","type":"session","diffAuthorList":{"10344504164":true}},"43":{"revisionId":43,"timestamp":1571534724782,"state":"saved","type":"session","diffAuthorList":{"10344504164":true}}},"lastEditTimestamp":1571568470161,"diffChangeset":"Z:eu>3|a=e3*4*k+1*4|1+1*4*n+1$*\n*","invalidDiffChangeset":false,"authorList":{"10344504164":{"authorName":"Rick Cogley","authorCustomAvatarUrl":"/users/10344504164/avatar"}},"diffAuthorList":{"10344504164":true},"shouldCreateSavepointBeforeApplyingNextRevision":false,"firstKeyRevision":5,"atext":{"text":"日本語 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \n\n*asasdfasdfasdf\n*asdfasdfasdf\n\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
@RickCogley
RickCogley / tutorial moves init.lua
Created February 24, 2019 12:14
Hammerspoon Tests
hs.hotkey.bind(ctrl_opt_cmd, "Left", function()
local win = hs.window.focusedWindow()
local f = win:frame()
local screen = win:screen()
local max = screen:frame()
f.x = max.x
f.y = max.y
f.w = max.w / 2
f.h = max.h
@RickCogley
RickCogley / 1 Readme.md
Created January 18, 2019 08:47
MailMate EagleFiler Bundle 2019

The current MailMate EagleFiler archive script works with the top-most open library, but we'd like it to work with a specific library.

add Bash Shell Script

  • Add line 10, env var to specify path to the .eflibrary file.
  • Add on line 14, an arg 3, using that var.

EagleFilerImport.scpt v2

  • Add a third _argv on line 3.
@RickCogley
RickCogley / keybase.md
Created January 11, 2019 23:33
keybase.md

Keybase proof

I hereby claim:

  • I am rickcogley on github.
  • I am rickcogley (https://keybase.io/rickcogley) on keybase.
  • I have a public key ASCoox8NHz0MHswuTA8ONgBXZKLyhhUhv_kAw-RX20OP2go

To claim this, I am signing this object:

@RickCogley
RickCogley / 1. Readme.md
Last active November 29, 2018 07:05
Transloadit Sample for Tim 20181129

Using Transloadit's "notify_url" to Manipulate Assembly Results JSON

The Transloadit Assembly results JSON has all kinds of information about the processed files, but we need this information to appear in our business database. We need to use some practical scripting to massage the results JSON, and get it loaded into our db how we like.

Use "notify_url" to send to a webhook, which runs a script

Transloadit template can be set to send its json results payload to a notify_url which could be a url you set up at a web service like Hookdoo or others.

"notify_url": "https://x.hookdoo.com/hook/12345abc-ab12-cd34-ef56-1234567890ab?whatever=12345abcde"
@RickCogley
RickCogley / hugo_server_std_out.log
Created May 18, 2018 06:46
hugo server error for hugo docs showcase
~/d/hugoDocs ❯❯❯ hugo server master ◼
Building sites … ERROR 2018/05/18 15:45:00 Failed to get json resource https://api.twitter.com/1/statuses/oembed.json?id=962380712027590657 with error message Get https://api.twitter.com/1/statuses/oembed.json?id=962380712027590657: dial tcp: lookup api.twitter.com on 118.238.201.49:53: write udp 10.81.1.91:62660->118.238.201.49:53: write: host is down
ERROR 2018/05/18 15:45:00 error processing shortcode "_internal/shortcodes/tweet.html" for page "troubleshooting/faq.md": template: _internal/shortcodes/tweet.html:1:4: executing "_internal/shortcodes/tweet.html" at <getJSON "https://api...>: error calling getJSON: Get https://api.twitter.com/1/statuses/oembed.json?id=962380712027590657: dial tcp: lookup api.twitter.com on 118.238.201.49:53: write udp 10.81.1.91:62660->118.238.201.49:53: write: host is down
ERROR 2018/05/18 15:45:00 Failed to get json resou
@RickCogley
RickCogley / geolocator.js
Created March 30, 2018 07:29
Dbflex Geolocator.js
if ('undefined' == typeof window.jQuery) {
alert('jQuery is required!');
}
// GENERAL
var scriptHelper = {
dbID: 123123,
protocol: window.location.protocol
}
@RickCogley
RickCogley / dbscript.js
Created March 25, 2018 11:36
Limiting a script to a single dbflex page
<!-- Global site tag (gtag.js) - Google Analytics -->
FS.addScript("//www.googletagmanager.com/gtag/js?id=UA-116114222-1", function() {
// google analytics
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-116114222-1');
});