Skip to content

Instantly share code, notes, and snippets.

View gkucmierz's full-sized avatar
💻

Grzegorz Kućmierz gkucmierz

💻
View GitHub Profile
@gkucmierz
gkucmierz / bootable-win-on-mac.md
Created October 2, 2025 05:12 — 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.

@gkucmierz
gkucmierz / List of over 1000 Polish names
Created November 29, 2022 07:51 — forked from hywak/List of over 1000 Polish names
php array of Polish names
$names = array('Apollona',
'Apollina',
'Apolonia',
'Arabella',
'Ariadna',
'Arleta',
'Arnolda',
'Astryda',
'Atena',
'Augusta',
@gkucmierz
gkucmierz / macbook_setup.md
Last active September 25, 2020 09:56 — forked from hrishimittal/macbook_setup.md
Setting up a new MacBook for Ruby on Rails web development
  1. Install Google Chrome
  2. Install Homebrew - http://brew.sh/
  3. Install GnuPG - brew install gnupg2
  4. Generate SSH key - ssh-keygen -t rsa -b 4096 -C "[email protected]"
  5. Install node, npm, n
  6. Git - brew install git
  7. Add SSH public key to Github, Bitbucket.
  8. Restore pgp key https://dev.to/gkucmierz/how-to-make-my-git-contributions-verified-2e76
  9. To delete words with alt+backspace in Terminal, go to Preferences > (your profile) > Keyboard > Use option as meta key.
  10. Sublime Text shortcut: sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
@gkucmierz
gkucmierz / nth-permutation.js
Created August 20, 2017 16:17 — forked from bcherny/nth-permutation.js
get nth permutation of a string
// (as: Array[Array[A]]) => Array[A]
function flatten (as) {
return as.reduce((a, b) => a.concat(b), [])
}
// (as: Array[A], a: A) => Array[A]
function without (as, a) {
const bs = as.slice(0)
bs.splice(as.indexOf(a), 1)
return bs