Skip to content

Instantly share code, notes, and snippets.

Avatar
👻
Migrating away from Webfaction

Rick Cogley RickCogley

👻
Migrating away from Webfaction
View GitHub Profile
@RickCogley
RickCogley / 00 readme.md
Last active Feb 6, 2021
Kirby 3 series Install Log of Composer Errors
View 00 readme.md
  • MacOS Big Sur 11.2
  • Composer version 2.0.9 2021-01-27 16:09:27, installed via brew
@RickCogley
RickCogley / action.yml
Last active Jan 27, 2021
Apex Up GH action.yml
View action.yml
name: 'Apex Up'
description: 'Deploy & manage Up applications'
inputs:
stage:
description: 'Up stage to deploy'
required: true
verbose:
description: 'Produce verbose output'
required: false
runs:
View gist:d70f21db6ecfe39094874b77cea246ba
# 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 Apr 28, 2020 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS Sierra/High Sierra
View 1-setup.md

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.

View test.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
View tutorial moves init.lua
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 Jan 18, 2019
MailMate EagleFiler Bundle 2019
View 1 Readme.md

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.
View 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 Nov 29, 2018
Transloadit Sample for Tim 20181129
View 1. Readme.md

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
hugo server error for hugo docs showcase
View hugo_server_std_out.log
~/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