The files we need to build a basic root filesystem with Yocto. These are the support files for a YouTube video
This are the files from the second video, so make sure to first grab files from the first one, since here we're just listing the updated and new files.
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 | |
| # | |
| # Update Pihole's custom.list based on the "hostname" property of a container. | |
| # | |
| # Environment variables | |
| # - OVERRIDE_IP sets the IP of the container in Pihole's DNS records. Defaults to container IP in Docker network. | |
| # - DOMAIN_FILTER only triggers the updates on a match. If empty, it'll always update the records file. | |
| # - PIHOLE_CUSTOM_LIST_FILE /etc/hosts compatible DNS records file in format "IP hostname". | |
| # - PIHOLE_CONTAINER_NAME because we need to reload Pihole's internal resolver when making changes | |
| # |
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
| function register_watermarked_size() { | |
| add_image_size( 'watermarked', 550, 550, true ); // This is what should be uploaded | |
| } | |
| add_action( 'init', 'register_watermarked_size' ); | |
| class Watermark_Image { | |
| // The attachment meta array | |
| public $meta = array(); |
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 | |
| // Published under GPL | |
| // tutorial here: https://codeable.io/community/how-to-import-json-into-wordpress/ | |
| class Developer_Import { | |
| public function __construct() { | |
| add_action( 'wp_ajax_import_developer', array( $this, 'import_developer' ) ); |
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
| /** | |
| * Run this with `babel-node generateSVG.js` | |
| */ | |
| import fs from 'fs'; | |
| import path from 'path'; | |
| import { Readable } from 'stream'; | |
| import childProcess from 'child_process'; | |
| import phantomjs from 'phantomjs'; | |
| import im from 'imagemagick'; | |
| import tmp from 'tmp'; |
In order for Livereload to work, you need a Firefox or Chrome extension as Gulp doesn't inset it automatically. Alternatively, you can also manually put the livereload script in footer.php, just make sure to insert it only on development environment:
<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
Title pretty much sums it up. I wanted it to support drag and drop as well, which is why the .droparea is positioned absolutely; It's below the input field and the field itself gets its opacity set to 0, for better UX experience.
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
| #!/usr/bin/env bash | |
| # Messaging script for pushover.net (make sure you have an account) | |
| # put this somewhere in your $PATH and make it executable | |
| if [ $# -eq 0 ]; then | |
| echo "Usage: pushover <title> <message>" | |
| echo "Example: $ pushover \"This is the title\" \"This is a nice message\"" | |
| exit | |
| fi |
NewerOlder