Skip to content

Instantly share code, notes, and snippets.

View itsmikita's full-sized avatar
💭
Jemanden passiert etwas

It's Mikita itsmikita

💭
Jemanden passiert etwas
View GitHub Profile
@itsmikita
itsmikita / fontsinstall.sh
Last active June 15, 2025 08:43
(Arch) Linux CLI to install multiple fonts simultaneously
#!/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
/**
* 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
* //
@cosismo
cosismo / BlinkRGB5050-NodeMCU-ESP-S3-12K.ino
Last active June 16, 2023 17:04
Blink rgb 5050 led AI Thinker NodeMCU-ESP-S3-12K-Kit ESP32S3 ESP32 S3
/* 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
// 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) => {
@sbe-arg
sbe-arg / podman-wordpress-mariadb.sh
Created March 28, 2022 09:03
Wordpress + MariadDB with podman local development
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
@estruyf
estruyf / vscode-theme-variables.css
Created January 28, 2022 13:21
All VS Code theme variables
:root {
--vscode-font-weight:normal;
--vscode-font-size:13px;
--vscode-editor-font-family:&quot;Operator Mono Lig&quot;, &quot;Cascadia Code&quot;;
--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;
@jefferyb
jefferyb / insecure-registries-with-podman.md
Created January 19, 2022 04:03
Configure podman to work with insecure registries... Using MicroK8s’ built-in registry

How to configure podman to work with insecure registries

Working with MicroK8s’ built-in registry

$ 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
@getflourish
getflourish / Import CustomElements from .html files.md
Last active June 23, 2024 15:01
Import CustomElements from .html files

Import CustomElements from .html files

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:

@ValeriiVasyliev
ValeriiVasyliev / Woocommerce Javascript events.md
Last active January 7, 2025 12:26
Woocommerce Javascript events

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' );
@nandorojo
nandorojo / main.js
Created May 23, 2020 02:40
Expo Electron main.js
// 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'