This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
NEUTU_ENV=managed_neutu | |
NEUTU_WRAPPER_VERSION=80 | |
NEWT_GIST_URL=https://gist.githubusercontent.com/pgunn/86c6dc47bd48bfec76364a421934a34d/raw/ | |
NEWT_TEMPFILE=/tmp/new_newt | |
NEWT_PATH=$HOME/newt | |
# General arguments for whenever we do a "conda run" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from contextlib import contextmanager | |
@contextmanager | |
def do_itmer(operation_name): | |
pre_time = time.time() | |
yield | |
post_time = time.time() | |
print(f"Operation {operation_name} took {int(post_time - pre_time)} seconds") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
dropdb sample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am pgunn on github. | |
* I am dachte (https://keybase.io/dachte) on keybase. | |
* I have a public key whose fingerprint is 3CB9 D674 DC08 477C 5B91 605B C6CD 7A01 1175 D6F0 | |
To claim this, I am signing this object: |