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
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 June 2, 2020 00:50
`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'));
@lacymorrow
lacymorrow / Utils.js
Created August 16, 2019 07:04
A handy collection of JS utility functions
var Utils = {
sleep: function (milliseconds) {
return new Promise(resolve => setTimeout(resolve, milliseconds));
},
isUndefined: function (value) {
return typeof value === 'undefined';
},
isObject: function (o) {
return (
typeof o === 'object' &&
@lacymorrow
lacymorrow / docReady.js
Created January 28, 2019 19:46
A plain, vanilla, cross-browser JS document.ready function
/* Credit to https://github.com/jfriend00/docReady
*
* Call with docReady(fn, context)
*/
(function(funcName, baseObj) {
"use strict";
// The public function name defaults to window.docReady
// but you can modify the last line of this function to pass in a different object or method name
// if you want to put them in a different namespace and those will be used instead of
// window.docReady(...)
@lacymorrow
lacymorrow / flash_fix.sh
Last active January 6, 2019 23:44
FIX ALMOST ANY FLASH OR SD CARD!
#vGet drive name
diskutil list
# then try
diskutil unmountDisk force /dev/DRIVENAME
# Then format
@lacymorrow
lacymorrow / js-sum.js
Created September 24, 2018 10:15
Simple function to sum an array
const numbers = [10, 20, 30, 40] // sums to 100
// function for adding two numbers. Easy!
const add = (a, b) =>
a + b
// use reduce to sum our array
const sum = numbers.reduce(add)