Skip to content

Instantly share code, notes, and snippets.

View tebb's full-sized avatar
🎯
Focusing

tebb

🎯
Focusing
View GitHub Profile
@tebb
tebb / semantic-commit-messages.md
Last active May 18, 2025 22:05 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@tebb
tebb / codeswing.json
Created January 2, 2021 18:42
Just testing the scratch app.
{
"scripts": [],
"styles": []
}
@tebb
tebb / nothing.blade.php
Last active September 10, 2020 19:49
Play PHP Gist
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pagina X</title>
</head>
<body>
Nothing to see here. Move along.
</body>
@tebb
tebb / Betaflight for ubuntu
Last active September 21, 2020 11:07 — forked from wlgrd/Betaflight for ubuntu
How to set up betaflight fc with Ubuntu
#### Adapted to allow pasting into a bash shell.
# 1. Create a rule for the DFU
(echo '# DFU (Internal bootloader for STM32 MCUs)'; echo 'ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="0664", GROUP="plugdev"') | sudo tee /etc/udev/rules.d/45-stdfu-permissions.rules > /dev/null
## - Model ID *may be* 5740,
## - which *may be* HappyModel Mobula6 Tiny Whoop Drone or it's F4, All In One, Flight Controller
MODEL_ID="5740"
# 2. Filter connection info to check MODEL_ID *is* your model, for example by unpluggin and pluging-in the flight controller while udevadm is active
@tebb
tebb / machine.js
Last active July 28, 2020 02:12
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@tebb
tebb / machine.js
Last active July 28, 2020 01:23
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@tebb
tebb / cache-bins.sh
Created July 20, 2020 22:58
Generate a list of cache bins on a Drupal 8 system
#!/bin/bash
find . -type f -name *.services.yml | \
xargs sed -E -n 's/.*cache\.(.*):.*/\1/p' | \
grep -v "backend\|html.twig" | \
sort -u | \
awk -vORS=\',\' '{ print $1 }' | \
sed "s/,'$//" | sed "s/^/'/"
@tebb
tebb / css-typing-effect.markdown
Last active July 11, 2020 11:49
CSS Typing Effect