Skip to content

Instantly share code, notes, and snippets.

View wolfeidau's full-sized avatar
🐺
Building data science projects

Mark Wolfe wolfeidau

🐺
Building data science projects
View GitHub Profile
{
"Resources": {
"MyVpcF9F0CA6F": {
"Type": "AWS::EC2::VPC",
"Properties": {
"CidrBlock": "10.0.0.0/16",
"EnableDnsHostnames": true,
"EnableDnsSupport": true,
"InstanceTenancy": "default",
"Tags": [
@wolfeidau
wolfeidau / build_opencv4.sh
Last active June 25, 2019 10:32
Setup Gist
#!/bin/bash
set -e
# provide a folder like ~/temp to build the opencv sources
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <Build Folder>"
exit
fi
folder="$1"
@wolfeidau
wolfeidau / donkeycar.md
Last active September 15, 2023 17:27
Commands I used to configure donkey car on raspberry pi 3 b+

Install i2c tools to check for PCA9685 board.

sudo apt-get install i2c-tools
sudo i2cdetect -y 1

Install vim and git.

@wolfeidau
wolfeidau / commands.md
Last active November 8, 2019 07:47
Notes from ROS setup on the deepracer

Load up the ROS environment.

source /opt/aws/deepracer/setup.bash

Listing nodes.

$ rosnode list
@wolfeidau
wolfeidau / cognito.yml
Last active January 28, 2020 04:22
Cognito CFN stack with domain verification
AWSTemplateFormatVersion: 2010-09-09
Description: 'authentication: Resources for hosting authentication using AWS Cognito, a @wolfeidau template'
Parameters:
AppName:
Description: Name of application, used in signup emails and naming of aws resources.
Type: String
AllowedPattern: '^[a-zA-Z0-9]*$'
@wolfeidau
wolfeidau / main.go
Created September 7, 2018 03:11
Lambda endpoint from cmd/raven_lambda folder.
package main
import (
"github.com/apex/gateway"
"github.com/aws/aws-lambda-go/lambda"
log "github.com/sirupsen/logrus"
"github.com/wolfeidau/lambda-raven-service/pkg/api"
"github.com/wolfeidau/lambda-raven-service/pkg/config"
"github.com/wolfeidau/lambda-raven-service/pkg/handlers"
_ "github.com/wolfeidau/lambda-raven-service/pkg/logging"
@wolfeidau
wolfeidau / Dockerfile
Last active August 27, 2018 12:12
ROS experiments
FROM ros:melodic-robot
RUN apt-get update && apt-get install vim curl -y
RUN mkdir -p /src/ydlidar/src
WORKDIR /src/ydlidar
RUN /bin/bash -c "source /opt/ros/melodic/setup.bash && catkin_make"
WORKDIR /src/ydlidar/src
RUN git clone https://github.com/EAIBOT/ydlidar.git
WORKDIR /src/ydlidar
RUN /bin/bash -c "source /opt/ros/melodic/setup.bash && catkin_make install && rospack profile"
@wolfeidau
wolfeidau / default.conf
Created August 8, 2018 05:42
NGINX configuration used to serve an SPA
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html index.htm;
# rely on X-Forwarded-Proto to redirect to HTTPS
if ($http_x_forwarded_proto = "http") {
return 301 https://$server_name$request_uri;
}
@wolfeidau
wolfeidau / notes.md
Created June 10, 2018 02:03
Building ydlidar SDK
apt install git cmake g++ gcc
git clone https://github.com/EAIBOT/ydlidar
cd ydlidar/sdk
cmake .
make -j4
samples/ydlidar_test /dev/ttyUSB0 128000 0
@wolfeidau
wolfeidau / Makefile
Last active May 31, 2018 04:07
sonarqube scanning stack
default: runserver runscan
.PHONY: default
runserver:
docker-compose up -d
.PHONY: runserver
runscan:
docker run -ti -v $(shell pwd):/root/src --network docker-dev-environment_sonarnet newtmitch/sonar-scanner sonar-scanner -Dsonar.host.url=http://sonarqube:9000
.PHONY: runscan