File: /etc/rc.local
Execute command such as
cd /home/pi/app/;
git pull;
node /home/pi/app/app.js > /dev/null &
#!/usr/bin/env python | |
import json | |
import sys | |
try: | |
dotenv = sys.argv[1] | |
except IndexError as e: | |
dotenv = '.env' | |
with open(dotenv, 'r') as f: |
#include "Particle.h" | |
#include "neopixel.h" | |
SYSTEM_MODE(AUTOMATIC); | |
// IMPORTANT: Set pixel COUNT, PIN and TYPE | |
#define PIXEL_PIN D2 | |
#define PIXEL_COUNT 120 |
[program:display] | |
command=python /home/pi/youtube.py | |
autostart=true | |
autorestart=true | |
stderr_logfile=/var/log/youtube.err.log | |
stdout_logfile=/var/log/youtube.out.log | |
user=root |
#include "FastLED.h" | |
#include <CapacitiveSensor.h> | |
// How many leds in your strip? | |
#define NUM_LEDS 130 | |
// What pin are the LED's connected to? | |
#define DATA_PIN 2 | |
// Define the array of leds |
File: /etc/rc.local
Execute command such as
cd /home/pi/app/;
git pull;
node /home/pi/app/app.js > /dev/null &
{"vestd.dev, vestd.com":{"_enabled":true,"_rules":{".text-muted, .page-title p, .text-light-greyish-turquoise, .text-lighter-grey, .navbar-default .dropdown-menu li a, .card-item .card-item-body .card-item-body-meta":{"color":"#333"},"body":{"color":"#333"},".well":{"background-color":"#fafafa","box-shadow":"none"}}}} |
There are a few things we ask members to remember. This helps keep the space and our equipment easy for all members to use, and promotes harmony among members.
####Accessing an active container docker exec -t -i [container-id] /bin/bash
####Running an image docker run -v ~/Code/BBMS/:/var/www:rw -p 80:80 -d [image name] /sbin/my_init --enable-insecure-key
####Images
<?php | |
/** @var \Illuminate\Http\Request $request */ | |
$cost = new EquipmentCost($request->get('requires_induction'), $request->get('induction_category'), $request->get('access_fee'), $request->get('usage_cost'), $request->get('usage_cost_per')); | |
$properties = new EquipmentProperties($request->get('manufacturer'), $request->get('model_number'), $request->get('serial_number'), $request->get('colour')); | |
$ownership = new Ownership($request->get('managing_role_id'), $request->get('permaloan'), $request->get('permaloan_user_id')); | |
$device = new Device($request->get('name'), $request->get('key'), $request->get('description'), $request->get('help_text'), $properties, $cost, $ownership, $request->get('obtained_at')); |
int pin3 = 2; //£1 | |
int pin4 = 3; //£2 | |
int pin5 = 4; //input - coin return | |
int pin6 = 5; //high - stops money | |
int pin7 = 6; //5p | |
int pin8 = 7; //10p | |
int pin9 = 8; //20p | |
int pin10 = 9;//50p |