Skip to content

Instantly share code, notes, and snippets.

@kudos
kudos / Dockerfile
Created July 4, 2021 14:02
Plex Dockerfile with AMD HW transcoding support added
FROM plexinc/pms-docker:1.22.3.4523-d0ce30438
RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:oibaf/graphics-drivers -y && \
apt-get update && \
apt-get install -y \
vainfo \
mesa-va-drivers \
mesa-vdpau-drivers \
@duncanmcclean
duncanmcclean / console.php
Last active March 5, 2024 15:32
Identify & fix Duplicate IDs in Statamic 3.
<?php // copy everything after this line
Artisan::command('identify-duplicates', function () {
$duplicates = [];
$shouldFixDuplicates = $this->confirm('Should Duplicate IDs be replaced with fresh IDs?');
$items = collect(\Illuminate\Support\Facades\File::allFiles(__DIR__.'/../content'))
->filter(function ($file) {
return $file->isFile();
})
@thomascenni
thomascenni / invoiceninja5.yml
Last active November 4, 2021 13:04
InvoiceNinja one-click app for Caprover (work in progress)
captainVersion: 4
services:
$$cap_appname-db:
image: mysql:5.7.32
restart: always
environment:
MYSQL_ROOT_PASSWORD: $$cap_db_root_password
MYSQL_DATABASE: ninja
MYSQL_USER: invoiceninja
@rubenvanassche
rubenvanassche / tests.yml
Last active September 23, 2024 12:08
A simple Laravel testing workflow for GitHub Actions
name: Tests (PHP)
on: [push]
jobs:
tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

This is a work in progress, proceed with caution

Install Proxmox and a Ubuntu VM with Portainer to manage docker containers

Setup Proxmox

  1. Install Proxmox 6.X iso I selected 2 drives in Raid 1 mirror
  2. Console/SSH into Proxmox
  3. nano /etc/apt/sources.list
@bwangila
bwangila / Download and Organize Lynda.com Courses with Authentication.md
Last active April 4, 2022 02:07
Lynda.com unfortunately does not allow one to easily download course videos even with a premium subscription. Here, I show you how to easily do that with the open source youtube-dl utility.

youtube-dl INSTALLATION

youtube-dl is a handy little command-line utility that, with the right command, automagically downloads videos from Youtube as well as other platforms such as Vimeo, Lynda.com, BBC, CNN etc..(Full list of supported websites)

Kindly proceed to youtube-dl's Github repo for detailed installation instructions for your respective OS

In case of an error, make sure you have Python 2.6, 2.7 or 3.2+ installed as youtube-dl needs it to run.

USAGE

@bradtraversy
bradtraversy / webdev_online_resources.md
Last active November 19, 2025 14:28
Online Resources For Web Developers (No Downloading)
@calebporzio
calebporzio / HasUuid.php
Created July 5, 2018 17:36
A little trait to add to models that will have Uuids
<?php
// Example usage in a model:
class ExampleModel extends Model
{
use HasUuid;
protected $primaryKey = 'uuid';
@calebporzio
calebporzio / HiddenInput.vue
Created May 2, 2018 14:47
Little Vue component for turning JSON into native HTML for inputs
<script>
import _ from 'lodash'
export default {
props: [ 'name', 'value' ],
methods: {
flatInputsFromDeepJson(item, key, h) {
if (typeof item === 'object') {
return _.flatMapDeep(item, (value, newKey) => {