The maintained version now lives at Installation Step-by-Step, part of scyto/homelab-docs.
Questions or troubleshooting? Continue the conversation here — a Q&A discussion where replies thread properly, answers can be marked, and everything is searchable. The 27 comments below stay exactly where they are as an archive.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type AnyFunction = (...args: any[]) => any | |
| function useEvent<T extends AnyFunction>(callback?: T) { | |
| const ref = useRef<AnyFunction | undefined>(() => { | |
| throw new Error("Cannot call an event handler while rendering.") | |
| }) | |
| // Or useInsertionEffect if it's React 18 | |
| useLayoutEffect(() => { | |
| ref.current = callback | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Real Media Library Disable Auto Expands | |
| if ( !function_exists( 'rml_custom_js' ) ) { | |
| function rml_custom_js(){ | |
| $list = wp_rml_root_childs(); | |
| $idList = []; | |
| foreach ($list as $listItem) { | |
| $idList[$listItem->getId()] = false; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Copyright 2023 Khalifah K. Shabazz | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a | |
| # copy of this software and associated documentation files (the “Software”), | |
| # to deal in the Software without restriction, including without limitation | |
| # the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
| # and/or sell copies of the Software, and to permit persons to whom the | |
| # Software is furnished to do so, subject to the following conditions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM php:7.4-cli-alpine | |
| # Install xdebug | |
| RUN apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS \ | |
| && pecl install xdebug \ | |
| && docker-php-ext-enable xdebug \ | |
| && apk del .phpize-deps | |
| WORKDIR /var/www/html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| build-container: | |
| stage: build | |
| image: | |
| name: moby/buildkit:rootless | |
| entrypoint: [ "sh", "-c" ] | |
| variables: | |
| BUILDKITD_FLAGS: --oci-worker-no-process-sandbox | |
| before_script: | |
| - | | |
| mkdir ~/.docker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Functions | |
| startElement | |
| endElement | |
| _wp_menu_output | |
| _add_themes_utility_last | |
| _wp_ajax_delete_comment_response | |
| _wp_ajax_add_hierarchical_term | |
| wp_link_manager_disabled_message | |
| _wp_credits_add_profile_link |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "presets": [ | |
| [ "env", { | |
| "modules": false, | |
| "targets": { | |
| "browsers": [ | |
| "last 2 Chrome versions", | |
| "last 2 Firefox versions", | |
| "last 2 Safari versions", | |
| "last 2 iOS versions", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Extension package to add on Ubuntu 14.04 | |
| sudo apt-get install libxml2-dev libbz2-dev libmcrypt-dev libreadline-dev libxslt1-dev autoconf -y | |
| # Extension package to add on Ubuntu 18.04 | |
| sudo apt-get install libssl-dev | |
| # Extension package to add on Ubuntu 20.04 | |
| sudo apt install -y pkg-config libssl-dev libsqlite3-dev libbz2-dev libxml2-dev libcurl4-openssl-dev libonig-dev libpq-dev libreadline-dev libxslt1-dev libzip-dev libsodium-dev libwebp-dev | |
| # +apxs2 | |
| sudo apt-get install apache2-dev -y |
NewerOlder