Skip to content

Instantly share code, notes, and snippets.

View thegonch's full-sized avatar

Stephen Goncher thegonch

  • Stelligent Systems, LLC
  • Lake Mary, FL
View GitHub Profile
@thegonch
thegonch / aws_codecommit_update_script_part1.rb
Last active October 8, 2020 22:00
aws_codecommit_update_script.rb
# frozen_string_literal: true
# !/usr/bin/env ruby
# This script is designed to loop through all dependencies in an AWS CodeCommit
# project, creating PRs where necessary.
require 'dependabot/file_fetchers'
require 'dependabot/file_parsers'
require 'dependabot/update_checkers'
@thegonch
thegonch / dependabot_codecommit_iam_policy.json
Created October 8, 2020 21:26
Example Dependabot + CodeCommit IAM Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "0",
"Effect": "Allow",
"Action": [
"codecommit:CreateBranch",
"codecommit:GetCommit",
"codecommit:GetRepository",
@thegonch
thegonch / dependabot_helpers.sh
Last active October 8, 2020 21:22
dependabot_helpers.sh
#!/bin/bash
rm -Rf $(pwd)/native-helpers
mkdir -p $DEPENDABOT_NATIVE_HELPERS_PATH/{terraform,python,dep,go_modules,hex,composer,npm_and_yarn}
# Terraform
cp -r $(bundle show dependabot-terraform)/helpers $DEPENDABOT_NATIVE_HELPERS_PATH/terraform/helpers
$DEPENDABOT_NATIVE_HELPERS_PATH/terraform/helpers/build $DEPENDABOT_NATIVE_HELPERS_PATH/terraform
@thegonch
thegonch / npm-shrinkwrap.json
Last active October 28, 2017 02:21
NPM Lock File
{
"name": "my-app",
"version": "0.0.1",
"dependencies": {
"batch": {
"version": "0.5.0"
},
"buffer-crc32": {
"version": "0.2.1"
},
@thegonch
thegonch / yarn.lock
Last active October 28, 2017 02:17
Yarn Lock File
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
abbrev@1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8"
"argparse@~ 0.1.11":
version "0.1.16"
@thegonch
thegonch / package.json
Last active October 28, 2017 02:05
Yarn package.json sample 1
{
"name": "my-app",
"version": "0.0.1",
"private": true,
"dependencies": {
"express": "~3.4.7",
"json-lint": "~0.1.0"
},
"devDependencies": {
"grunt": "~0.4.2",
@thegonch
thegonch / .yarnrc
Last active October 17, 2017 02:31
Yarn registry
registry "https:\\<nexus_url_location>"
strict-ssl false
@thegonch
thegonch / install_yarn.sh
Last active October 17, 2017 02:32
Installing Yarn on Ubuntu
#!/bin/bash
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install yarn