Skip to content

Instantly share code, notes, and snippets.

View fermayo's full-sized avatar

Fernando Mayo fermayo

View GitHub Profile
@rberrelleza
rberrelleza / helm+cnd.md
Last active December 4, 2018 21:32
Helm development
  1. Set the context of kubectl with your dev cluster and your namespace. (e.g. kubectl config use-context gke_development-123_europe-west4-c_europe --namespace=ramiro)
  2. Update to the lastest cnd version: go get github.com/okteto/cnd
  3. Install syncthing
  4. Export your deployment manifest: kubectl get --export deployment "$YOUR_DEPLOYMENT" -oyaml > deployment.yml
  5. Create a cnd.yml file:
swap:
  deployment:
    file: deployment.yml
 container: api 

How we incorporate next and cloudfront (2018-04-21)

Feel free to contact me at robert.balicki@gmail.com or tweet at me @statisticsftw

This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!

It assumes some knowledge of AWS.

Goals

@adrianhall
adrianhall / AppSync-Example.yaml
Created April 13, 2018 16:01
An example CloudFormation template for AWS AppSync
---
Description: AWSAppSync DynamoDB Example
Resources:
GraphQLApi:
Type: "AWS::AppSync::GraphQLApi"
Properties:
Name: AWSAppSync DynamoDB Example
AuthenticationType: AWS_IAM
PostDynamoDBTableDataSource:
@singledigit
singledigit / cognito.yaml
Last active June 4, 2024 05:19
Create a Cognito Authentication Backend via CloudFormation
AWSTemplateFormatVersion: '2010-09-09'
Description: Cognito Stack
Parameters:
AuthName:
Type: String
Description: Unique Auth Name for Cognito Resources
Resources:
# Creates a role that allows Cognito to send SNS messages
SNSRole:
@elmarcoh
elmarcoh / table_init.js
Created October 26, 2012 21:35
Using Tastypie as an Ajax Source for DataTables
$('#participantes-table').dataTable({
bProcessing: true,
bServerSIde: true,
sAjaxSource: "/path/to/your/tastypie/api/list/objects/?format=json",
sAjaxDataProp: "objects",
aoColumns: [
// Put the resource name that corresponds to each table column
{'mData': "your"},
{'mData': "columns"},
],