Skip to content

Instantly share code, notes, and snippets.

View hereischen's full-sized avatar
🍵
Don't worry.

Haotong hereischen

🍵
Don't worry.
View GitHub Profile

Disclaimer: I'm not the original author of this sheet, but can't recall where I found it. If you know the author, please let me know so I give the attribution.

Note: Since this seems to be helpful to some people, I formatted it to improve readability of the original. Also, note that this is from 2016, many things may have changed, and I don't use macOS anymore, so I probably can't help in case of questions, but maybe someone else can.

Mac Network Commands Cheat Sheet

After writing up the presentation for MacSysAdmin in Sweden, I decided to go ahead and throw these into a quick cheat sheet for anyone who’d like to have them all in one place. Good luck out there, and stay salty.

Get an ip address for en0:

:root {
box-sizing: border-box; // 1
}
*,
::before,
::after {
box-sizing: inherit; // 2
}
@hereischen
hereischen / inline style.txt
Last active March 6, 2021 07:37
define inline styles
A better practice is to define styles in a separate constant:
```js
import React from "react"
const buttonStyles: React.CSSProperties = {
backgroundColor: "#5aac44",
borderRadius: "3px",
border: "none",
boxShadow: "none"
}
```