Run VBoxManage list vms
you can see your VMs and the ID
Paste that into .vagrant/machines/default/virtualbox/id
/* | |
HC-SR04 Ping distance sensor: | |
VCC to arduino 5v | |
GND to arduino GND | |
Echo to Arduino pin 7 | |
Trig to Arduino pin 8 | |
This sketch originates from Virtualmix: http://goo.gl/kJ8Gl | |
Has been modified by Winkle ink here: http://winkleink.blogspot.com.au/2012/05/arduino-hc-sr04-ultrasonic-distance.html | |
And modified further by ScottC here: http://arduinobasics.blogspot.com.au/2012/11/arduinobasics-hc-sr04-ultrasonic-sensor.html |
from django import forms | |
from .models import Temperature, PumpEvent | |
class TemperatureForm(forms.ModelForm): | |
class Meta: | |
model = Temperature | |
exclude = ('timestamp', ) |
Run VBoxManage list vms
you can see your VMs and the ID
Paste that into .vagrant/machines/default/virtualbox/id
When Vagrant Upping, and you get this error:
ImportError: No module named requests
Stderr from the command:
stdin: is not a tty
SSH onto the box
{ | |
"listen": ["0.0.0.0", 7890], | |
"verbose": true, | |
"color": { | |
"gamma": 2.5, | |
"whitepoint": [0.4, 0.4, 0.4] | |
}, | |
"devices": [ |
# Print the number in degrees | |
awk -F'=' '/ t=/ { print $NF/1000 }' /sys/bus/w1/devices/$DEVICE_ID/w1_slave | |
# For Curling | |
curl $URL --data "value=$(awk -F'=' '/ t=/ { print $NF/1000 }' /sys/bus/w1/devices/$DEVICE_ID/w1_slave)" --compressed; |
SELECT * FROM wp_posts p | |
LEFT JOIN wp_term_relationships tr ON tr.object_id = p.ID | |
LEFT JOIN wp_term_taxonomy tt ON tr.term_taxonomy_id = tt.term_taxonomy_id | |
LEFT JOIN wp_terms t ON t.term_id = tt.term_id |
#include <Manchester.h> | |
#define RX_PIN 0 | |
#define RELAY_PIN 1 | |
uint8_t data; | |
uint8_t id; | |
void setup() { |
SET @uri_from = 'www.devurl.local'; | |
SET @uri_to = 'www.liveurl.net'; | |
UPDATE wp_options SET `option_value` = REPLACE(`option_value`, @uri_from, @uri_to) | |
WHERE `option_value` LIKE CONCAT( "%", @uri_from, "%" ); | |
UPDATE wp_posts SET `guid` = REPLACE(`guid`, @uri_from, @uri_to); | |
UPDATE wp_posts SET `post_content` = REPLACE(`post_content`, @uri_from, @uri_to); | |
git init && git config receive.denyCurrentBranch ignore |