Automating SFTP file polling with Ruby
Import files securely from SFTP servers with Ruby's Net::SFTP, using strict host checks, atomic local writes, and explicit error handling.
Kevin van Zonneveld
Empower your development workflow with our curated collection of quick tips and practical tutorials. From file handling and image processing to API integration and open source tools, our dev tips cover a wide range of topics to enhance your coding skills and boost productivity. Whether you’re a beginner or an experienced developer, dive in to find efficient solutions for your projects.
Import files securely from SFTP servers with Ruby's Net::SFTP, using strict host checks, atomic local writes, and explicit error handling.

Build an Angular upload form with tus-js-client and a local tus server, then pause, reload, and resume uploads from the bytes already stored on disk.

Optimize PNGs locally in the browser with jSquash Oxipng, a Web Worker, and Vite, with input limits, cancellation, and downloadable results.

Read files with Java memory mapping, compute a SHA-256 checksum, and compare buffered reads while accounting for size limits and memory costs.

Compare pngquant, OptiPNG, and Sharp in Node.js using repeatable PNG fixtures, measured sizes and times, and checks for pixels and transparency.
