Skip to content

Instantly share code, notes, and snippets.

View JamesBissick's full-sized avatar
📦
Fetching packages

James Bissick JamesBissick

📦
Fetching packages
  • Paris, France
  • 11:27 (UTC +02:00)
View GitHub Profile
@acarril
acarril / bootable-win-on-mac.md
Created November 18, 2022 17:49
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.

@pythoninthegrass
pythoninthegrass / starship.toml
Last active April 25, 2025 18:55
Starship prompt setup
# SOURCES
# https://starship.rs/config
# https://starship.rs/presets/nerd-font.html#configuration
# DEBUG via:
# starship explain
# STARSHIP_LOG=trace
"$schema" = 'https://starship.rs/config-schema.json'
@romanzipp
romanzipp / PHP CS Fixer PHPStorm.md
Last active March 25, 2025 15:05
Setup PHP CS Fixer with PHPStorm

Prequisites

Install PHP-CS-Fixer as Composer dependency.

Inspection

  1. Navigate to Preferences -> Editor -> Inspections
  2. Search for "PHP CS Fixer" (or expand the tree to PHP -> Quality tools -> PHP CS Fixer validation)
  3. Important: You need to make these changes in a Project profile. Changes to the IDE Profile will affect all existing projects and lead to wrong .php_cs.dist paths
  4. Select the "Custom" ruleset
@april
april / arena-macos-full-screen-fixes.sh
Last active June 4, 2025 14:00
Fixes Magic Arena's broken full screen implementation on macOS
#!/bin/bash
# this forces Arena into full screen mode on startup, set back to 3 to reset
# note that if you go into the Arena "Graphics" preference panel, it will reset all of these
# and you will need to run these commands again
defaults write com.wizards.mtga "Screenmanager Fullscreen mode" -integer 0
defaults write com.wizards.mtga "Screenmanager Resolution Use Native" -integer 0
# you can also replace the long complicated integer bit with any other scaled 16:9
# resolution your system supports.

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@PurpleBooth
PurpleBooth / README-Template.md
Last active June 8, 2025 06:27
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@aquelito
aquelito / git-command.md
Last active April 23, 2025 23:17
GIT - Ligne de commande principale
title category
Git config
Git

Rappel

Ne pas oublier : l'aide en ligne de commande.

@ericelliott
ericelliott / env-examples.md
Last active May 23, 2025 14:12
env-examples

Most configuration really isn't about the app -- it's about where the app runs, what keys it needs to communicate with third party API's, the db password and username, etc... They're just deployment details -- and there are lots of tools to help manage environment variables -- not the least handy being a simple .env file with all your settings. Simply source the appropriate env before you launch the app in the given env (you could make it part of a launch script, for instance).

env files look like this:

SOMEVAR="somevalue"
ANOTHERVAR="anothervalue"

To source it:

$ source dev.env # or staging.env, or production.env, depending on where you're deploying to

@tony4d
tony4d / p4merge4git.md
Created August 24, 2012 19:00
Setup p4merge as a visual diff and merge tool for git