Skip to content

Instantly share code, notes, and snippets.

@jdoubleu
jdoubleu / DriverHelper.ps1
Last active January 25, 2024 21:44
Windows RNDIS driver for Linux/RaspberryPi
View DriverHelper.ps1
# 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.
View wordpress_shortcode.php
<?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(