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
#!/usr/bin/env bash | |
set -e | |
if [[ -z "${BUILD_NUMBER}" ]]; then | |
echo "No build number set" | |
env | |
exit 0 | |
fi | |
BUILD_VERSION=`jq -r '.version' package.json | sed "s/0$/${BUILD_NUMBER}/"` |
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
blueprint: | |
name: Logic Group Matrix ZDB5100 | |
description: Create automatisation for the ZDB5100 using zwavejs integration | |
domain: automation | |
input: | |
matrix_zdb5100: | |
name: Matrix ZDB5100 | |
description: The matrix to interact with | |
selector: | |
device: |
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/sh | |
echo "External: " | |
dig +short myip.opendns.com @resolver1.opendns.com | |
echo "Internal: " | |
ifconfig |grep inet | awk '{print $2}' |grep -v '127.0.0.1\|::1\|fe80::' |
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
# Note: cucumber-rails redefines the call method in ShowExceptions, leading to an infinite loop | |
# To make our tests work until that is properly fixed, we redefine call to the original method here | |
require 'action_dispatch' | |
module ActionDispatch | |
class ShowExceptions | |
alias original_call call | |
end | |
end | |
require 'cucumber/rails' |
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
{ | |
"wavin": [ | |
{ | |
"sensorid": 0, | |
"channelid": 0, | |
"location": "Bryggers" | |
}, | |
{ | |
"sensorid": 1, | |
"channelid": 1, |
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
#!/usr/bin/env python3 | |
# | |
# Require: https://github.com/paller/wavin-controller | |
# | |
# Example output: | |
# AC-116 | |
# MC11013 MC61019 | |
# 0 23.4 90 32788 21.5 | |
# 1 23.0 90 32788 21.5 | |
# 2 23.1 90 32788 21.0 |
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
#! /usr/bin/expect -- | |
## | |
## patched to accomplish fortinet from nlogin | |
## in turn patched to accomplish D-Link from fnlogin | |
## by: Daniel G. Epstein <dan at rootlike.com> | |
## adapted by: Diego Ercolani <diego.ercolani at ssis.sm> | |
## further adapted by: Gavin McCullagh <gavin.mccullagh at gcd.ie> | |
## | |
## rancid 2.3.6 | |
## Copyright (c) 1997-2009 by Terrapin Communications, Inc. |
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/sh | |
# | |
# Script for backup MySQL databases in crontab | |
# Tested on ubuntu +10.04 LTS | |
# | |
# Created by Jesper Grann Laursen, powerlauer AT gmail DOT com | |
# | |
# | |
# configfile | |
config=/etc/backupDatabases.conf |
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
# PATH=$PATH:~/bin | |
export TERM=rxvt | |
HISTSIZE=1000 | |
SAVEHIST=1000 | |
if (( ! EUID )); then | |
HISTFILE=~/.history_root | |
else | |
HISTFILE=~/.history |
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
<%= form_for @car, :html => { :class => 'form-horizontal' } do |f| %> | |
<fieldset> | |
<legend><%=controller.action_name.capitalize %> Car</legend> | |
<div class="control-group"> | |
<%= f.label :name, :class => 'control-label' %> | |
<div class="controls"> | |
<%= f.text_field :name, :class => 'text_field' %> | |
</div> | |
</div> |
NewerOlder