<NotepadPlus> | |
<UserLang name="Gradle" ext="gradle"> | |
<Settings> | |
<Global caseIgnored="yes" /> | |
<TreatAsSymbol comment="yes" commentLine="yes" /> | |
<Prefix words1="no" words2="no" words3="no" words4="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Delimiters">"'0"'0</Keywords> | |
<Keywords name="Folder+"></Keywords> |
# dashing.js is located in the dashing framework | |
# It includes jquery & batman for you. | |
#= require dashing.js | |
#= require_directory . | |
#= require_tree ../../widgets | |
console.log("Yeah! The dashboard has started!") | |
Dashing.on 'ready', -> |
#!/bin/bash | |
# copyrights this guy http://ubuntuforums.org/showthread.php?t=1544346 | |
# ripdvd.sh | |
# input must be: | |
# - <devicename> (which can be anything lsdvd takes) | |
# - <outputfolder> where do you want the ripped series | |
# - <outputname> the base name of the output | |
# - <startsfrom> where to start counting if you use 0 it starts at 1 | |
# (useful for seasons spanning over multiple disks) |
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.
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
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, | |
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:
# Source: http://fvue.nl/wiki/Bash:_Error_handling | |
# | |
#!/bin/bash -eu | |
# -e: Exit immediately if a command exits with a non-zero status. | |
# -u: Treat unset variables as an error when substituting. | |
(false) # Caveat 1: If an error occurs in a subshell, it isn't detected | |
(false) || false # Solution: If you want to exit, you have to detect the error yourself | |
(false; true) || false # Caveat 2: The return status of the ';' separated list is `true' | |
(false && true) || false # Solution: If you want to control the last command executed, use `&&' |
# 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 |