Skip to content

Instantly share code, notes, and snippets.

View acannistra's full-sized avatar
🌲

Tony Cannistra acannistra

🌲
View GitHub Profile

Need to sync a fork with the main repo?

Let's say you've forked a repository and cloned it to your local machine. Your Favorite Collaborator has added a pull request and had it approved by the repository maintainer; you'd now like that code in your personal fork. Here's how.

Make sure you've cded into your fork of the repository on your computer.

1. set upstream

You need to tell the fork where its original version lives. This is called "setting the upstream":

@acannistra
acannistra / save-your-work.md
Last active September 11, 2018 20:15
Saving Work from GeoHackWeek JupyterHub

Preserving Your Work on JupyterHub

This week we're using a great service called JupyterHub, which allows everyone at GeoHackWeek to learn using the same computing environment. However, though you can edit the files and experiment with the the tutorial_contents repository that your personal jupyterhub contains, you won't be able to git push immediately. This is because the default version of the repo points to the geohackweek version on GitHub, and not your personal version.

Simply put: you might want to save your work. Here's how.

1. Open A Terminal on JupyterHub.

Navigate to https://jupyterhub.geohackweek.org/. Find the New dropdown menu, and click Terminal.

### Keybase proof
I hereby claim:
* I am acannistra on github.
* I am tonycannistra (https://keybase.io/tonycannistra) on keybase.
* I have a public key ASA7Fxdn_SnFgcHur7-9rqZZdMnUokp5e9Z3b7gKYuY_bAo
To claim this, I am signing this object:
tony@acadia ~>
myria-cluster create --instance-type m4.large cse544-hw3 --role myriaRole
Checking for existence/readability of private key file '/Users/tony/.ssh/tony-myria_us-west-2.pem'...
Checking for existence of key pair 'tony-myria'...
Creating security group 'cse544-hw3' in region 'us-west-2'...
Launching instances...
Tagging instances...
Waiting for all instances to become reachable...
Not all instances reachable, waiting 60 seconds...
Not all instances reachable, waiting 60 seconds...
TonyC@postulate ~/D/T/F/1/a/3_written (master)> dig www.halliganhelper.com
; <<>> DiG 9.8.3-P1 <<>> www.halliganhelper.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51446
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 4, ADDITIONAL: 4
;; QUESTION SECTION:
;www.halliganhelper.com. IN A
TonyC@postulate ~/D/T/F/1/a/3_written (master)> dig halliganhelper.com
; <<>> DiG 9.8.3-P1 <<>> halliganhelper.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35642
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 3
;; QUESTION SECTION:
;halliganhelper.com. IN A
wget https://bitbucket.org/fenics-project/dorsal/get/master.tar.gz
tar xvzf master.tar.gz
cd fenics-project-dorsal-ec08f6c01967/
module load openmpi
./dorsal.sh FEniCS/platforms/supported/rhel6.platform
#include <iostream>
using namespace std;
int main()
{
string shour, sday, smonth, syear;
string ehour, eday, emonth, eyear;
string yn;
cout << "Start Hour: ";
cin >> shour;