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
#! /usr/bin/python3 | |
# Thing for making up a valid (ish) driving licence number | |
# https://www.drivercheck.co.uk/find-out-more/photocard-driving-licence-explained/ | |
# Note checksum is just dumped on there, not generated cos IDK how it's calculated | |
import argparse | |
from datetime import date | |
from typing import Tuple |
#!/usr/bin/env ruby | |
# | |
require 'rmodbus' | |
status_labels = [ | |
['Drive not ready', 'Ready for operation (READY)'], | |
['Stop', 'Running operation message (RUN)'], | |
['Clockwise rotating field (FWD)', 'Anticlockwise rotating field (REV)'], | |
['No fault', 'Fault detected (FAULT)'], | |
['No warning', 'Warning active (ALARM)'], |
// Control a 4 phase stepper motor with an Arduino | |
// Controls a 28BYJ-48 stepper motor, via some digital pins an an LM2003 driver | |
// Uses direct port manipulation for fast concurrent pin state changes | |
// https://en.wikipedia.org/wiki/Stepper_motor#/media/File:Drive.png | |
int motorSpeed = 1000; | |
int count = 0; | |
int countsperrev = 32*16; | |
// can do > 1100 uS |
#include <TinyWireS.h> | |
// MAX INT 32767 | |
#ifndef TWI_RX_BUFFER_SIZE | |
#define TWI_RX_BUFFER_SIZE (16) | |
#endif | |
#define ADDR 0x11 |
#include <Manchester.h> | |
#define RX_PIN 0 | |
#define RELAY_PIN 1 | |
uint8_t data; | |
uint8_t id; | |
void setup() { |
#!/bin/sh | |
RANGE=$1 | |
echo "Looking for Pis in 10.193.${RANGE:-9}.0/24" | |
sudo nmap -sP "10.193.${RANGE:-9}.0/24" | grep "B8:27" -B 2 |
# 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; |
{ | |
"listen": ["0.0.0.0", 7890], | |
"verbose": true, | |
"color": { | |
"gamma": 2.5, | |
"whitepoint": [0.4, 0.4, 0.4] | |
}, | |
"devices": [ |
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
Run VBoxManage list vms
you can see your VMs and the ID
Paste that into .vagrant/machines/default/virtualbox/id