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
/*var _margin = 20; | |
var _marg_btw_quart; | |
var _height; | |
var _width; | |
var _cnvElementId;*/ | |
function init() { | |
//var t = new Timeline('myCanvas',document.getElementById('canvasContainer').clientHeight,document.getElementById('canvasContainer').clientWidth); | |
var t = new Timeline('myCanvas'); | |
t.drawCanvas(); |
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 | |
### BEGIN INIT INFO | |
# Provides: openHAB | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs | |
# Should-Start: $network | |
# Should-Stop: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start and stop openHAB in screen Session |
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 | |
################################################################## | |
# A Project of TNET Services, Inc | |
# | |
# Title: WiFi_Check | |
# Author: Kevin Reed (Dweeber) | |
# [email protected] | |
# Project: Raspberry Pi Stuff | |
# | |
# Copyright: Copyright (c) 2012 Kevin Reed <[email protected]> |
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 | |
################################################################## | |
# A Project of TNET Services, Inc | |
# | |
# Title: WiFi_Check | |
# Author: Kevin Reed (Dweeber) | |
# [email protected] | |
# Project: Raspberry Pi Stuff | |
# | |
# Copyright: Copyright (c) 2012 Kevin Reed <[email protected]> |
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 | |
#Usage: ./ohutil.sh <version> (e.g.: ./ohutil.sh 2.2.0) | |
#In order to run this script you must have installed: wget, unzip, tar | |
COMMAND=$1 | |
OH_VERSION=$2 | |
DOWNLOAD_URL=https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F$OH_VERSION%2Fopenhab-$OH_VERSION.zip | |
HOME_PATH=/home/udooer #CHANGE ME! | |
OH_PATH=$HOME_PATH/openhab #CHANGE ME! |
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
/* | |
A Project of Andrea Cioni | |
Title: Fan Daemon (FanD) | |
Author: Andrea Cioni (andreacioni) | |
[email protected] | |
Copyright: | |
Copyright (c) 2017 Andrea Cioni <[email protected]> |
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
from subprocess import call | |
from time import sleep | |
while call(["/bin/ping","-c","1","8.8.8.8"]) == 0: | |
print "Network is not reachable, try restarting r8169 driver" | |
call(["rmmod","r8169"]) | |
sleep(5) | |
call(["modprobe","r8169"]) | |
sleep(10) |
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 python | |
""" | |
This utility script download Tor exit node list IP from the Web and | |
block every one of them with a dedicated iptables rule. | |
""" | |
import logging | |
from subprocess import call |
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 | |
sudo apt-get update | |
sudo apt-get install autoconf automake build-essential pkgconf libtool git libzip-dev libjpeg-dev checkinstall | |
sudo apt-get install libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavdevice-dev | |
sudo apt-get install libjpeg-turbo8 libjpeg-turbo8-dev | |
sudo apt-get install libwebp-dev | |
git clone https://github.com/Motion-Project/motion.git |
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 | |
#From: https://addhewarman.com/2015/01/23/easiest-way-how-to-get-tag-from-remote-github-repository/ | |
LAST_TAG=$(git ls-remote --tags [email protected]:MY_REPOSITORY/"$MY_PROJECT".git | awk '{print $2}' | grep -v '{}' | awk -F"/" '{print $3}' | tail -n 1) | |
git checkout $LAST_TAG |
OlderNewer