Skip to content

Instantly share code, notes, and snippets.

View josephshambrook's full-sized avatar

Joseph Shambrook josephshambrook

View GitHub Profile
@josephshambrook
josephshambrook / steps.md
Last active June 11, 2020 18:25
My own laptop setup

My own laptop setup

I've had 3 separate occasions recently where I've needed to set up a laptop for my own use, so here's some steps to remind me what I need to do each time.

  1. Install Xcode (usually via App Store), run it, accept the terms and conditions (which no-one apart from lawyers has ever read), and let it install stuff.
  2. Install nvm, then use it to install Node/npm (use nvm ls-remote to find the latest LTS version, then nvm install [version]). It will automatically set that Node version as the default.
  3. Install Yarn - currently best done via npm i -g yarn (apparently) but check the docs.
  4. Download JetBrains Mono (my preferred coding font)
  5. Install VS Code, tailor the preferences, install extensions
@josephshambrook
josephshambrook / my-global-shortcuts.js
Last active May 21, 2021 09:35
My VS Code global shortcuts
{
// My VSCode global shortcuts
// Mostly JavaScript stuff, and will add to it gradually
// To save:
// - Go to Preferences > User Snippets
// - Paste the contents of this file
"console.log": {
"scope": "javascript,typescript",
"prefix": "log",
.g {
--main-width: 100%;
display: grid;
grid-template-columns:
minmax(1rem, 1fr)
minmax(auto, var(--main-width))
minmax(1rem, 1fr);
}
@josephshambrook
josephshambrook / .gitconfig
Last active July 3, 2023 11:36
My Git Aliases
[alias]
a = add --all
ac = !git add -A && git commit -m
cm = commit -m
co = checkout
cob = checkout -b
ps = push
psf = push --force
pl = pull
s = status
@josephshambrook
josephshambrook / system-font.css
Last active November 5, 2019 16:43
System Font (courtesy of GitHub blog)
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
Helvetica, Arial, sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";