Skip to content

Instantly share code, notes, and snippets.

View IsaiahByDayah's full-sized avatar

Isaiah Smith IsaiahByDayah

View GitHub Profile
# ------------------------------------------------------------
# 0. REFERENCE: https://gist.github.com/natelandau/10654137
# ------------------------------------------------------------
# ------------------------------------------------------------
# 1. Set ENVs
# ------------------------------------------------------------
///////////////////////////
// Useful Tools
///////////////////////////
Fira Code Font - https://github.com/tonsky/FiraCode/wiki/Installing
///////////////////////////
// Useful Settings
///////////////////////////
@IsaiahByDayah
IsaiahByDayah / resize.ts
Last active March 1, 2024 07:56
Example express endpoint that resizes an image from B2 Cloud Storage
import * as admin from "firebase-admin"
import express from "express"
import sharp, { ResizeOptions, OutputOptions } from "sharp"
import fetch from "cross-fetch"
import FileType from "file-type"
import { parseQueryNumber, parseQueryString } from "../some/extra/util/functions"
import { Photo } from "../some/custom/types"
const router = express.Router()
import { FC } from "react"
import {
Button,
ThemeProvider as MuiThemeProvider,
createMuiTheme,
responsiveFontSizes,
makeStyles,
} from "@material-ui/core"
/// "Global" Theme. This would wrap your entire app
@IsaiahByDayah
IsaiahByDayah / ThemeProvider.tsx
Last active May 20, 2021 03:10
MUI Theme with Custom Colors
// REF: https://material-ui.com/customization/palette/#adding-new-colors
import { FC } from "react"
import {
ThemeProvider as MuiThemeProvider,
createMuiTheme,
responsiveFontSizes,
} from "@material-ui/core"
// include these here so the compiler can add the types
{"name":"Isaiah","settings":"{\"settings\":\"{\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\",\\n \\\"editor.fontFamily\\\": \\\"'Fira Code', Menlo, Monaco, 'Courier New', monospace\\\",\\n \\\"editor.fontLigatures\\\": true,\\n \\\"editor.formatOnSave\\\": true,\\n \\\"editor.tabSize\\\": 2,\\n \\\"eslint.validate\\\": [\\n \\\"javascript\\\",\\n \\\"javascriptreact\\\",\\n \\\"typescript\\\",\\n \\\"typescriptreact\\\"\\n ],\\n \\\"editor.codeActionsOnSave\\\": {\\n \\\"source.organizeImports\\\": \\\"explicit\\\"\\n },\\n \\\"workbench.editor.showTabs\\\": \\\"single\\\",\\n \\\"workbench.startupEditor\\\": \\\"newUntitledFile\\\",\\n \\\"typescript.updateImportsOnFileMove.enabled\\\": \\\"always\\\",\\n \\\"editor.suggestSelection\\\": \\\"first\\\",\\n \\\"vsintellicode.modify.editor.suggestSelection\\\": \\\"automaticallyOverrodeDefaultValue\\\",\\n \\\"[typescriptreact]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\n },\
General Self-Hosting Resources
- Syntax - Self Host 101 Series
- Set up and Secure Your Own Server - https://www.youtube.com/watch?v=Q1Y_g0wMwww
- Losing SSH Access, VPNs, Load Testing, Reverse Proxies and more! - https://www.youtube.com/watch?v=wZ9kmBnwX54
- Run Multiple Apps with Caddy - https://www.youtube.com/watch?v=mLznVlBAtcg
- r/selfhosted SubReddit - https://www.reddit.com/r/selfhosted/
- Awesome Selfhosted GitHub - https://github.com/awesome-selfhosted/awesome-selfhosted
Tech / tools / things I use