start new:
tmux
start new with session name:
tmux new -s myname
| 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. |
| -- 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%' |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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.
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.
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.