SShortSingh.
Back to feed

A 26-line Bash script can replace a full Linux screen recording app

0
·1 views

A Linux user with 15 years of experience shared how they replaced SimpleScreenRecorder, a mature C++/Qt application with over 15,000 lines of code, with a 26-line Bash script using ffmpeg. The script handles screen capture at 1600x900 resolution with audio and saves output as an MKV file, requiring no GUI or settings window. The author runs a minimal Linux setup with CrunchBang++, Openbox, and Tint2 on a 2021 HP laptop that boots in roughly 17 seconds. The piece argues that underlying command-line tools like ffmpeg do the actual work regardless of whether they are launched from a GUI or a shell script. The author frames the script not as an argument against GUI applications, but as a reminder that a simple terminal-based solution can sometimes be the most practical choice.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Tool Turns Your GitHub Activity Into a FIFA Ultimate Team Player Card

A GitHub repository allows developers to convert their coding activity into a visually styled FIFA Ultimate Team card. The tool evaluates six metrics drawn directly from a user's live GitHub data, including commits, pull requests, repository stars, code reviews, and language diversity. Rather than benchmarking against other developers, the card grades each user against their own profile, so strengths and weaknesses are relative to the individual. Card ratings are capped at 88 through raw stats alone, with scores in the 90s reserved for developers with years of sustained contribution and lasting influence. The project has attracted attention among tech enthusiasts looking for a novel way to visualise their open-source footprint during the current football season.

0
ProgrammingDEV Community ·

Developer explains Solana CPI and PDA signer mechanics through four-day build log

A developer documented four days of building Solana programs that transfer SOL and tokens, focusing on Cross-Program Invocations (CPIs) and Program Derived Address (PDA) signers. CPIs allow one Solana program to call another, using a CpiContext that specifies the target program, required accounts, and instruction amount. PDA signers enable programs to authorize transactions autonomously using deterministic seed-based addresses, without any private key held by a human. The developer built a vault program where users deposit SOL via wallet signature and withdraw via program-controlled PDA signing, with seed mismatches blocking unauthorized access. A Token-2022 mint was also configured so only a PDA holds mint authority, demonstrating how DeFi primitives like AMMs, lending protocols, and DAO treasuries enforce rules entirely through program logic.

0
ProgrammingDEV Community ·

Guide: Zero-Downtime NestJS Deployment on DigitalOcean Using GitLab CI/CD and PM2

A detailed production-grade walkthrough has been published for deploying a NestJS backend to DigitalOcean with zero downtime. The setup uses Ubuntu 24.04, Node.js v18, PM2 in cluster mode, and Nginx as a reverse proxy, with GitLab CI/CD automating the deployment pipeline. The guide recommends installing Node.js directly from official binaries rather than using NodeSource scripts, which can install unintended versions. Security best practices are emphasized, including running deployments under a dedicated non-root user called 'deployer' instead of root. The walkthrough also covers SSL configuration via Certbot and proper Nginx proxy settings to ensure uninterrupted request handling during deployments.

0
ProgrammingDEV Community ·

Glass Box vs. Black Box: Why Query Transparency Matters in Backend Development

Backend developers commonly use database abstractions ranging from raw SQL to ORMs, but these tools vary widely in how much visibility they offer into actual query execution. A 'black box' approach hides the generated queries, making it difficult to diagnose performance issues or incorrect results during production incidents. In contrast, a 'glass box' approach prioritizes readable, deterministic queries that are pre-compiled and inspectable, reducing runtime surprises. The article argues that opacity in the data layer turns routine debugging into guesswork, especially under time pressure. Choosing transparent data access patterns can ease onboarding, improve performance tuning, and make refactoring safer for development teams.

A 26-line Bash script can replace a full Linux screen recording app · ShortSingh