Skip to content

Instantly share code, notes, and snippets.

View trickypr's full-sized avatar

trickypr

View GitHub Profile
import { signal, effect, batch } from 'https://cdn.jsdelivr.net/npm/@preact/[email protected]/dist/signals-core.mjs'
/** @import { Signal } from '@preact/signal-core' */
/**
* @param {string} initialStateDef
* @param { {name: string, value: string}[] } attributes
*/
function createEntry(initialStateDef, attributes) {
const state = Object.fromEntries(
Object
font pango:monospace 8.000000
floating_modifier Mod4
default_border normal 2
default_floating_border normal 2
hide_edge_borders none
focus_wrapping no
focus_follows_mouse yes
focus_on_window_activation smart
mouse_warping output
workspace_layout default
@trickypr
trickypr / sources-tree-js.patch
Created February 10, 2023 10:26
Log all sourcemap loads
diff --git a/devtools/client/debugger/src/reducers/sources-tree.js b/devtools/client/debugger/src/reducers/sources-tree.js
index 22a9de206d9a0e9f46d06f91044e93df9e12aad8..0640e2238d8c4c81d7c177c544ed5b5e90d7551d 100644
--- a/devtools/client/debugger/src/reducers/sources-tree.js
+++ b/devtools/client/debugger/src/reducers/sources-tree.js
@@ -250,6 +250,8 @@ function isSourceVisibleInSourceTree(
}
function addSource(threadItems, thread, source) {
+ console.log(source.id)
+
@trickypr
trickypr / style.css
Created July 13, 2022 00:45
Firefox - .toolbarbutton-icon style
.toolbarbutton-icon {
margin-left: 8px;
padding: 4px !important;
margin-inline-end: 0 !important;
width: auto !important;
height: auto !important;
border-radius: var(--toolbarbutton-border-radius) !important;
}
@trickypr
trickypr / README.md
Last active February 28, 2021 06:55
Dot Shield performance comparisions
@trickypr
trickypr / initialiser.sh
Last active July 18, 2020 00:29
An initialiser for the linux game console
# Initialiser for the Linux Game Console
# The goal of this script file is to
# download and run the proper installer
# Repo: https://github.com/trickypr/linux-game-console
#
# Run with: curl https://tinyurl.com/linuxgc -L | sh
installedbefore="false"
installationuser=$(whoami)
@trickypr
trickypr / Getting started with a 16 x 16 LED matrix.md
Last active December 21, 2019 01:19
Learning how to use a 16 x 16 LED dot matrix display with an Arduino

Getting started with a 16 x 16 LED dot matrix

What you need

  • A 16x16 LED / Dot matrix that uses a 74HC138 decoder IC
  • An Arduino
  • Something to program the Arduino with

What you would know

I expect you to have a reasonable understanding of the Arduino and how to program it. I recommend Great Scott's Arduino 101, 102 and 103 tutorials for getting started with the Arduino.

@trickypr
trickypr / pihole.sh
Last active July 10, 2019 16:00
The code for installing unifi on a rasberry pi
echo "================="
echo "Installing Pi-hole®"
echo ""
echo "Install and configure"
curl -sSL https://install.pi-hole.net | bash
echo ""
echo "Change password"
pihole -a -p