Skip to content

Instantly share code, notes, and snippets.

View thedanfernandez's full-sized avatar

Dan Fernandez thedanfernandez

View GitHub Profile
@thedanfernandez
thedanfernandez / gist:1bf03894db99af7203364b25d3e423a0
Created April 9, 2022 23:55
Save All GitHub Issues to JSON
/*
* Gets all GitHub Issues as JSON with the specified fields
* Command: gh issue list --json 'number,title,body,labels,milestone'
* GitHub Issues Reference - https://cli.github.com/manual/gh_issue_list
* https://nodejs.org/api/child_process.html#child_processexeccommand-options-callback
* Snip from Node Docs: Never pass unsanitized user input to this function. Any input containing shell metacharacters may be used to trigger arbitrary command execution.
* Snippet Assumes you have installed Github CLI and have authenticated already
*/
@thedanfernandez
thedanfernandez / cloudSettings
Last active March 29, 2020 06:56
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-03-26T02:22:11.822Z","extensionVersion":"v3.2.7"}
# Step 0 - Open a PowerShell Command Prompt as Administrator
# Step 0.5 - Set execution policy to remotesigned
# Set-ExecutionPolicy remotesigned
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
#Apps and Utilities
choco install greenshot --yes
choco install googlechrome --yes