Skip to content

Instantly share code, notes, and snippets.

-----> Installing dependencies with pip
Obtaining file:///app (from -r requirements.txt (line 1))
error in cdr-stats setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
Complete output from command python setup.py egg_info:
error in cdr-stats setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /app
pritunl:
build: pritunl/.
privileged: true
volumes_from:
- pritunl-data
links:
- "mongo:mongodbserver"
ports:
- "1194:1194"
- "9700:9700"
CLIENT:
var SRC_PORT = 6025;
var PORT = 6024;
var MULTICAST_ADDR = '239.255.255.250';
var dgram = require('dgram');
var server = dgram.createSocket("udp4");
server.bind(SRC_PORT, function () {
setInterval(multicastNew, 4000);
#! /bin/sh
### BEGIN INIT INFO
# Provides: streamradio
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Manage my cool stuff
### END INIT INFO
@vartana
vartana / test
Created September 29, 2016 20:26
<!doctype html>
<html xmlns="http://www.w3.org/TR/REC-html40" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mv="http://macVmlSchemaUri" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word">
<head>
<title></title>
<meta content="text/html; charset=macintosh" http-equiv="Content-Type" />
<meta content="Word.Document" name="ProgId" />
<meta content="Microsoft Word 14" name="Generator" />
<meta content="Microsoft Word 14" name="Originator" />
<link href="EXCITING%20NEWS%20NEW%20DOCTOR%20IN%20THE%20HOUSE%20FLYER_files/filelist.xml" rel="File-List" />
<link href="EXCITING%20NEWS%20NEW%20DOCTOR%20IN%20THE%20HOUSE%20FLYER_files/editdata.mso" rel="Edit-Time-Data" /><!--[if !mso]>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>25lbeolsb7hxmneq2a90b9r9gpdlv7zv_EXCITING+NEWS+NEW+DOCTOR+IN+THE+HOUSE+FLYER</title>
<meta content="text/css" http-equiv="Content-Style-Type" />
<style type="text/css"><!--
body {
margin: 96px 96px 96px 96px;
background-color: #ffffff;
}
/app/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Parser.js:77
throw err; // Rethrow non-MySQL errors
^
TypeError: Cannot read property 'value' of undefined
at /app/config/bootstrap.js:20:18
at wrapper (/app/node_modules/lodash/index.js:3592:19)
at applyInOriginalCtx (/app/node_modules/waterline/lib/waterline/utils/normalize.js:421:80)
at wrappedCallback (/app/node_modules/waterline/lib/waterline/utils/normalize.js:324:18)
at callback.success (/app/node_modules/waterline/node_modules/switchback/lib/normalize.js:33:31)
at _switch (/app/node_modules/waterline/node_modules/switchback/lib/factory.js:58:28)
name | setting | unit | category | short_desc | extra_desc | context | vartype | source | min_val | max_val | enumvals | boot_val | reset_val | sourcefile | sourceline
----------+---------+------+----------------------------------------------------+-----------------------------------------------------------------+------------+---------+---------+--------------------+---------+---------+----------+----------+-----------+-------------------------------------------------+------------
TimeZone | UTC | | Client Connection Defaults / Locale and Formatting | Sets the time zone for displaying and interpreting time stamps. | | user | string | configuration file | | | | GMT | UTC | /var/lib/postgresql/data/pgdata/postgresql.conf | 499
(1 row)
var d = new Date();
var n = d.getHours(); //get the current local time's hour in military time (1..23)
//If the time is greater than or equal to 8AM or less than or equal to 2am
if (n >= 8 || n <= 2) {
//set background color to X
}
if(!hour >= settings.config.lightOn || !hour <= settings.config.lightOff) {
lightOn(data);
} else {
lightOff(data);