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 <stdlib.h> | |
#include <unistd.h> | |
#include <netdb.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <memory.h> | |
#include <sys/socket.h> | |
/* |
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 | |
# -*- coding:utf-8 -*- | |
# Julien Deudon (initbrain) - 20/03/2012 | |
# modified to run on OS X by James Armitage - 25/06/2012 | |
# modified to process in python by Dan Gleebits - 26/06/2012 | |
# modified to parse the xml output of airport by Vincent Ohprecio - 01/10/2012 | |
# modified to work with the new Google geolocation API by Giovanni Angoli (juzam) - 03/01/2017 | |
# merging all modifications by Julien Deudon (initbrain) - 06/01/2017 | |
from commands import getoutput, getstatusoutput |
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 | |
if [ "$EUID" -ne 0 ]; then | |
echo "Must be root" | |
exit | |
fi | |
if [[ $# -ne 1 ]]; then | |
echo "You need to set a password!" | |
echo "Usage:" |
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 | |
### BEGIN INIT INFO | |
# Provides: node-red | |
# Required-Start: $local_fs $remote_fs $network | |
# Required-Stop: $local_fs $remote_fs $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start or stop the node-red server | |
### END INIT INFO | |
# Can be downloaded and installed in one go by using this command |
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 | |
# Starts and stops node-red | |
# /etc/init.d/node_red | |
### BEGIN INIT INFO | |
# Provides: node_red | |
# Required-Start: $syslog | |
# Required-Stop: $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Node Red |
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 | |
from datetime import timedelta, tzinfo | |
from dateutil import tz | |
from shlex import split | |
from subprocess import Popen, PIPE | |
import os | |
import plistlib | |
NOT_ENABLED = u'Not enabled.' |