There is a list of bash scripts which you can use for different purposes.
Creates 4 swap partitions by 1Gb each in RAM with some compression ratio. Useful when you don't have enough RAM and don't want to deal with swap on hard rive. Minimum 8Gb RAM is required, otherwise it is quite pointless.
Makes a screenshot of selected part of the screen, OCR it and puts text in the clipboard. Very useful when you need to translate some text in the application, but text is not selectable, or can't be copied to the clipboard.
Useful only for Raspberry PI owners, but also can be rewritten to any other platform.
The script checks Raspberry PI CPU temperature and sends GUI notification to an administrator workstation if the temperature is higher than defined $THRESHOLD
Convert jeprof.heap files, made by jemalloc library into svg graph. For further details about jemalloc visit http://jemalloc.net/ Jemalloc generates multiple files during application run, and this script converts every heap file into single svg file.
Before run:
- Install all debug information for all libraries used by application
- Compile or install jemalloc with enabled profiling
Run:
- Run you application with env variables:
LD_PRELOAD=/path/to/libjemalloc.so.1 -e MALLOC_CONF=prof:true,prof_prefix:/path/to/jeprof.out
Analyse:
- Convert all heap files using jemalloc_profiling.sh into svg and look at them to see mem leak.