Skip to content

Instantly share code, notes, and snippets.

@mike-casas
mike-casas / index.html
Last active September 1, 2017 19:13
JS Bin// source https://jsbin.com/zopiximebi sample vuejs
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.change-color {
color: red;
}
@mike-casas
mike-casas / appEntryPoint.js
Created November 17, 2017 06:09 — forked from markerikson/appEntryPoint.js
Webpack React/Redux Hot Module Reloading (HMR) example
import React from "react";
import ReactDOM from "react-dom";
import configureStore from "./store/configureStore";
const store = configureStore();
const rootEl = document.getElementById("root");
@mike-casas
mike-casas / gist:85f020f3c72790af4148ffa2aa0bbd5e
Created December 12, 2019 22:26
default node version with nvm
nvm alias default 8.1.0
const Sitemapper = require('sitemapper');
(async () => {
const sitemap = new Sitemapper();
const oldSiteMapXml = await sitemap.fetch(
'https://auth0.com/blog/sitemap.xml',
);
const newSiteMapXml = await sitemap.fetch(
'http://localhost:3000/blog/sitemap.xml',
@mike-casas
mike-casas / generate-suitable-string-for-secrets.txt
Last active May 20, 2022 15:34
Generate suitable string for secrets
node -e "console.log(crypto.randomBytes(32).toString('hex'))"
@mike-casas
mike-casas / bootable-win-on-mac.md
Created March 24, 2025 22:21 — forked from acarril/bootable-win-on-mac.md
Create a bootable Windows USB using macOS

For some reason, it is surprisingly hard to create a bootable Windows USB using macOS. These are my steps for doing so, which have worked for me in macOS Monterey (12.6.1) for Windows 10 and 11. After following these steps, you should have a bootable Windows USB drive.

1. Download a Windows disc image (i.e. ISO file)

You can download Windows 10 or Windows 11 directly from Microsoft.

2. Identify your USB drive

After plugging the drive to your machine, identify the name of the USB device using diskutil list, which should return an output like the one below. In my case, the correct disk name is disk2.