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
@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'>
html {
/** -ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%; */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-tap-highlight-color: transparent;
text-rendering: optimizeLegibility;
font-kerning: normal;
font-variant-ligatures: common-ligatures, contextual;
-moz-font-feature-settings: "kern", "liga", "clig", "calt";
@RickCogley
RickCogley / hugo-server.log
Created April 10, 2017 12:42
Errors after upgrade to Hugo v21
~/dev/RCC-live ❯❯❯ hugoserver-rcclive master ✱ ◼
INFO 2017/04/10 20:44:37 Using config file:
INFO 2017/04/10 20:44:37 /Users/rcogley/dev/RCC-live/static/ is the only static directory available to sync from
INFO 2017/04/10 20:44:37 syncing static files to /
WARNING: Site config's rssURI is deprecated and will be removed in a future release. Set baseName in outputFormats.RSS.
WARN 2017/04/10 20:44:37 No translation bundle found for default language "en"
WARN 2017/04/10 20:44:37 Translation func for language en not found, use default.
WARN 2017/04/10 20:44:37 i18n not initialized, check that you have language file (in i18n) that matches the site language or the default language.
Started building sites ...
ERROR 2017/04/10 20:44:37 Failed to find GitInfo for "content/post/2017-04-10-How-Much-is-Too-Much-Reclining.md"
@RickCogley
RickCogley / Readme.md
Last active March 2, 2017 12:43
Webfaction FAQ

Intro

Webfaction has been a stable, developer-focused hosting solution that I've used for years. Here are a few pointers about the service.

FAQ

Does it have a cpanel or webmin

No, it has its own webfaction-style dashboard. It assumes you know what you are doing and can go in via ssh and fix things, but you use the dashboard GUI for initial setups.

What about credentials?

@RickCogley
RickCogley / ! Readme.md
Created March 1, 2017 04:35
Geolocation in Teamdesk or dbFLEX

This is a clumsy attempt at making a list of clients nearby, based on the haversine formula.

The geolocation.js goes in setup resources. The script goes in a text section on a form.

This is likely broken, as it was built a long time ago, and not since vetted. There may be different API's available now, or, we may need to renew our subscription to the API that we originally signed up for.

@RickCogley
RickCogley / create-github-issue.sh
Last active October 12, 2023 20:57
Curl Script to Create a Github Issue
curl -X "POST" "https://api.github.com/repos/rickcogley/REPONAME/issues?state=all" \
-H "Cookie: logged_in=no" \
-H "Authorization: token THEd13GITHUBfb87TOKENa4FROM5eSETTINGS" \
-H "Content-Type: text/plain; charset=utf-8" \
-d $'{
"title": "A workflow alerts Operator who performs a process",
"body": "TBD",
"milestone": 5,
"assignees": [
"RickCogley",