Skip to content

Instantly share code, notes, and snippets.

View swoldemi's full-sized avatar
🧠

Simon swoldemi

🧠
  • ImHilariousIKnow
View GitHub Profile
@swoldemi
swoldemi / cmd.out
Created October 10, 2020 00:01
fhir-works-on-aws-deployment - Unsolved cfn-python-lint rules
W3005 Obsolete DependsOn on resource (FhirServerLambdaFunction), dependency already enforced by a "Ref" at Resources/FhirServerProvConcLambdaAlias/Properties/FunctionName/Ref
.serverless/cloudformation-template-update-stack.json:332:7
W3005 Obsolete DependsOn on resource (DdbToEsLambdaRole), dependency already enforced by a "Fn:GetAtt" at Resources/DdbToEsLambdaFunction/Properties/Role/Fn::GetAtt
.serverless/cloudformation-template-update-stack.json:412:9
W3005 Obsolete DependsOn on resource (IamRoleCustomResourcesLambdaExecution), dependency already enforced by a "Fn:GetAtt" at Resources/CustomDashresourceDashapigwDashcwDashroleLambdaFunction/Properties/Role/Fn::GetAtt
.serverless/cloudformation-template-update-stack.json:731:9
@swoldemi
swoldemi / main.go
Created March 11, 2020 08:04
An AWS Lambda function; just testing
package main
import (
"log"
"runtime"
"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda"
"github.com/aws/aws-sdk-go/aws"
import boto3
import csv
import random
from datetime import timedelta, datetime
from faker import Faker
from movies import movie_list
genres = [
"horror", "comedy", "romance",
"romcom", "action", "adventure",
@swoldemi
swoldemi / voice.xml
Created March 23, 2019 06:40
Sample TwilML XML for EmergenSeek
<Response>
<Say voice="Polly.Kimberly">Hello from EmergenSeek!</Say>
<Play>http://demo.twilio.com/docs/classic.mp3</Play>
</Response>
@swoldemi
swoldemi / semaphore_deploy_gcloud_vm.sh
Last active November 10, 2018 15:22
Setup the Google Cloud Platform CLI on semaphoreci.com and update an existing Compute Engine container
#!/bin/bash
# Script to deploy my DiscordGo bot to a Google Cloud Platform Compute Engine VM
# 1. Set the $VERSION environment variable in your build settings (i.e. 220.0.0)
# 2. Create a service account JSON for your build. Encrypt it with GPG and commit it to the repository.
# 3. Include the decryption key for your service account's JSON credentials as the DECRYPTION_KEY environment variable
# 4. Set the COMPUTE_ZONE environment variable (i.e us-east4-c)
# 5. Set the GCP_PROJECT_ID environment variable
# 6. Set the INSTANCE_NAME environment variable
# 7. Set the IMAGE_NAME environment variable
@swoldemi
swoldemi / redirector.py
Created September 7, 2018 02:38
A 80 -> 443 HTTP 302 redirector
"""Provides automatic redirection from port 80 to port 443.
Source: https://www.elifulkerson.com/projects/http-https-redirect.php
Updated for Python 3.6+
"""
from select import *
from socket import *
@swoldemi
swoldemi / openDoor.html
Last active February 16, 2018 01:30
How to open a door onclick in A-Frame
<head>
<script>
var door_opened_position = new Object({x: 1.716, y: 0, z: 1.680}};
var door_closed_position = new Object({x: 1.716, y: 0, z: 1.778});
var door_closed_rotation = new Object({x: 0, y: 90, z: 0}};
var door_opened_rotation = new Object({x: 0, y: 0, z: 0}};
var isOpened = false;
var isClosed = true;
</script>
@swoldemi
swoldemi / Sky-Instructions.md
Last active February 13, 2018 20:22
How to add a sky with dynamic 'sun' lighting to your A-Frame scene

Adding a Sky to A-Frame

sky.js sunSetter.js

  1. Copy/download the required Javascript files (located above) within your <head></head> tags. Make sure to reference them correctly so everything actually loads
  <!--Include helper script for skybox-->
	<script src="libs/sky.js"></script>
  <!--Include helper script for skybox-->
	

Keybase proof

I hereby claim:

  • I am swoldemi on github.
  • I am swoldemi (https://keybase.io/swoldemi) on keybase.
  • I have a public key ASCfJ_CCCnI2x5VpdrQ3khzLpdBXhoNMTx8ZZDsgFFsxMQo

To claim this, I am signing this object:

@swoldemi
swoldemi / The Technical Interview Cheat Sheet.md
Created July 10, 2017 07:04 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.