asheeshr / bash-scripts Goto Github PK
View Code? Open in Web Editor NEWSmall utilities that come handy
License: GNU General Public License v2.0
Small utilities that come handy
License: GNU General Public License v2.0
Following on from your comment, the distro I'm using is Lubuntu and it does not have Pulseaudio as default. One would have to install it additionally. See https://help.ubuntu.com/community/Lubuntu/Setup#Sound for that.
So, rather than just mentioning paplay
, you could have a comment in the customization section at the top informing people that your script needs pulseaudio though I agree that most other distros would have pulseaudio.
Again, re. the location of the sound files, a comment would be useful to let people be aware that they need to (or could) set things up for their specific systems.
A similar situation is in line #98 where you refer to /usr/share/icons/default.kde4/128x128/
. Would that be on Ubuntu distros other than Kubuntu (unless someone has installed the KDE environment)?
Anyway, I'm not knowledgeable on sound in Ubuntu but running aplay /usr/share/sounds/alsa/*.wav
works for me in a terminal and so should work in your script.
Dear Asheesh,
I think adding a notification type (to call a web-service/php script) might be an amazing option.
User case : users can call email web services, sms etc. to notify outside of the system.
Testing your script with params
./notify-highload.sh -a -g -v -p 60 -l 70 -b 5
I expect notification on 70% CPU use but nothing, even thou CPU hits 101%
What am I doing wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.