Skip to main content

Posts

Showing posts with the label cli

The ultimate tool for finding and replacing patterns in files

Are you looking for a simple and powerful tool that can help you find and replace patterns in files? If so, you might want to check out  FindReplace , a command line tool that allows you to search and replace text or data structures in any file using JSON, YAML,  CSON , or plain text formats. FindReplace  is a Rust-based tool that is easy to install and use. You can download it from  crates.io  or  GitHub , or build it from source using Cargo. Once installed, you can use it by running the command findreplace followed by the pattern, the substitute, and the file path. For example, if you want to replace all occurrences of “foo” with “bar” in a file named file.txt, you can run the command: findreplace 'foo' 'bar' file.txt FindReplace also supports using JSON, YAML, or CSON files as substitutes. This means you can use these formats to define complex data structures that can be used to replace multiple patterns at once. For example, if you have a file nam...

The smart way to clone GitHub sub-directories!

Do you want to clone a sub-directory of a GitHub repository without downloading the whole repo? Do you want to save time and bandwidth by cloning only the part of the repo that you need? If yes, then you need  clone-github-subdir , a handy command-line tool that lets you do just that! clone-github-subdir  is a simple and fast way to clone any sub-directory of a GitHub repo to your local machine. It is useful for many scenarios, such as: You want to try out a sample project or a tutorial from a large repo, but you don’t want to clone the entire repo. You want to reuse some code or files from a sub-directory of another repo, but you don’t want to fork or clone the whole repo. You want to contribute to a sub-directory of an open-source repo, but you don’t want to clone the whole repo and deal with unnecessary files. With  clone-github-subdir , you can clone any sub-directory of a GitHub repo with just one command. You can also choose to clone only the current...

The 'localhost.run', an alternative of 'ngrok'

What is ngrok? ngrok is a cross-platform application that enables developers to expose a local development server to the Internet with minimal effort. The software makes your locally-hosted web server appear to be hosted on a subdomain of ngrok.com , meaning that no public IP or domain name on the local machine is needed. Problem with ngrok Usually ngrok CLI tool and ngrok.com URL are blocked on corporate systems. Although there are many alternatives of ngrok but all of them requires their specific CLI tool to be downloaded but those fails to pass through corporate network. Most suitable alternative of ngrok Now we have got https://localhost.run/ as the best alternative of ngrok because of no specific CLI tool is required to be downloaded. How to setup localhost.run? To setup you need to generate SSH key and add it to the ssh-agent. Follow this article, Generating a new SSH key and adding it to the ssh-agent to do that. How to use localhost.run? Open the folder which you want to...