Skip to content

Instantly share code, notes, and snippets.

@jim80net
jim80net / tf_move_state.sh
Last active February 25, 2022 10:21
Move terraform state between projects.
#!/usr/bin/env bash
##
# Usage: tf_move_state.sh source_directory target_directory source_resource_name <target_resource_name (uses source_resource_name if not provided)>
# Provide source and target directories using relative paths.
# WARNING: TEST ON AN INCONSPICUOUS AREA AS STAINING MAY OCCUR
# Credit to https://github.com/mcalhoun
set -e
@rubencaro
rubencaro / README.md
Last active April 18, 2024 11:47
Python installation guide

Python installation guide

These are my notes, not a generic solution. They are not meant to work anywhere outside my machines. Update version numbers to whatever are the current ones while you do this.

Install asdf and its python plugin, then install Python

asdf lives in https://github.com/asdf-vm/asdf

Follow its installation instructions, which at the moment of writing were:

main.ts
-------
loadEnvironment(environment.environmentUrl)
.then(env => {
if (env.production) {
enableProdMode();
}
bootstrap();
});
@mrgoos
mrgoos / app.module.ts
Last active May 27, 2022 19:42
Intercepting http request/respons in Angular 2. Works from version 2.3.0.
...
...
providers: [
{ provide: Http, useClass: ExtendedHttpService }
]
...
...