Skip to content

Instantly share code, notes, and snippets.

View JoshuaTheMiller's full-sized avatar
🎯
Focusing

Joshua Miller JoshuaTheMiller

🎯
Focusing
View GitHub Profile
@JoshuaTheMiller
JoshuaTheMiller / github_change_web.md
Last active December 11, 2023 17:55
LinkedIn Comments in need of Formatting
@JoshuaTheMiller
JoshuaTheMiller / README.md
Last active October 29, 2021 15:52
Sharing Photo Quickly

This file/link will be gone whenever I remember to delete it

image

Regarding how icons like the coffee cup stay for me in Zoom- the bottom icons in the picture above stay until I dismiss them. I'm using the Windows Desktop Zoom app

This link describes it in better detail: link

@JoshuaTheMiller
JoshuaTheMiller / _PoorMansFeatureToggle.md
Last active January 11, 2021 22:21
Poor Man's Feature Toggle Article

This Gist and the associated files were created to support an article on Feature Flags (to be linked)

#!/usr/bin/env node
const fs = require('fs');
function getNamedArgumentValue(argumentList, name) {
const potentialValue = argumentList.find(elem => elem.startsWith(name));
if (potentialValue === null) {
return "";
}
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(8080);
console.log('Server running at *:8080/');
# As always, make sure you know what a script is doing before blindly trusting someone's Gist :)
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
refreshenv
choco install boxstarter -y
@JoshuaTheMiller
JoshuaTheMiller / index.js
Created May 10, 2018 03:18
The Lambda for the DailyGoodJob Flash Briefing tutorial.
// Check out the walkthrough at: https://medium.com/@aflyingcaveman
const phrases = [
"You're doing great!",
"You're awesome!",
"Good job at doing what you do!"
];
exports.handler = (event, context, callback) => {
const todaysDate = getTodayAsDateWithNoTime();
@JoshuaTheMiller
JoshuaTheMiller / AddAdmnCmdToContextMenu.reg
Created February 22, 2018 02:58
Adds the ability to open the current folder in an Administrative Command Prompt via the Windows 10 context menu. Use at your own risk as this modifies the registry.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\OpenElevatedCmd]
@="Open with Administrator Command Prompt"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Directory\shell\OpenElevatedCmd\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k,pushd,%V' -Verb RunAs\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenElevatedCmd]
@JoshuaTheMiller
JoshuaTheMiller / AddBashToContextMenu.reg
Created January 15, 2018 23:43
Adds the ability to open the current folder in a Bash Shell via the Windows 10 context menu. Use at your own risk as this modifies the registry.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\bash]
@="Open with Bash"
"Icon"="%USERPROFILE%\\AppData\\Local\\lxss\\bash.ico"
[HKEY_CLASSES_ROOT\Directory\Background\shell\bash\command]
@="\"C:\\Windows\\System32\\bash.exe\""
@JoshuaTheMiller
JoshuaTheMiller / UbuntuRVMInstall.sh
Last active March 8, 2018 09:00
Ubuntu RVM install script
sudo apt-get update -y; \
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB; \
sudo apt-get install software-properties-common -y; \
sudo apt-add-repository -y ppa:rael-gc/rvm; \
sudo apt-get update -y; \
sudo apt-get install rvm -y; \
rvm install "ruby-2.4.3"; \
rvm use "ruby-2.4.3";