Skip to content

Instantly share code, notes, and snippets.

View photusenigma's full-sized avatar

David Colwell photusenigma

  • 4th Mind Comm Tech LLC
  • Boston MA
View GitHub Profile

Getting MacOS Installer images without App Store

In terminal...

get list of available OSes*

softwareupdate --list-full-installers

The list will display OS names, but also version number. We want to use the version number from the line for the version we desire in the next command to fetch that specific image.

# Getting MacOS Installer images without App Store
In terminal...
### get list of available OSes*
`softwareupdate --list-full-installers`
The list will display OS names, but also version number. We want to use the version number from the line for the version we desire in the next command to fetch that specific image.
@photusenigma
photusenigma / RoR - Ruby to JS object in .erb
Created January 10, 2020 18:56
RoR - Ruby to JS object in .erb
<script>
<%
mock_data_array = []
50000.times { |idx|
new_mock_item = {id: "item_index_#{idx}", display_name: "Display String For Item # #{idx}"}
mock_data_array << new_mock_item
}
%>
var mockDataArray = <%= mock_data_array.to_json.html_safe %>
</script>
@photusenigma
photusenigma / vscode-extensions.install
Created October 18, 2018 15:57
VS Code Extensions I use
# Themes:
code --install-extension arcticicestudio.nord-visual-studio-code
code --install-extension giladgray.theme-blueprint
code --install-extension pierrenel.theme-oceandeep
code --install-extension thenikso.github-plus-theme
code --install-extension zhuangtongfa.Material-theme
# Git
code --install-extension donjayamanne.githistory
code --install-extension eamodio.gitlens
@photusenigma
photusenigma / delete_branches_older_than.sh
Last active February 24, 2016 03:05 — forked from pikender/delete_branches_older_than.sh
Delete Feature Branches as Sprint Deployed on Production
#!/bin/sh
## Script to clean old git branches
echo "Delete branches having last commit before 1st June 2015 - DO_DELETE=1 to show execute"
echo "DO_DELETE=1 delete_branches_older_than.sh '2015-06-01'"
echo $DO_DELETE
echo $1
@photusenigma
photusenigma / Which button is disabled?.markdown
Created October 27, 2015 04:15
Which button is disabled?
Traceback (most recent call last):
File "/Users/dc/source/stackit/stack", line 31, in <module>
import bin.archiver
File "/Users/dc/source/stackit/bin/archiver.py", line 10, in <module>
import gwcell
File "/Users/dc/source/stackit/bin/gwcell.py", line 15, in <module>
from lib import search
File "/Users/dc/source/stackit/lib/search.py", line 7, in <module>
import pyes
File "/usr/local/lib/python2.7/site-packages/pyes/__init__.py", line 41, in <module>