Skip to content

Instantly share code, notes, and snippets.

View IamFlowZ's full-sized avatar
🏎️

Dakota Lewallen IamFlowZ

🏎️
View GitHub Profile
@IamFlowZ
IamFlowZ / migrate.sh
Last active August 1, 2024 14:21
Bash script to migrate from CodeCommit
#!/bin/bash
# The script is pretty simple. It takes two arguments: the source directory and the new origin. It then adds the new origin as a remote to the source directory and pushes all branches to the new origin.
# After that, it asks if you want to replace the CodeCommit remote with the new origin. If you choose to replace it, the script will remove the CodeCommit remote and rename the new origin to origin.
# To run the script, you can use the following command:
# bash main.sh /path/to/source/directory
sourceDir=$1
newRemoteName=$2
newRemote=$3
interface FooParams {
name: string
}
class Foo {
constructor(params: FooParams) {
this = {...this, ...params}
}
}
@IamFlowZ
IamFlowZ / output.txt
Created October 25, 2018 18:38
When I instantiate "mine" outside of the if statement, it won't change the value from within the condition. But it will execute the "set a" portion of the statement inside the condition.
z: 45
a: 9
This is the value of z / x = 20
a: 20