$ microk8s enable registry
# or if you want to specify the amount of storage to be added. E.g., to use 40Gi:
$ microk8s enable registry:size=40Gi
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/bash | |
# Function to display usage | |
usage() { | |
echo "Usage: $0 [-s] <file_or_directory_path>..." | |
echo " -s Install fonts system-wide (requires sudo)" | |
exit 1 | |
} | |
# Function to install fonts and update font cache |
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
/** | |
* 8x8 monochrome bitmap fonts for rendering | |
* Author: Daniel Hepper <[email protected]> | |
* | |
* License: Public Domain | |
* | |
* Based on: | |
* // Summary: font8x8.h | |
* // 8x8 monochrome bitmap fonts for rendering | |
* // |
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
/* Simple Arduino LED blink example sketch for built-in | |
RGB 5050 LED on the AI Thinker NodeMCU-ESP-S3-12K-Kit | |
This example is in the Public Domain | |
Cosismo IoT | Github: cosismo | |
*/ | |
#define led_r_pin 5 | |
#define led_g_pin 6 | |
#define led_b_pin 7 |
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
// Tag can be string or a function if we parse the functional component | |
type Tag = string | ((props: any, children: any[]) => JSX.Element); | |
// Attributes of the element – object or null | |
type Props = Record<string, string> | null; | |
// Element children – return value from the h() | |
type Children = (Node | string)[]; | |
export const h = (tag: Tag, props: Props, ...children: Children) => { |
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
podman pod create --publish 8080:80 --name demo.wp.1 | |
podman run -d --name wp.db --pod demo.wp.1 \ | |
-e MARIADB_USER=mariadb \ | |
-e MARIADB_PASSWORD=mariadb \ | |
-e MARIADB_ROOT_PASSWORD=mariadb \ | |
docker.io/library/mariadb | |
podman exec -it wp.db \ | |
mysql -e "CREATE DATABASE wordpress;" --user=root --password=mariadb |
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
:root { | |
--vscode-font-weight:normal; | |
--vscode-font-size:13px; | |
--vscode-editor-font-family:"Operator Mono Lig", "Cascadia Code"; | |
--vscode-editor-font-weight:normal; | |
--vscode-editor-font-size:15px; | |
--vscode-foreground:#f3eff5; | |
--vscode-errorForeground:#f48771; | |
--vscode-descriptionForeground:rgba(243, 239, 245, 0.7); | |
--vscode-icon-foreground:#c5c5c5; |
This is the technical implementation of the idea and concept described in my article “Why don’t we use HTML to author web components?”
Instead of using template literals, constructors and other specifics to define CustomElements, this is a proposal to just use standard HTML to define CustomElements.
The goal is to import CustomElements like this:
Woocommerce Javascript events
Woocommerce Checkout JS events
$( document.body ).trigger( 'init_checkout' );
$( document.body ).trigger( 'payment_method_selected' );
$( document.body ).trigger( 'update_checkout' );
$( document.body ).trigger( 'updated_checkout' );
$( document.body ).trigger( 'checkout_error' );
$( document.body ).trigger( 'applied_coupon_in_checkout' );
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
// electron/main/index.js | |
// in your expo project, after following the docs instructions, run: | |
// yarn expo-electron customize | |
// then set your electron/main/index.js to look like this | |
import { BrowserWindow, Tray, app } from 'electron' | |
import * as path from 'path' | |
import { format as formatUrl } from 'url' | |
import debug from 'electron-debug' |
NewerOlder