A Dashing widget for displaying the number of current visitors (in real time) to your website, as reported by Google Analytics.
This widget is a fork of https://gist.github.com/mtowers/5986576
package main | |
import ( | |
"io/ioutil" | |
"log" | |
"github.com/naoina/toml" | |
"github.com/naoina/toml/ast" | |
) |
from influxdb import InfluxDBClient | |
import random | |
from time import sleep | |
import sys | |
client = InfluxDBClient('localhost', 8086, 'root', 'root', 'metrics') | |
x = 0 | |
while True: |
#include <stdio.h> | |
#include <math.h> | |
const double Pi = 3.14159265359; | |
// Standard Normal probability density function | |
// Normal PDF(x) = exp(-x*x/2)/{sigma * sqrt(2 * Pi) } | |
double Normal_PDF(const double & x) { | |
return (1.0/(double)pow(2 * Pi, 0.5)) * exp(-0.5 * x * x); | |
} |
apt-get install -y pkg-config python-pip git libssl-dev zlib1g-dev cmake python-dev libffi-dev libssh2-1-dev | |
git clone https://github.com/libgit2/libgit2 \ | |
&& cd libgit2 \ | |
&& git checkout tags/v0.22.0 \ | |
&& mkdir build \ | |
&& cd build \ | |
&& cmake .. -DCMAKE_INSTALL_PREFIX=/usr \ | |
&& cmake --build . --target install \ | |
&& cd ../.. |
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org | |
rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm | |
yum update | |
yum --enablerepo=elrepo-kernel install -y kernel-lt | |
sed -i 's/default=1/default=0/' /etc/grub.conf | |
reboot |
A Dashing widget for displaying the number of current visitors (in real time) to your website, as reported by Google Analytics.
This widget is a fork of https://gist.github.com/mtowers/5986576
<?xml version="1.0" encoding="UTF-8"?> | |
<zabbix_export> | |
<version>2.0</version> | |
<date>2013-12-03T16:57:07Z</date> | |
<groups> | |
<group> | |
<name>Templates</name> | |
</group> | |
</groups> | |
<templates> |
A Dashing widget that checks whether a server is responding to either an http or ping request. It displays either a check or alert depending on the response.
class Dashing.Pie extends Dashing.Widget | |
@accessor 'value' | |
onData: (data) -> | |
@render(data.value) | |
render: (data) -> | |
if(!data) | |
data = @get("value") | |
if(!data) |
#!/bin/bash | |
# INSTALL ORACLE INSTANT CLIENT # | |
################################# | |
# NOTE: Oracle requires at least 1176 MB of swap (or something around there). | |
# If you are using CentOS in a VMWare VM, there's a good chance that you don't have enough by default. | |
# If this describes you and you need to add more swap, see the | |
# "Adding a Swap File to a CentOS System" section, here: | |
# http://www.techotopia.com/index.php/Adding_and_Managing_CentOS_Swap_Space |