Category Archives: Technologie

How to slow down a command line process on macOS?

On macOS you have the classical nice command similar to linux to reduce the process priority. You can use it like this:

nice -n 20 myProcess

The priority can be adjusted over a range of -20 (the highest – the quickest) to 20 (the lowest – the slowest).

But you can go further and reduce also the disk IO. There is no ionice command on macOS but you can use taskpolicy as described in this article:

taskpolicy -b myProcess

With the 2 commands I was able to divide per 5 the speed of a process (it’s sometimes useful when you want to simulate a degradation of the runtime environment)

Clone all repositories from a github organization

Tomorrow I will attend the first Hackergarten at Paris.
This is an event where active open-source committers can met potential contributors and help them to submit a (first) contribution.
I’ll be here to help those who would like to contribute on JenkinsCI and Apache Maven.
To prepare this event I wanted to prepare a checkout of all sources and a local repository with all required dependencies to avoid to see contributors losing their time by downloading the earth with Maven or checking out Subversion (and to not be blocked if we had some network issues).
For Maven which is hosted on Subversion it is long but easy because we have a special SVN directory using svn:externals to checkout all trunks in one step : https://svn.apache.org/repos/asf/maven/trunks/
But for Jenkins with several thousands of plugins and thus git repositories it is less easy to clone all of them. Continue reading Clone all repositories from a github organization