-
-
Save jmonegro/325383 to your computer and use it in GitHub Desktop.
<li> | |
<h3><a href="#">basic methods</a></h3> | |
<pre class="code"> | |
<code class="ruby"> | |
def method argument | |
return splat(argument) | |
end | |
</code> | |
</pre> | |
</li> |
TODO: create IAM role with
- BigQuery User
- Compute Admin
- Storage Admin
install your system flavor of google cloud sdk at
[https://cloud.google.com/sdk/docs/quickstart-macos]
download google cloud sdk library for python at
in terminal, enter pip install --upgrade google-cloud-storage
set up ssh access for manymoons project
open the zipped json access key for manymoons credentials (password ripkate)
-
put the credential wherever you please on your local machine (we recommend ~/.credentials/[FILE_NAME].json)
-
add the line:
export GOOGLE_APPLICATION_CREDENTIALS="PATH_TO_CREDENTIAL_FILE_NAME].json"
to the file '/.bash_profile' (or ``/.bashrc` if you have one)
run source ~/.bash_profile
in the command line
creating and accessing an instance
create a new instance
- TODO: add script
launch_pytorch_gpu_instance.sh
to onboarding
typechmod +x launch_pytorch_gpu_instance.sh
into terminal to be able to run script
typesource launch_pytorch_gpu_instance.sh
into terminal to launch instance
access an instance
start an instance
gcloud compute start instance {INSTANCE_NAME}
log in with gcloud compute ssh {INSTANCE_NAME} -- -L 8080:localhost:8080
set up virtual environment
sudo apt-get install python3-venv
python3 -m venv env
source env/bin/activate
screenshop screenshop repos
TODO make this installable in virtualenv with requirements.txt
git clone https://github.com/ScreenShopIt/dataradeh20.git
git clone https://github.com/ScreenShopIt/lsk.git
add to python path
cat export PYTHONPATH={PATH_TO_WHERE_YOU_GIT_CLONED_REPOS}:$PYTHONPATH
> ~/.bash_profile
NEED ACCESS CREDENTIALS
2018-11-15 11:06:20.045 > https://ekmp.rzd.ru:443/v3.0/timetable/search ->
{"dt0":"15.11.2018","dir":0,"language":"ru","checkSeats":0,"tfl":3,"code0":"2040600","withoutSeats":"y","protocolVersion":23,"platform":"IOS","deviceGuid":"59ACACE79B1346F6B7719DF41C5691ED","sessionId":"t-uKxqrfs4nRAXrCvFaErDYSG2S3OBDqyjDk","st0":"КУРГАН","ti0":"0-24","st1":"КУРГАН-ПРИГОРОД","version":"1.5","md":0,"code1":"2040783"}
love how this is number 3 search result when you google "github gist"
love how this is number 3 search result when you google "github gist"
same
It's the top result now. Sigh ...
Lol
lol, if anyone is lost just hit the + in the top right of the entire page
@github's search console team
Now why was this chosen as the top result for 'github gist'???
why is this the top result 👀
Hit the + at the top right of the entire page (next to your user icon) to make a new gist.
TODO: create IAM role with
install your system flavor of google cloud sdk at
[https://cloud.google.com/sdk/docs/quickstart-macos]
download google cloud sdk library for python at
in terminal, enter
pip install --upgrade google-cloud-storage
set up ssh access for manymoons project
open the zipped json access key for manymoons credentials (password ripkate)
put the credential wherever you please on your local machine (we recommend ~/.credentials/[FILE_NAME].json)
add the line:
export GOOGLE_APPLICATION_CREDENTIALS="PATH_TO_CREDENTIAL_FILE_NAME].json"
to the file '
/.bash_profile' (or ``/.bashrc` if you have one)run
source ~/.bash_profile
in the command linecreating and accessing an instance
create a new instance
launch_pytorch_gpu_instance.sh
to onboardingtype
chmod +x launch_pytorch_gpu_instance.sh
into terminal to be able to run scripttype
source launch_pytorch_gpu_instance.sh
into terminal to launch instanceaccess an instance
start an instance
gcloud compute start instance {INSTANCE_NAME}
log in with
gcloud compute ssh {INSTANCE_NAME} -- -L 8080:localhost:8080
set up virtual environment
sudo apt-get install python3-venv
python3 -m venv env
source env/bin/activate
screenshop screenshop repos
TODO make this installable in virtualenv with requirements.txt
git clone https://github.com/ScreenShopIt/dataradeh20.git
git clone https://github.com/ScreenShopIt/lsk.git
add to python path
cat
export PYTHONPATH={PATH_TO_WHERE_YOU_GIT_CLONED_REPOS}:$PYTHONPATH
> ~/.bash_profileNEED ACCESS CREDENTIALS