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 "src/CCCDrive/CCCDrive.h" | |
#include "src/Pololu/QTRSensors.h" | |
#include "src/Button/Button.h" | |
CCCDrive Robot; | |
Button start_btn(7); //Connect momentary to GPIO 7 | |
QTRSensors qtr; | |
int Running = 1; //Set up variable to determine if the robot should be moving |
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 python3 | |
# Requires Python 3.7 or greater | |
import ssl | |
import subprocess | |
import time | |
from argparse import ArgumentParser, Namespace | |
from http.server import HTTPServer, SimpleHTTPRequestHandler | |
from pathlib import Path |
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 python3 | |
""" | |
Run locally with: | |
./solve.py | |
Run against remote with: | |
./solve.py REMOTE HOST=x.x.x.x PORT=xxxxx | |
""" | |
""" |
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
#define _GNU_SOURCE | |
include <stdio.h> | |
#define print_info(string, ...) \ | |
do \ | |
{ \ | |
printf("[*] %s: " string, program_invocation_name, ##__VA_ARGS__); \ | |
} while (0) | |
#define print_err(string, ...) \ |
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
FROM ubuntu:18.04 | |
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && apt-get install -y \ | |
socat \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN useradd -m my-challenge | |
WORKDIR /home/my-challenge |