Skip to content

Instantly share code, notes, and snippets.

Avatar

Stephen Goncher thegonch

  • Stelligent Systems, LLC
  • Lake Mary, FL
View GitHub Profile
@thegonch
thegonch / aws_codecommit_update_script_part1.rb
Last active Oct 8, 2020
aws_codecommit_update_script.rb
View aws_codecommit_update_script_part1.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 Oct 8, 2020
Example Dependabot + CodeCommit IAM Policy
View dependabot_codecommit_iam_policy.json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "0",
"Effect": "Allow",
"Action": [
"codecommit:CreateBranch",
"codecommit:GetCommit",
"codecommit:GetRepository",
@thegonch
thegonch / dependabot_helpers.sh
Last active Oct 8, 2020
dependabot_helpers.sh
View 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
View npm-shrinkwrap.json
{
"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 Oct 28, 2017
Yarn Lock File
View yarn.lock
# 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 Oct 28, 2017
Yarn package.json sample 1
View package.json
{
"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 Oct 17, 2017
Yarn registry
View .yarnrc
registry "https:\\<nexus_url_location>"
strict-ssl false
@thegonch
thegonch / install_yarn.sh
Last active Oct 17, 2017
Installing Yarn on Ubuntu
View install_yarn.sh
#!/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
You can’t perform that action at this time.