The original post was on my website.

In this lesson, I’m going to setup how to scan for security vulnerabilities in Maven packages. They will happen on every push to all branches using Github Actions. I will be leveraging this library.

The assumption is you have a Maven project setup and some basic understanding of Maven. First step is to build your JAR

mvn clean package

You package should build without any issues. Next, you can try the security check:

mvn com.redhat.victims.maven:security-versions:check

This check may or may not return issues.

Github Actions

You should have access to Github Actions (as of writing its in private beta). You will need to create a new workflow file. You can run this command from your project’s root…


The original story can be found on my personal website. View walk through can be found on Youtube.

In this tutorial, I’m going to show you how to setup an S3 bucket. There are lots of aspects to an S3 bucket and this tutorial only scrapes the surface. We will put a file in the bucket, retrieve the file, and delete the file. We will also briefly go over IAM Roles, IAM Users and bucket policies.

Setup

Start by heading over to Amazon Web Services (AWS), and signing in. Under service in the top left corner, you should see S3. …


Introducing JumpStart: The easiest way to get started on your new MERN project

What do I mean?

As a creator we want to build out an idea. You may have an idea of how it will work, and you get started. The first step is setting everything up. This can be a very time consuming task. More specifically, can be a difficult task if the technology is fairly new. For me, in early 2017, I began to move to a MongoDB, Express.js, React.js, Node.js stack. Also known as a MERN stack. I could find a starting point for Node or Express. I could find a basic React.js app. I could also find code snippets of connecting the Node application to the MongoDB. …


The original post can be found here.

In this tutorial, we will use Github Actions to zip the code base and create a new release with it.

Code Base Setup

You will need a Github repository and access to Github Actions. First step, clone your repository and switch into it. We will begin to create empty files in the folder. These files represent a simple app.

touch README.md
touch main.py
touch .gitignore

Push the changes to the master branch.

git add --all
git commit -m "Added basic files"
git push

Workflow Setup

We will use the zip command: zip -r release.zip .. This is zip into a file called release.zip


The original can be found here on my personal website.

In this tutorial, we focus on running Github Actions on the push event for specific branches. This may be useful if you only want to test on feature branches and do a deployment if master. This was the use case for me. After the tests have passed, the the code review has been approved. It’s time to deploy to production. This is merging to master and running a series of steps. Github Actions makes it very simple to run specific actions/workflows on specific branches.

As I write this tutorial Github Actions is in beta. You should check to see if you have access first. There would be a tab called Actions if you do have access. …


This was originally posted on my personal website.

In this tutorial, we deploy our changes on master to production (your domain) on each push. The idea: if you are hosting a React GH-Pages app on Github, then you no longer need to manually deploy.

This lesson goes along with Host a React App for Free using Github Pages.

Getting Started

Like the Host a React App for Free using Github Pages, our starting point will be this code repository. I would recommend pulling from the source (and not my fork). Please star my fork, so I know people are using it!

Create a new project on Github and upload the source code. Run the following…


This post was originally posted on my personal website, then on my Medium page. I put together a Youtube tutorial as well.

In this tutorial, I walk you through setting up a simple React.js application that can be hosted on Github Pages. I really like hosting here because it’s free for me personally, and Github handles “server management”. Once I deploy my React app and verify it’s up, Github handles the traffic surges, updates, etc.

I typically use this MERN boilerplate repository repository but it has too much extra stuff specifically for a Node server. I found this repository. It’s a much simpler boilerplate code base and only focuses on React. Please star, my fork so I know people are still using it. …


This post was original posted on my personal website. I put together a Youtube tutorial as well.

In this tutorial, I walk you through setting up a simple React.js application that can be hosted on Github Pages. I really like hosting here because it’s free for me personally, and Github handles “server management”. Once I deploy my React app and verify it’s up, Github handles the traffic surges, updates, etc.

I typically use this MERN boilerplate repository repository but it has too much extra stuff specifically for a Node server. I found this MERN boilerplate repositorythis repository. It’s a much simpler boilerplate code base and only focuses on React. Please star, my fork so I know people are still using it. …


This story was originally posted a few months back on my personal website. Find out why my website is where I post first now.

In this post, we setup a Jenkins CI/CD pipeline on a Digital Ocean droplet. It will trigger on push events to the master branch of a Git repository and build the project. These pipelines are excellent for validating your code changes are properly tested, and changes are instantly deployed after they’re verified. When you are trying to build a resilient system you have to ask yourself, how long is recovery if your servers go down? What’s the playbook for recovery? …


In this tutorial, I will show you how to setup a stepper motor with a Raspberry Pi. I’m using a 40 pin Raspberry Pi 3 (same for 28 pin) and Kumantech Motor Stepper kit.

Image for post
Image for post

When I got started with Stepper Motors I followed this well explained video below. There is no written portion or at least as of now, the link in the description no longer works. I’m simply providing my code sample and more images of my setup.

Connecting

The first step will be connecting to your Pi. I recommend plugging in your Pi to a monitor, just to verify everything is correctly setup. You will need to be connected to the internet. …

About

Keith Weaver

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store