Skip to content

Instantly share code, notes, and snippets.

View ilessing's full-sized avatar

Ian Lessing ilessing

  • UCSB Library
  • SoCal
View GitHub Profile
@ilessing
ilessing / open-front-finder-dir-in-vscode.md
Last active April 8, 2023 15:50
a one line shell / applescript to open VS Code in current Finder window

Have you ever been tooling through your file system in Finder and you get to a directory where you would like to open VScode to edit the files there.
You could grab the proxy icon and drag it to the VScode icon on your Dock or you could go up one directory and then drag the folder icon to the dock and there are probably other ways.

But I wanted to be able to do this with a single button press on my Streamdeck.
So I made this one line shell script and wired it to a Streamdeck button:

@ilessing
ilessing / Filemaker-Applescript-Shell-script.md
Last active February 3, 2023 01:31
How to pass a FileMaker field value to a shell script on MacOS using Applescript

How to pass a FileMaker field value to a shell script on MacOS using Applescript

Description:

Say you have a FileMaker database and you have a field whose value you wish to pass to a shell script on your Mac.

The Filemaker client is running on MacOS. It doesn't matter if the Filemaker database is local (on the Mac) or the FileMaker database is hosted on a FileMaker server.

I had a "barcode" field and needed to pass that barcode to a shell script as a parameter (or argument). Well the good news is this CAN be done but the syntax is not particulary easy to figure out especially if you're not fluent in Applescript and/or FileMaker.

Content Management Systems (CMS)

  • Statamic - PHP Laravel - Jack McDade
  • GRAV markdown based static site generator, Twig templates, PHP
  • Prismic Headless API Based
  • Directus Free and Open-Source Headless CMS - Content editing GUI not included.
  • Sanity.io
  • CushyCMS Uses SFTP to update HTML files. (by Daniel Pierce?) Only updates elements with class: cushycms. Provides WYSIWYG editor. Has free tier of service.
  • Contentful Free tier available. REST and Beta GraphQL APIs. Uses markdown in editor.
  • Dato GraphQL API. Free tier available.
  • Dot CMS commercial, enterprise. not headless, not traditional CMS. Hybrid
@ilessing
ilessing / gist:5746fd6b11ff3b912e45d43749426f34
Created October 9, 2020 18:08
r-lang data frame sample
cats <- data.frame(
coat = c("calico", "black", "tabby"),
weight = c(2.1, 5.0, 3.2),
likes_string = c(TRUE, FALSE, TRUE)
)
@ilessing
ilessing / composer.json
Created March 8, 2019 02:16
composer.json for installing old drush
{
"require": {
"drush/drush": "7.1.0"
},
"repositories": [{
"type": "composer",
"url": "https://packagist.org"
},
{
"packagist": false
@ilessing
ilessing / Pandoc Markdown to PDF.md
Last active April 26, 2024 22:15
getting pandoc to generate PDF from Markdown on MacOS

Using Pandoc to generate PDFs from Markdown

on a Mac running macOS 10.13.4

To install the needed components you can use Homebrew

Two Components are needed: