Skip to content

Instantly share code, notes, and snippets.

View wontondon's full-sized avatar
:bowtie:

Donnie McNeal wontondon

:bowtie:
View GitHub Profile
@wontondon
wontondon / context-providers.tsx
Last active November 2, 2022 18:52
Sample Next 13 w/ Chakra context
'use client';
import React, { useState } from 'react';
import { ChakraProvider } from '@chakra-ui/react';
import { theme } from './theme';
export default function ContextProviders({
children,
}: {
children: React.ReactNode;
@wontondon
wontondon / LICENSE
Last active August 25, 2022 00:35
ReactRouterV6 Sentry Support
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
@wontondon
wontondon / cognito-signup.sh
Created February 23, 2022 15:12 — forked from jaymes-bearden/cognito-signup.sh
Bash script - AWS CLI Cognito User Sign Up using a client app with client secret
#!/bin/bash
# Found in user pool "General Settings / App clients" -- you can always add another if needed
APP_CLIENT_ID="abcdefg1234567"
APP_CLIENT_SECRET="a1b2c3d4e5f6g7h8i9j10"
# User details for Cognito
USERNAME=$(uuidgen) # Cognito user name -- if you don't have this aliased, use an email for the username
EMAIL="test.email@domain.com" # Extra attributes (specified when creating the user pool)
PASSWORD="MyTestPassword!"
#-*-coding: utf-8-*-
"""
Simple script to dump documents out of a CouchDB database and straight into
a Couchbase instance.
"""
import time
import sys
import argparse
@wontondon
wontondon / AssetDatabaseOpenHelper.java
Created October 8, 2011 03:12
Copy sqlite database from assets dir - Android
package com.javatarts.basketballgm.data;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;