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
sub HMLAN_Initialize($) { # sub takes only one argument | |
my ($hash) = @_; # takes all arguments provided during the sub routine call and shoves them into $hash | |
require "$attr{global}{modpath}/FHEM/DevIo.pm"; # gets another perl module involved (need to check this for function definitions as well) | |
# Provider | |
$hash->{ReadFn} = "HMLAN_Read"; # basically assigns values to the attributes provided to the sub routine call | |
$hash->{WriteFn} = "HMLAN_Write"; | |
$hash->{ReadyFn} = "HMLAN_Ready"; | |
$hash->{SetFn} = "HMLAN_Set"; |
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
- name: PEAR installing modules | |
command: pear install {{ item }} | |
register: pear_result | |
with_items: | |
- pear.netpirates.net/phpDox | |
- pear.symfony.com/Yaml | |
- pear.phpmd.org/PHP_PMD | |
changed_when: pear_result.stdout.find("already installed") == -1 | |
results in errors like this: |
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
--- | |
# file: group_vars/all | |
bootstrap_user: stephan # change this to your user account that manages the server | |
use_sudo: True | |
admin_email: mail@example.org | |
--- | |
# file: hardening.yml | |
- hosts: all | |
sudo: "{{ use_sudo }}" |
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
<dataConfig> | |
<dataSource name="fds" encoding="ISO-8859-1" type="FileDataSource"/> | |
<document> | |
<entity name="files" | |
dataSource="null" | |
rootEntity="false" | |
processor="FileListEntityProcessor" | |
baseDir="/tmp/provision/import" | |
fileName=".*\.xml" |
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 : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# It's a wheezy box with 64bit 7.3 Debian | |
# full lamp stack, yii framework 1.1.14 and all required PHP/Pear modules for devs |
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
# Codeception Test Suite Configuration | |
# suite for acceptance tests. | |
# perform tests in browser using the Selenium-like tools. | |
# powered by Mink (http://mink.behat.org). | |
# (tip: that's what your customer will see). | |
# (tip: test your ajax and javascript by one of Mink drivers). | |
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES. |
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 | |
# | |
# description: Script to start a meteor application through forever | |
# processname: forever/coffeescript/node | |
# pidfile: /var/run/forever-initd-meteor.pid | |
# logfile: /var/run/forever-initd-meteor.log | |
# | |
# Based on a script posted by | |
# https://github.com/hectorcorrea/hectorcorrea.com/blob/master/etc/forever-initd-hectorcorrea.sh | |
# |
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
--- | |
- hosts: mongodb | |
sudo: True | |
remote_user: droid | |
roles: | |
- role: mongo_mongod | |
mongod_datadir_prefix: "/data" | |
mongod_replication: true |
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
upstream meteor_servers { | |
server 192.168.2.221:3000; | |
server 192.168.2.222:3000; | |
ip_hash; | |
} | |
server { | |
listen 80; | |
server_name meteorinaction.com; | |
return 301 https://www.meteorinaction.com$request_uri; |
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
<head> | |
<title>simple</title> | |
</head> | |
<body> | |
{{> video}} | |
</body> | |
<template name="video"> | |
<iframe width="420" height="315" src="//www.youtube.com/embed/y-sBROXalU4" frameborder="0" allowfullscreen></iframe> |
OlderNewer