Skip to content

Instantly share code, notes, and snippets.

View RickCogley's full-sized avatar
👻
Slowly but surely implementing ISO 27001 ISMS

Rick Cogley RickCogley

👻
Slowly but surely implementing ISO 27001 ISMS
View GitHub Profile
@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');
});
@RickCogley
RickCogley / hugotest.md
Created January 2, 2018 11:03
Demo of HTML in Hugo markdown file

date: 2017-12-15T00:30:27+09:00 draft: false tags:

  • セミナー
  • VAD協議会セミナー
  • 予定しているセミナー
  • イベント
  • VAD協議会イベント
  • 予定しているイベント
@RickCogley
RickCogley / config.toml
Last active November 19, 2017 22:18
hugo multilingual multisite test
baseURL = "http://live.cogley.info"
defaultContentLanguage = "en"
languageCode = "en-us"
title = "RC Live"
copyright = "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) License. Some rights reserved by James R. Cogley"
enableGitInfo = "true"
enableemoji = "true"
staticDir = ["static"]
# Note: This can also be set per language.
@RickCogley
RickCogley / ! Readme.md
Last active January 29, 2022 02:08
zsh functions for hugo static site generator

I use a Mac with hugo, and have some zsh functions in my .zshrc file, to make my life easier.

I have a bunch of functions for running hugo server with different ports to keep the sites out of each other's hair. Then I have some functions for generating the sites and pushing to production.

Once you have the functions written up, you can just execute hugoserver-1 to start the local server on port 1377, in the case below, and ctrl-c to stop it. And hugodeploy-1 to generate and push to your web server via rsync.

The sample below is to make it easy to understand the gist (get it?). The ugly truth is here:

https://github.com/RickCogley/dotfiles/blob/master/zsh/zshrc

@RickCogley
RickCogley / meta-tags.md
Created April 13, 2017 00:07 — forked from whitingx/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@RickCogley
RickCogley / meta-tags.md
Created April 12, 2017 23:47 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>