This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include RELEASE-VERSION | |
include version.py | |
# Anything else you normally use | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Create two virtual machines, each with salt-minion installed | |
# They are bridged, so they need to reach a salt master somewhere. | |
# you can use these for trying out salt for deploying slightly different | |
# data collector settings for different machines from the same salt states | |
Vagrant.configure("2") do |config| | |
box_url = "http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-vagrant-i386-disk1.box" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PageKite is a system for running publicly visible servers (generally | |
web servers) on machines without a direct connection to the Internet, | |
such as mobile devices or computers behind restrictive firewalls. | |
PageKite works around NAT, firewalls and IP-address limitations by | |
using a combination of tunnels and reverse proxies. | |
. | |
This package provides an implementation of the PageKite Protocol in C, | |
optimized for high-performance or embedded applications. | |
. | |
Basic UCI support for HTTP and SSH servers is also included in this package. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ lua send-cpu.lua | |
Posted 35 messages in 0.955896 seconds, long term: total=35, rate: 36.614710 msgs/sec | |
Posted 35 messages in 0.953455 seconds, long term: total=70, rate: 31.679929 msgs/sec | |
Posted 35 messages in 0.882752 seconds, long term: total=105, rate: 30.950216 msgs/sec | |
Posted 35 messages in 0.883659 seconds, long term: total=140, rate: 30.591545 msgs/sec | |
Posted 35 messages in 0.940316 seconds, long term: total=175, rate: 30.084469 msgs/sec | |
Posted 35 messages in 0.887835 seconds, long term: total=210, rate: 29.978839 msgs/sec | |
Posted 35 messages in 0.949010 seconds, long term: total=245, rate: 29.681898 msgs/sec | |
Posted 35 messages in 0.884780 seconds, long term: total=280, rate: 29.663531 msgs/sec | |
Posted 35 messages in 0.951152 seconds, long term: total=315, rate: 29.465380 msgs/sec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/luaconf.h b/src/luaconf.h | |
index e2cb261..0e218b5 100644 | |
--- a/src/luaconf.h | |
+++ b/src/luaconf.h | |
@@ -94,9 +94,9 @@ | |
".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll" | |
#else | |
-#define LUA_ROOT "/usr/local/" | |
+#define LUA_ROOT "/usr/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Karl's very simplistic backup script... | |
REALLY=$1 | |
REAL_FLAGS=-avh | |
DEMO_FLAGS=-avnh | |
# "arx2011" is the volume name of my second harddisk | |
MOUNTED=$(mount | grep arx2011) | |
if [[ -z $MOUNTED ]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
SimpleSecureHTTPServer.py - simple HTTP server supporting SSL. | |
- replace fpem with the location of your .pem server file. | |
- the default port is 443. | |
usage: python SimpleSecureHTTPServer.py [server.pem] [port] | |
prereq: make a cert! | |
openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <modbus.h> | |
#define SM4_ID 3 | |
#define P120_ID 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <errno.h> | |
#include <modbus.h> | |
int main(int argc, char **argv) { | |
modbus_t *mb; | |
uint16_t tab_reg[32]; | |
int rc; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Based on /etc/init.d/sshd as it came on CentOS 5.6: | |
# | |
# Copyright (c) 1995-2000 SuSE GmbH Nuernberg, Germany. | |
# | |
# Author: Jiri Smid <feedback@suse.de> | |
# /etc/init.d/mosquitto | |
# |