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
<!DOCTYPE html> | |
<h1>Time/Cost/Complexity Relationship</h1> | |
<label for="rotation">Rotation</label><input type="range" min="0", max="360", step="1", value="1" id="rotation"/> | |
<div id="container"></div> | |
<table border="1"> | |
<tr> | |
<td></td> | |
<td></td> | |
<td>Time</td> |
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 | |
# Author: Richard Kendall | |
# Written for Amazon Linux, with changes to the adduser command etc it will work for other distros | |
# Expects to be run as root, will exit otherwise | |
if [[ $# -eq 0 ]] ; then | |
echo "Please provide the username as a parameter" | |
exit 1 | |
fi |
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
function to_rad(deg) { | |
return deg * (Math.PI/180); | |
} | |
function to_deg(rad) { | |
return rad * (180/Math.PI); | |
} | |
function tanx(px, pa) { | |
var tres = Math.tan(pa); |
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
To deploy this, put the files below in a directory and create a PV and PVC. | |
PVC should be called `redis-vol-claim` | |
Then in the directory containing the files run the following: | |
1. kubectl apply -k . | |
2. kubectl apply -f redis-service.yaml |
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
Code to deploy eclipse mosquitto in a simple, open fashion on Kube. | |
You'll need to sort out the PV/PVC. | |
kubectl apply -f configmap.yml | |
kubectl apply -f deployment.yml | |
kubectl apply -f service.yml |
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
docker system prune -a -f | |
net stop com.docker.service | |
taskkill /F /IM "Docker Desktop.exe" | |
stop-vm DockerDesktopVM | |
Optimize-VHD -Path "C:\Users\Public\Documents\Hyper-V\Virtual hard disks\DockerDesktop.vhdx" -Mode Full | |
start-vm DockerDesktopVM | |
start "C:\Program Files\Docker\Docker\Docker Desktop.exe" | |
net start com.docker.service |
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 <SPI.h> | |
// port register maniuplation macros | |
#define sbi(port, bit) (port) |= (1 << (bit)) | |
#define cbi(port, bit) (port) &= ~(1 << (bit)) | |
// pins | |
// note if you change the latchpin, you will need to change the code in the loop as this is hard | |
// coded to make use of faster port register manipulation | |
int latchPin = 8; // Pin connected to ST_CP of 74HC595 |
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 <SPI.h> | |
// port register maniuplation macros | |
#define sbi(port, bit) (port) |= (1 << (bit)) | |
#define cbi(port, bit) (port) &= ~(1 << (bit)) | |
// pins | |
// note if you change the latchpin, you will need to change the code in the loop as this is hard | |
// coded to make use of faster port register manipulation | |
int latchPin = 8; // Pin connected to ST_CP of 74HC595 |
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
//Pin connected to ST_CP of 74HC595 | |
int latchPin = 8; | |
//Pin connected to SH_CP of 74HC595 | |
int clockPin = 12; | |
////Pin connected to DS of 74HC595 | |
int dataPin = 11; | |
int bluesq[] = { | |
B00000000, | |
B01111110, |
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
aws_region = "AWS_REGION" | |
cluster_name = "ECS_CLUSTER_NAME" | |
service_name = "haproxy" | |
tag_name = "latest" | |
default_domain = "null.example.com" | |
service_registry_id = "ns-BLAH" | |
namespace_map = [ | |
{ |
NewerOlder