Skip to content

Instantly share code, notes, and snippets.

View Aghassi's full-sized avatar
🎧
💻 Programming

David Aghassi

🎧
💻 Programming
View GitHub Profile
@Aghassi
Aghassi / webpack-vendor-scoping-chunks.js
Last active August 13, 2020 15:50
Create vendor chunks with scoped modules for webpack
/**
* Given the package.json of a repo and the webpack externals, construct an object of
* vendor chunks specifically for each scoped package (e.g. `@babel`)
* @param {Array} externals the list of packages external to the webpack build
* @param {Object} pkg the package.json for the current repository
* @returns {Object} An object of the form:
*
* @example
* ```javascript
* {
@Aghassi
Aghassi / docker-compose.yml
Last active April 1, 2024 21:03
LinuxServer Docker Compose: Plex, Sonarr, Radarr, NZBGet, Let's Encrypt, Time Machine
version: '2'
services:
plex:
image: linuxserver/plex
container_name: plex
volumes:
- /path/to/plex/config:/config
- /path/to/plex/Movies:/data/movies
- /path/to/plex/Shows:/data/tvshows
- /path/to/plex/transcode:/data/transcode