Skip to content

Instantly share code, notes, and snippets.

@corkupine
corkupine / tf-import-stack.sh
Created October 31, 2022 18:39 — forked from jmlrt/tf-import-stack.sh
import terraform stack resources helper
#!/usr/bin/env bash
# List terraform resources in the current directory and ask their arn to import them into terraform state
RESOURCES_LIST=$(awk -F\" '/^resource "/ {print $2"."$4}' *.tf)
for resource in ${RESOURCES_LIST}
do
read -p "Enter ARN for resource ${resource} (type none to not import it): " arn
if [[ ${arn} != "none" ]]
@corkupine
corkupine / README.md
Created September 13, 2012 14:45 — forked from jcreamer898/README.md
Using amplifyjs as with RequireJS 2.0

Using AmplifyJS with RequireJS 2.0

With the lastest version of Require, a new config object was introduced, the shim.

http://requirejs.org/docs/api.html#config-shim

That allows Amplify to now be used within AMD projects.

Have Fun!

@corkupine
corkupine / angular-auth.js
Created August 23, 2012 17:40 — forked from witoldsz/angular-auth.js
Angular Auth (work-in-progress)
/**
* @license Angular Auth
* (c) 2012 Witold Szczerba
* License: MIT
*/
angular.module('angular-auth', [])
/**
* Holds all the requests which failed due to 401 response,
* so they can be re-requested in the future, once login is completed.