Skip to content

Instantly share code, notes, and snippets.

### SETUP
require 'rspec'
### LOGIC (fix me)
def hello(who)
"hello #{who}!"
end
### TEST CODE (don't touch me)

Keybase proof

I hereby claim:

  • I am gregthegreek on github.
  • I am gregthegreek (https://keybase.io/gregthegreek) on keybase.
  • I have a public key whose fingerprint is B5A8 D964 F5E3 16EB 15A8 AC33 D186 8E8B 8C3E 994B

To claim this, I am signing this object:

0x1c81B7B8a5AaceD299BbBCBD2E400DbcD7535E06
0xCc739854Ff20d6ebeb45D1B1452B4878Fcb7d0F6
https://imgur.com/B6owHKj
@GregTheGreek
GregTheGreek / git_clone.sh
Last active July 4, 2019 06:20
Bash function to override git clone similar to `go get`
# When gc is run:
# 1) Create a directory from the host if it doesn't exists (github.com, gitlab.com, bitbucket.org, etc...)
# 2) Clone the repository into the host directory based on the repo name
# 3) cd into the newly cloned repository
function gc {
url=$1;
# Choose appropriate path
download_path="~/<YOUR_PATH>/"
full_path=$(echo $url | sed 's/.*@//' | sed -e 's/.git$//' | sed 's/:/\//g')
fpath=$download_path$full_path
608060405234801561001057600080fd5b506040516108723803806108728339818101604052602081101561003357600080fd5b8101908080519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060018060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001819055508060ff166002816100fd9190610104565b5050610157565b81548183558181111561012b5781836000526020600020918201910161012a9190610130565b5b505050565b61015491905b808211156101505760008082016000905550600101610136565b5090565b90565b61070c806101666000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80635c19a95c14610051578063609ff1bd146100955780639e7b8d61146100b9578063b3f98adc146100fd575b600080fd5b6100936004803603602081101561006757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061012e565b005b61009d61
2020-09-15T19:12:44.4259355Z ##[section]Starting: Request a runner to run this job
2020-09-15T19:12:45.1947423Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'ubuntu-latest'
2020-09-15T19:12:45.1947515Z Can't find any online and idle self-hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2020-09-15T19:12:45.1947815Z Found online and idle hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2020-09-15T19:12:45.3591561Z ##[section]Finishing: Request a runner to run this job
2020-09-15T19:12:54.1274304Z Current runner version: '2.273.2'
2020-09-15T19:12:54.1304965Z ##[group]Operating System
2020-09-15T19:12:54.1305828Z Ubuntu
2020-09-15T19:12:54.1306065Z 18.04.5
2020-09-15T19:12:54.1306332Z LTS