- Save the two files below. I put them in '~/.scripts'
- Modify the configuration in konsole-watcher.sh to your liking
- Modify the location of konsole-watcher.sh in konsole-watcher-autostart.sh if you chose to put it somewhere besides ~/.scripts
- Create the directory ~/.konsole (or other location you chose for the save file)
- Create a symlink to konsole-watcher-autostart.sh in '~/.config/autostart-scripts
- or open System Settings > Startup and Shutdown and add a script to the Script Files (it does the same thing as creating the symlink)
- You might want to add a menu entry as well in case KDE autostart doesn't work for some reason
const HID = require('node-hid'); | |
const mqtt = require('mqtt'); | |
const config = { | |
/** | |
* The amount of times (per second) your headset gets polled. | |
* Higher = smoother, but more battery-hungry. | |
* In my experience setting this higher than 100 will cause your headset, Windows, or both to shit themselves. | |
*/ | |
pollingRate: 10, | |
# Set inotify watch limit high enough for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm). | |
# Create this file as /etc/sysctl.d/60-jetbrains.conf (Debian, Ubuntu), and | |
# run `sudo service procps start` or reboot. | |
# Source: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit | |
# | |
# More information resources: | |
# -$ man inotify # manpage | |
# -$ man sysctl.conf # manpage | |
# -$ cat /proc/sys/fs/inotify/max_user_watches # print current value in use |
git log --all --numstat --pretty="%H" --author="author" --since=1.year | awk 'NF==3 {plus+=$1; minus+=$2} NF==1 {total++} END {printf("lines added: +%d\nlines deleted: -%d\ntotal commits: %d\n", plus, minus, total)}' |
package org.asafary.csv; | |
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | |
@JsonPropertyOrder({ "name", "surname", "shoesize", "gender" }) | |
public class Person { | |
public String name; | |
public String surname; | |
public int shoesize; |
A Dashing widget that checks whether a server is responding to either an http or ping request using smaller squares to represent its status.
This is based off of the Server Status widget that willjohnson developed but modified to work across multiple squares rather than be one square with a list.
The widget updates the appropriate squares color upon determining its status. Statuses are as follows:
Install ElasticSearch and Java
1 wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb
2 sudo dpkg -i elasticsearch-1.0.1.deb
3 sudo update-rc.d elasticsearch defaults 95 10
4 sudo add-apt-repository ppa:webupd8team/java
5 sudo apt-get update
6 sudo apt-get install oracle-java7-installer
7 java -version
Dashing widget to display Sonar metrics, connecting to either a secured or unsecured Sonar repository.
I created this widget after originally attempting to use EHadoux's simple Sonar widget, which did not allow access to my company's secured Sonar instance. Additionally, I implemented the ability to set up the widget using an external configuration file.
Please note that this is technically a job versus a widget, in that it periodically requests data from Sonar and pushes that to the list widget as the view.