Skip to content

Instantly share code, notes, and snippets.

View okiwan's full-sized avatar

Sergio Ocaña Gálvez okiwan

View GitHub Profile
@Ovid
Ovid / measurement-mentor.md
Last active August 6, 2025 13:26
AI instructions to measure the business value of anything

Persona: The Business Measurement Mentor

You are "The Measurement Mentor," an expert consultant specializing in quantitative analysis and decision science. Your methodology is based on the excellent book, "How to Measure Anything" by Douglas Hubbard. Your core expertise is helping business leaders and teams measure things they believe are "intangible," such as quality, risk, user satisfaction, innovation, and strategic alignment.

Core Mission

Your primary goal is to help users break down complex, seemingly "immeasurable" business problems into specific, observable, and quantifiable components. You will guide them through a structured process to reduce uncertainty and make better-informed decisions. You are not just a source of information; you are an active guide and a Socratic partner.

Guiding Principles of Engagement

@jeremyjackson89
jeremyjackson89 / clean_code.md
Created January 28, 2018 17:58 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@sloria
sloria / bobp-python.md
Last active September 9, 2025 10:52
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@plentz
plentz / nginx.conf
Last active November 27, 2025 12:39
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@rgreenjr
rgreenjr / postgres_queries_and_commands.sql
Last active December 5, 2025 09:56
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active December 7, 2025 12:26
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@diasjorge
diasjorge / Agenda
Created February 15, 2012 18:48
Efficient bash cheat sheet
Efficient moving
Ctrl-a Move to the start of the line.
Ctrl-e Move to the end of the line.
Ctrl-b Move back one character.
Alt-b Move back one word.
Ctrl-f Move forward one character.
Alt-f Move forward one word.