Skip to content

Instantly share code, notes, and snippets.

View garretfick's full-sized avatar

Garret Fick garretfick

View GitHub Profile
@garretfick
garretfick / cla.md
Created January 1, 2023 19:16 — forked from kitten/cla.md
MIT CLA

Individual Contributor License Agreement (CLA)

Thank you for submitting your contributions to this project.

By signing this CLA, you agree that the following terms apply to all of your past, present and future contributions to the project.

License.

You hereby represent that all present, past and future contributions are governed by the

@garretfick
garretfick / gist:85e8bab2b7f32bb045d3331912703933
Created June 26, 2019 17:06
Start SSH for pushing to Git on Windows
eval $(ssh-agent -s)
ssh-add ~/.ssh/id_rsa
@garretfick
garretfick / guard.py
Created March 26, 2019 21:22
Adds header guards to multiple files
import argparse
import glob
import logging
import os
import sys
logger = logging.getLogger(__name__)
def main(argv):
"""The main function for the script so it can be included if desired."""
@garretfick
garretfick / HelloWorld.xml
Created March 1, 2019 21:17
HelloWorld for OpenPLC and Modbus on SoftPLC
<?xml version='1.0' encoding='utf-8'?>
<project xmlns:ns1="http://www.plcopen.org/xml/tc6.xsd" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.plcopen.org/xml/tc6_0201">
<fileHeader companyName="Garret Fick" productName="OpenPLC" productVersion="1.0" creationDateTime="2019-03-01T09:56:49"/>
<contentHeader name="HelloWorld" modificationDateTime="2019-03-01T14:00:37">
<coordinateInfo>
<fbd>
<scaling x="10" y="10"/>
</fbd>
<ld>
<scaling x="0" y="0"/>

Keybase proof

I hereby claim:

  • I am garretfick on github.
  • I am garretfick (https://keybase.io/garretfick) on keybase.
  • I have a public key ASAn5TO8KRo3tZgST-zBVZU_S9jAdRgsr5H1yV5q2hmX8go

To claim this, I am signing this object:

@garretfick
garretfick / Jasmine-and-Babel6.md
Created September 5, 2017 16:29 — forked from mauvm/Jasmine-and-Babel6.md
Jasmine ES6 run script for use with Babel 6
$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine

.babelrc:

{
 "presets": ["es2015"]
@garretfick
garretfick / Vagrantfile
Created June 21, 2017 03:03
Vagrant file that creates a Linux machine with docker and setup to run the docker operations training
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
sudo apt-get -y update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get -y update
sudo apt-get -y install docker-ce docker-compose awscli jq pssh wkhtmltopdf
@garretfick
garretfick / terraform.tf
Last active October 1, 2020 12:38
Terraform Configuration for Heroku/S3 Application
# This terraform configuration generates a Heroku PHP application
# using the Heroku postgress database addon and creates an AWS S3
# bucket to host static files for the application.
# The site is sufficiently simple that this configuation is
# contained in a single file
# The build creates environment variables in the Heroku application
# containing the credentials for the S3 bucket.
# Authentication for the AWS provider - we use this access
# key in order to be able to create a new AWS user and the S3
@garretfick
garretfick / setup-october.py
Created April 18, 2017 00:50
setup-october.py
"""
A simple, one step setup script for installing OctoberCMS in Vagrant.
"""
import argparse
import os
import shutil
import subprocess
def git(*args):
@garretfick
garretfick / bootstrap.sh
Last active July 21, 2018 17:35
Provision script to install PHP7.0 on Scotchbox
#!/bin/bash
# Additional configuration and packages that our Vagrantbox requires
# We will need php7.0, so install it
sudo apt-get -y update
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get -y install php7.0
sudo apt-get -y update
# This includes the base php7.0 packages, plus a couple mbstring and dom that
# some of the composer dependencies require