Skip to content

Instantly share code, notes, and snippets.

@jdoubleu
jdoubleu / DriverHelper.ps1
Last active October 7, 2024 09:38
Windows RNDIS driver for Linux/RaspberryPi
# script parameters
param(
[ValidateSet("Sign", "UntrustCertificates")]
[string] $Mode = "Sign",
[string] $InfFile,
[string] $CommonName = "linux.local",
[switch] $Force
)
@jdoubleu
jdoubleu / wordpress_shortcode.php
Created July 1, 2016 13:00
Get attributes of child shortcodes in parent.
<?php
// Currently in: Container
$mycontent = "Some content from before";
// Attributes of Elements
$elements = array();
// Register shortcode
add_shortcode('container_element', function($atts, $content) use(&$elements) {
$atts = shortcode_atts(array(