Skip to content

Instantly share code, notes, and snippets.


Ryan Pendergast rynop

View GitHub Profile
rynop /
Last active February 11, 2021 15:42
Clone WAF IP Set
# This example exports a regional rule, targeted for importing into cloudfront
aws wafv2 get-ip-set --scope REGIONAL --output=json --name=my-ip-set --id foo | jq -c '.IPSet | del(.Id,.ARN) + {Scope: "CLOUDFRONT"}' > my-ip-set.json
rynop /
Created January 29, 2021 17:43
Command to clone elastic beanstalk environment variables
eb printenv guilded-server-dev | tr '\n' ' ' | sed 's/Environment Variables:/ /g' | sed 's/ */ /g' | sed 's/ = /=/g' > /tmp/envvars.txt
# Make sure /tmp/envvars.txt looks good
# see
pbcopy < /tmp/envvars.txt
eb setenv -e eb-env-name<paste>
rynop /
Created December 5, 2020 18:56
Software school prep

VS Code

  1. Test
  2. Test2
rynop / error.log
Last active November 6, 2019 04:09
View error.log
$ magick front.jpg -fuzz 2% -fill none -draw "matte 0,0 floodfill" -channel alpha -blur 0x2 -level 50x100% +channel front.png
magick: non-conforming drawing primitive definition `0' @ error/draw.c/RenderMVGContent/4406.
$ magick --version
Version: ImageMagick 7.0.8-68 Q16 x86_64 2019-10-07
Copyright: © 1999-2019 ImageMagick Studio LLC
Features: Cipher DPC HDRI Modules OpenMP(3.1)
Delegates (built-in): bzlib freetype heic jng jp2 jpeg lcms ltdl lzma openexr png tiff webp xml zlib
rynop / main.go
Last active July 24, 2019 18:38
S2: get bounding box of center point (in degrees) and radius
View main.go
package main
import (
View bank_clean.27f01fbbdf43271788427f3682996ae29ceca05d.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 62 columns, instead of 17. in line 2.
rynop / schedule.csv
Last active February 6, 2019 16:56
Schedule Spreadsheet
View schedule.csv
Work Date (Ex:3/27/19)* Shift Code* Summary Location Description/Notes
03/27/19 D Basic training 1234 taco building Rochester, MN 55902 Bring paper and pencil
rynop / events.json
Last active February 7, 2019 17:11
External event data specification. All fields required unless noted.
View events.json
"name": "Squirt B schedule",
"from": {
"timezoneLocation": "America/Chicago",
// eventMappings are Optional if you choose to define events via 'Option 1' below
"eventMappings": [
rynop / fa.html
Created December 28, 2018 03:45
Font Awesome Solid icon
View fa.html
<TabView androidTabsPosition="bottom" class="fas h2 m-x-auto" selectedTabTextColor="green">
*tabItem="{title: '&#xf2bb;'}"
rynop / tabs.xml
Created December 28, 2018 03:40
standard FA icon
View tabs.xml
<TabView androidTabsPosition="bottom" class="fas h2 m-x-auto" selectedTabTextColor="green">
*tabItem="{title: '&#xf2bb;'}"