Skip to content

Instantly share code, notes, and snippets.

View one2blame's full-sized avatar

Austin one2blame

View GitHub Profile
@one2blame
one2blame / Read_IRSensors.ino
Created March 5, 2022 16:39
Read_IRSensors.ino
#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
@one2blame
one2blame / simple-https-server.py
Last active September 29, 2023 17:14
simple-https-server.py
#!/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
@one2blame
one2blame / solve.py
Created June 8, 2021 20:59
aim-marketplace-1.5
#!/usr/bin/env python3
"""
Run locally with:
./solve.py
Run against remote with:
./solve.py REMOTE HOST=x.x.x.x PORT=xxxxx
"""
"""
@one2blame
one2blame / print_macros.h
Last active June 8, 2022 05:06
Useful print macros
#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, ...) \
@one2blame
one2blame / Dockerfile
Last active April 13, 2021 21:24
Dockerfile with LD_PRELOAD
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