Logo

dev-resources.site

for different kinds of informations.

The 3 Rules that 10x my Productivity (1 min read)

Published at
12/30/2024
Categories
productivity
programming
environment
devops
Author
mmvergara
Author
9 person written this
mmvergara
open
The 3 Rules that 10x my Productivity (1 min read)

Do it in the keyboard as much as possible

Now I'm not gonna say learn vim for editing and browser. I don't care how are you going to do it but just keep in mind that basically less mouse == Fastah, thats it. moving on..

3 Keys maximum to navigate to something

This doesnโ€™t mean every action should be limited to three steps, but rather that commonly used actions should require fewer keystrokes. The more frequently you perform an action, the fewer key presses it should take to complete it.

Think of this as a philosophy

Scripting Dev Environment

Example when you're developing a full-stack app, you often need to run multiple commands like npm run dev, docker compose, bun run dev, etc. While it might only take a few seconds, you'll likely be working on the same project for days, and those seconds quickly add up.

To automate this process, here's a simple script (courtesy of ChatGPT) to set up your environment:

#!/bin/bash
tmux kill-server
tmux new-session -d -s main
tmux split-window -h
tmux split-window -v
tmux split-window -v
tmux send-keys -t main:0.1 "docker compose up -d && bun run dev" C-m
tmux send-keys -t main:0.2 "cd frontend && bun run dev" C-m
tmux send-keys -t main:0.3 "npx drizzle-kit studio" C-m
tmux send-keys -t main:0.0
tmux select-pane -t main:0.0
tmux attach -t main
Enter fullscreen mode Exit fullscreen mode

now a simple bash run_dev.sh sets you up for coding.

environment Article's
30 articles in total
Favicon
Understanding and Fixing the Externally-Managed-Environment Error
Favicon
Optimizing Environmental Resource Management with IoT and AI Integration
Favicon
The 3 Rules that 10x my Productivity (1 min read)
Favicon
Env-Core: An Easy Way to Validate Environment Variables in Node.js Projects
Favicon
Handling Environment Variables in Vite
Favicon
PDF Scan File Size: What To Do About It.
Favicon
Anaconda Installation and Virtual Environments: A Comprehensive Guide for Windows, Linux, and macOS
Favicon
A greener planet with tech
Favicon
Setting Up a Development Environment Using Laravel Sail (Docker)
Favicon
Daniel Siegel Alonso Suggests Sustainable Practices for the Music Industry
Favicon
@Environment variables
Favicon
Ongoing Carbon Emission Reduction Efforts Beneficial to Global Blue Ammonia Market Growth
Favicon
Parsing structured environment variables in Rust
Favicon
Sustainable Practices in Sports Turf Manufacturing: Reducing Environmental Footprint
Favicon
Adding Environment Variables to Your Webpack Project
Favicon
Building Environmental Analyzer using Lyzr SDK
Favicon
Playing with Python in node
Favicon
PHP on Manjaro with ASDF
Favicon
Harnessing Solar Power: The Key to Environmental Protection
Favicon
Navigating Challenges in Scaling Your Engineering Team: Strategies for Success
Favicon
Displaying air quality data in the terminal
Favicon
Dotenv: Python app environment variable vs. Linux environment variable
Favicon
Uncaught ReferenceError: process is not defined
Favicon
How to Get Environment Specific Configuration at Runtime in Angular
Favicon
How cryptocurrency destroys environment
Favicon
Python Virtual Environments
Favicon
shell ่ฎŠๆ•ธ่ˆ‡็’ฐๅขƒ่ฎŠๆ•ธ
Favicon
The intersectionality of web performance
Favicon
Setting up an Alias for a Directory in Apache2 Server
Favicon
PyEnv & Poetry - BFFs ๐Ÿ’–

Featured ones: