This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
// Give this a name that is useful to you. This will be shown in the VS Code | |
// Maybe use your app name, your company name or something else that makes sense to you. | |
"name": "My awesome developement environment", | |
// This specifies that we want to use a pre-built Python 3.11 container | |
// which is based on the Debian Bullseye OS. | |
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye", | |
// The features are pre-installed capabilities that you can use in your development environment: | |
"features": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
s3_client = boto3.client('s3') | |
def is_bucket_empty(bucket_name): | |
try: | |
response = s3_client.list_objects( | |
Bucket=bucket_name, | |
MaxKeys=1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
HOSTNAME='dockerhost.local' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:focal | |
RUN apt-get update | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential libreadline-dev curl unzip git libssl-dev libz-dev | |
RUN curl -R -O http://www.lua.org/ftp/lua-5.3.5.tar.gz && \ | |
tar -zxf lua-5.3.5.tar.gz && \ | |
cd lua-5.3.5 && \ | |
make linux test && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .ebextensions/shoryuken.config | |
# Based on the conversation in https://github.com/phstc/shoryuken/issues/48 | |
files: | |
"/opt/elasticbeanstalk/hooks/appdeploy/post/50_restart_shoryuken": | |
mode: "000777" | |
content: | | |
APP_DEPLOY_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k app_deploy_dir) | |
LOG_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k app_log_dir) | |
PID_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k app_pid_dir) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "Underlying VPC config and shared infra support services", | |
"Parameters" : { | |
"SSHLocation" : { | |
"Description" : "IP Address allowed to SSH into the bastion server", | |
"Type" : "String", | |
"MinLength" : "9", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+// Description: | |
+// Gives you a Tom style motivation | |
+// | |
+// Dependencies: | |
+// None | |
+// | |
+// Configuration: | |
+// None | |
+// | |
+// Commands: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pieces | |
barrels | |
british thermal unit | |
carat | |
centigram | |
centimeters | |
clean yield Kilogram | |
content kilogram | |
content tons | |
cubic centimeters |