Skip to content

Instantly share code, notes, and snippets.

View michaeljymsgutierrez's full-sized avatar
:octocat:
I'm just a developer for fun ⌨️

Chael Gutierrez michaeljymsgutierrez

:octocat:
I'm just a developer for fun ⌨️
View GitHub Profile
@michaeljymsgutierrez
michaeljymsgutierrez / bootable-win-on-mac.md
Created November 10, 2024 13:06 — 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.

https://drive.google.com/file/d/1_ZRwIuEw1OjKBws-FARfMe--4fE5thiq/view?usp=sharing
@michaeljymsgutierrez
michaeljymsgutierrez / blank.kml
Created July 2, 2021 07:16
Example blank kml file for google kml
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<!-- Please change the "Location name here" -->
<name>Location name here</name>
<Style id="poly-000000-2000-77-nodesc-normal">
<LineStyle>
<color>ff000000</color>
<width>2</width>
</LineStyle>
# deb cdrom:[Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731)]/ focal main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ph.archive.ubuntu.com/ubuntu/ focal main restricted
# deb-src http://ph.archive.ubuntu.com/ubuntu/ focal main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://ph.archive.ubuntu.com/ubuntu/ focal-updates main restricted
# deb-src http://ph.archive.ubuntu.com/ubuntu/ focal-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
@michaeljymsgutierrez
michaeljymsgutierrez / fix-source.sh
Created November 24, 2020 02:13
19.04 source list fix
#! /bin/bash
sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
grep -E 'archive.ubuntu.com|security.ubuntu.com' /etc/apt/sources.list.d/*
sudo apt-get update
@michaeljymsgutierrez
michaeljymsgutierrez / set-icon.sh
Last active January 13, 2025 23:37
Set icon on window and panel - xseticon
#! /bin/bash
# @params $1: APP_NAME
# @params $2: ICON_PATH
# set-icon.sh Slack /usr/share/pixmaps/slack.png
# Note: Make sure xseticon is installed on your system
# If not installed: https://github.com/xeyownt/xseticon
# Either/usr/bin or /usr/local/bin is fine for script directory
# sudo cp set-icon.sh /usr/bin
@michaeljymsgutierrez
michaeljymsgutierrez / nodejs-mongodb.sh
Last active June 28, 2020 13:07
Script for installing NodeJS and MongoDB on Linux (Ubuntu Distro)
#! /bin/bash
# Install NVM - Node Version Manager
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
# Reload bash
source ~/.bashrc
# Install NodeJS
nvm install v12.18.1
# Requires python 3
import scipy as sp
import sympy as sym
x = sym.symbols('x')
expression = input('Enter Expression: ')
transform = sym.diff(expression);
init_transform = str(transform)
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]
RewriteRule ^ /index.html
@michaeljymsgutierrez
michaeljymsgutierrez / .htaccess
Last active January 7, 2020 10:23
.htaccess v2
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.html [L]
</IfModule>