Skip to content

Instantly share code, notes, and snippets.

View LeZuse's full-sized avatar
🚀
Scaling productboard.com

Tomas Ruzicka LeZuse

🚀
Scaling productboard.com
View GitHub Profile
@hcastro
hcastro / git-commit-assistant.mdc
Created April 2, 2025 15:13
git commit assistant
---
description: >
Git Commit Assistant rule to enforce clean,
structured, and traceable commit workflows. This rule should be applied
whenever a developer attempts to stage or commit changes. It ensures that:
- Commits are grouped logically and use conventional commit messages tied to Jira tickets.
- Feature branches are created from `development` with proper naming conventions.
- No direct work is allowed on `master`.
- Sensitive or excluded files (e.g., .env, secrets) are never accidentally committed.
This rule improves collaboration, auditability, and consistency across the codebase,
@gzomer
gzomer / Grammarly-gDocsCanvasInjectedCs.js
Last active November 19, 2024 00:33
Grammarly-gDocsCanvasInjectedCs - Google Docs Canvas integration
(function () {
Error;
console.log('aca')
function e(t, n, o) {
const r = o();
return t > 0 ? r.catch((r) => new Promise((e, t) => setTimeout(e, n)).then((r) => e(t - 1, n, o))) : r;
}
var t;
!(function (e) {
function t() {
@BigNerd
BigNerd / k9s.txt
Last active March 29, 2025 15:33
K9s column descriptions
View: Pods(<namespace>)[number of pods listed]
NAME pod name
READY number of pods in ready state / number of pods to be in ready state
RESTARTS number of times the pod has been restarted so far
STATUS state of the pod life cycle, such as Running | ... | Completed
CPU current CPU usage, unit is milli-vCPU
MEM current main memory usage, unit is MiB
%CPU/R current CPU usage as a percentage of what has been requested by the pod
%MEM/R current main memory usage as a percentage of what has been requested by the pod
@ChristopherA
ChristopherA / brew-bundle-brewfile-tips.md
Last active April 16, 2025 15:50
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.

@OliverJAsh
OliverJAsh / foo.md
Last active September 4, 2023 15:31
`Option` vs non-`Option`

Option vs non-Option

Option<T> non-Option (T | undefined)
accessing property userOption.map(user => user.age) userNullish?.age
calling a method userOption.map(user => user.fn()) userNullish?.fn()
providing fallback ageOption.getOrElse(0) ageNullish ?? 0
filter ageOption.filter(checkIsOddNumber) `ageNull
@jfcherng
jfcherng / st4-changelog.md
Last active August 18, 2024 07:25
Sublime Text 4 changelog just because it's not on the official website yet.
@mhulse
mhulse / .bash_profile
Created November 24, 2019 05:27
Dot files stuffs, putting here as I’m trying to switch to oh-my-zsh (https://github.com/mhulse/dotfizzles)
#!/usr/bin/env bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$(cd -P "$(dirname "$SOURCE")" >/dev/null 2>&1 && pwd)"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DOTFIZZLES="$(cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd)"
export DOTFIZZLES
@eanakashima
eanakashima / refs.md
Last active December 9, 2020 18:45
List of references from "Observability is for User Happiness," performance.now() 2019 (Amsterdam), and "Observability for Web Performance," #perfmatters 2020
@gregopet
gregopet / Jooq.java
Created November 1, 2019 20:23
jOOQ plain SQL examples
jooq.fetchOne("select * from film limit 1");
// type safety for fields
jooq.fetchOne("select * from film limit 1").get(FILM.TITLE);
jooq.fetchOne("select title || ' ' || description from film limit 1").get(0, String.class);
// parameters
jooq
.fetchOne("select title || ' ' || description from film where title like ? limit 1", "DINOSAUR%")
.get(0, String.class);
@Jabarabo
Jabarabo / githubpull.md
Last active April 2, 2025 08:15
Gist of a stolen gist