Skip to content

Instantly share code, notes, and snippets.

View lacymorrow's full-sized avatar
🕶️
Grok'ing

Lacy Morrow lacymorrow

🕶️
Grok'ing
View GitHub Profile
@lacymorrow
lacymorrow / Add an app to run automatically at startup in Windows 10
Created May 28, 2023 22:46
Add an app to run automatically at startup in Windows 10
Windows 10
Select the Start button and scroll to find the app you want to run at startup.
Right-click the app, select More, and then select Open file location. This opens the location where the shortcut to the app is saved. If there isn't an option for Open file location, it means the app can't run at startup.
With the file location open, press the Windows logo key + R, type shell:startup, then select OK. This opens the Startup folder.
Copy and paste the shortcut to the app from the file location to the Startup folder.
@lacymorrow
lacymorrow / text-to-image.php
Created May 24, 2023 03:34
Uses an uploaded font to change text into an image.
<?php
// Copyright (c) 2005, Lacy Morrow
// All rights reserved.
// ******************Text-Image PHP Script***********************
// Uses an uploaded font to change text into an image. Multiple options.
// USE:
// ONLY SUPPORTS .ttf fonts
// Use the format "http://www.yourdomain.com/text.php?s=11&text=hello&font=TIMES"
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"meta": {
"theme": "kendall",
"version": "v1.0.0",
"canonical": "https://github.com/jsonresume/resume-schema/blob/v1.0.0/schema.json"
},
"basics": {
"name": "Lacy Morrow",
"label": "Senior Web Engineer",
// Run `openssl rand -base64 32` or https://generate-secret.vercel.app/32 to generate a secret
npm install https://github.com/lacymorrow/movie-info#master
docker exec -it <container_name> <command>
@lacymorrow
lacymorrow / install-osx-high-sierra-command-line.sh
Created November 8, 2022 22:26 — forked from peacefixation/install-osx-high-sierra-command-line.sh
Install OS X High Sierra without converting to APFS file system
# create a USB installer
# https://support.apple.com/en-au/HT201372
Download the OS X High Sierra installer via the App Store, it will be installed into the /Applications directory
If it opens automatically, close it
Insert a USB stick (8GB+)
Run the following command where MyVolume is the name of the USB volume:
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
# boot the USB installer

As of macOS 10.13 Apple systems running Solid State disks are, by default, being converted to use an updated file system called APFS on the boot disk. Deep Freeze does not support installation on a APFS based system and cannot be used on systems that have been upgraded to macOS High Sierra and converted to APFS at this time.

While Faronics does intend to support AFPS in a future release of the Deep Freeze product we at this time cannot provide a timeframe for support. For customers who wish to upgrade to High Sierra, and run Deep Freeze this document will detail a process for performing the macOS upgrade and suppressing the conversion of the file system to APFS.

@lacymorrow
lacymorrow / console_save.js
Last active August 26, 2024 02:14
`console.save()` Save a javascript variable to a JSON file
// Save a javascript variable to a JSON file
(function(console){
console.save = function(data, filename){
if(!data) {
console.error('Console.save: No data')
return;
}
#!/usr/bin/env node
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var fs = _interopDefault(require('fs'));
var arg = _interopDefault(require('arg'));
var chalk = _interopDefault(require('chalk'));
var spawn = _interopDefault(require('cross-spawn'));
var delay = _interopDefault(require('delay'));