Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Looking into PyMC4

Peadar Coyle springcoil

💭
Looking into PyMC4
View GitHub Profile
@springcoil
springcoil / commands_to_setup_serverless_framework_on_ec2.sh
Last active May 26, 2020
Getting serverless framework working on Ubuntu 18.04 ec2 (with docker and a few other packages)
View commands_to_setup_serverless_framework_on_ec2.sh
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt update
sudo apt install -y default-jdk
sudo apt-get install -y xdg-utils #needed for serverless login
npm install
sudo apt install -y 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 -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt install -y docker-ce
sudo groupadd docker
View rds_remark.md

RDS

  • Remember that by default the db name is postgres not the DB Identifier. -- 3 hours
View gist:dee8b3242ee1128ad504c9743c3d7589
// @flow
import React from "react";
import {
Dimensions,
Image,
ImageBackground,
SafeAreaView,
Slider,
StyleSheet,
Text,
@springcoil
springcoil / pydata_requirements.txt
Created Mar 3, 2019
For padraic requirements.txt
View pydata_requirements.txt
absl-py==0.5.0
alabaster==0.7.12
altair==2.3.0
aniso8601==3.0.2
apispec==0.19.0
appdirs==1.4.3
appnope==0.1.0
argcomplete==1.9.3
arviz==0.3.1
asn1crypto==0.24.0
@springcoil
springcoil / s3_script_for_deleting_objects.py
Created Jan 12, 2019
This is a super hacky script for deleting objects one by one on a restricted s3 bucket
View s3_script_for_deleting_objects.py
import boto3
boto3.setup_default_session(profile_name='dev')
client = boto3.client('s3')
def delete_object(key_name):
return client.delete_object(Bucket='s3_bucket', Key=key_name )
delete_object('bad_image.jpg')
View diff_in_means.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@springcoil
springcoil / puppy_steps (1).ipynb
Created Dec 7, 2018
Further improvements to puppy steps
View puppy_steps (1).ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View puppy_steps.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@springcoil
springcoil / model_education.ipynb
Last active Nov 5, 2018
An early blog post - with a discussion of a regression model for number of hours of homework per state.
View model_education.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View rugby_model_arviz.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.