List clusters
pg_lsclusters
Start Clusters
sudo pg_ctlcluster 9.6 main start
| lsb_release -a |
List clusters
pg_lsclusters
Start Clusters
sudo pg_ctlcluster 9.6 main start
| https://stackoverflow.com/questions/58880989/connecting-visual-studio-code-vscode-to-virtualbox-vm | |
| shut off VM | |
| Add new network adapter | |
| add as host only | |
| ifconfig | |
| ssh john@ip |
| git filter-branch --force --index-filter \ | |
| "git rm --cached --ignore-unmatch gisdata/tiger.dump" \ | |
| --prune-empty --tag-name-filter cat -- | |
| git push | |
| git checkout feature_branch | |
| git reset --soft master | |
| git add -A && git commit -m "commit message goes here" |
from microsoft/vscode-remote-release#2518
look for line similar to
\ln /home/#####/.vscode-server/bin/78a4c91400152c0f27ba4d363eb56d2835f9903a/vscode-remote-lock.#####.78a4c91400152c0f27ba4d363eb56d2835f9903a.target /home/#####/.vscode-server/bin/78a4c91400152c0f27ba4d363eb56d2835f9903a/vscode-remote-lock.#####.78a4c91400152c0f27ba4d363eb56d2835f9903a
[13:55:17.276] stderr> ln: failed to create hard link ‘/home/#####/.vscode-server/bin/78a4c91400152c0f27ba4d363eb56d2835f9903a/vscode-remote-lock.#####.78a4c91400152c0f27ba4d363eb56d2835f9903a’: File exists
[13:55:17.276] > Installation already in progress...
Then go delete the .target file
| # scp <user>@<ec2-ip>:<path/to/file/to/download.txt> <filepath/on/local.txt> | |
| scp [email protected]:~/new_results.txt new_results.txt | |
| scp [email protected]:/var/luna/user_data.tsv user_data.tsv | |
| # to send to the EC2 | |
| scp new_results.txt [email protected]:~/new_results.txt | |
| scp [email protected]:/var/crape/BulkLoans.20211001_20220124_results.tsv BulkLoans.20211001_20220124_results.tsv |
get all the commits which have deleted files and the files deleted;
git log --diff-filter=D --summary
to restore the deleted file.
git checkout $commit~1 path/to/file.ext
where $commit is the value of the commit you've found at step 1, e.g. e4cf499627