Skip to content

Instantly share code, notes, and snippets.

@jmonegro
Created March 8, 2010 17:33
Show Gist options
  • Save jmonegro/325383 to your computer and use it in GitHub Desktop.
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>
@jonberliner
Copy link

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
    type chmod +x launch_pytorch_gpu_instance.sh into terminal to be able to run script
    type source 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

@jonberliner
Copy link

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
    type chmod +x launch_pytorch_gpu_instance.sh into terminal to be able to run script
    type source 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

@dpliushchaiwork
Copy link

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"}

@elenalape
Copy link

love how this is number 3 search result when you google "github gist"

@adrianjguerrero
Copy link

love how this is number 3 search result when you google "github gist"

same

Copy link

ghost commented Sep 10, 2019

It's the top result now. Sigh ...

@roostercrab
Copy link

Lol

@alexsaalberg049
Copy link

alexsaalberg049 commented Oct 10, 2019

lol, if anyone is lost just hit the + in the top right of the entire page

@vinpac
Copy link

vinpac commented Nov 25, 2019

@github's search console team

@Drillgon200
Copy link

Now why was this chosen as the top result for 'github gist'???

@ola-wale
Copy link

why is this the top result 👀

@alexsaalberg049
Copy link

Hit the + at the top right of the entire page (next to your user icon) to make a new gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment