This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import http from 'k6/http'; | |
| const SRA_ENDPOINT = 'https://sra.0x.org'; | |
| let pairs; | |
| export default function() { | |
| if (!pairs) { | |
| pairs = http.get(`${SRA_ENDPOINT}/v2/asset_pairs?perPage=300`).json().records; | |
| console.log(JSON.stringify(pairs)); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import { | |
| assetDataUtils, | |
| BigNumber, | |
| ContractWrappers, | |
| generatePseudoRandomSalt, | |
| Order, | |
| orderHashUtils, | |
| signatureUtils, | |
| SignedOrder, | |
| SignerType, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 0xbA648D24bD63c90f19E3161b6FF813D3bf9e347C | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| set -e | |
| : "${CLOUDFORMATION_STACK?must be set, e.g CLOUDFORMATION_STACK='Event-Backbone-Dev-Jacob' }" | |
| : "${CLOUDFORMATION_FILE?must be set, e.g CLOUDFORMATION_FILE='CLOUDFORMATION_FILE=./cloudformation/event-backbone/event-backbone.yaml' }" | |
| : ${AWS_DEFAULT_REGION='ap-southeast-2'} | |
| : ${S3_BUCKET='test'} | |
| : ${CHANGESET_NAME="$CLOUDFORMATION_STACK$BUILDKITE_NUMBER"} | |
| # Upload to s3, some files are too big | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| group_name='<log-group-name>' | |
| start_seconds_ago=3600 | |
| aws_cmd_opts= # e.g. "--profile <profile-name>" | |
| # Usage: get_loglines "<log-group-name>" <start-time> | |
| get_loglines() { | |
| aws $aws_cmd_opts --output text logs filter-log-events \ | |
| --log-group-name "$1" \ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | fstash() { | |
| local out q k sha | |
| while out=$( | |
| git stash list --pretty="%C(yellow)%h %>(14)%Cgreen%cr %C(blue)%gs" | | |
| fzf --ansi --no-sort --query="$q" --print-query \ | |
| --expect=ctrl-d,ctrl-b); | |
| do | |
| IFS=$'\n'; set -f | |
| lines=($(<<< "$out")) | |
| unset IFS; set +f | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| # Original idea from here: http://superuser.com/questions/810582/iterm-osx-terminal-change-text-margin-from-edge-of-window | |
| # Download, unzip, clean up. | |
| wget --quiet https://github.com/gnachman/iTerm2/archive/master.zip | |
| unzip master.zip | |
| rm master.zip | |
| # Go into project directory. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/sh | |
| echo "-----BEGIN CERTIFICATE----- | |
| MIIDCDCCAnGgAwIBAgIJAL/rbFkj0BMCMA0GCSqGSIb3DQEBCwUAMIGcMQswCQYD | |
| VQQGEwJBVTERMA8GA1UECAwIVmljdG9yaWExEjAQBgNVBAcMCU1lbGJvdXJuZTEX | |
| MBUGA1UECgwOSG9vcm9vIFB0eSBMdGQxITAfBgNVBAsMGEhvb3JvbyBTZWN1cml0 | |
| eSAoSG9vU2VjKTEqMCgGA1UEAwwhSG9vcm9vIFByaW1hcnkgUm9vdCBDQSAtIElu | |
| dGVybmFsMB4XDTE0MTIwMjAxMzQyMVoXDTI0MTEyOTAxMzQyMVowgZwxCzAJBgNV | |
| BAYTAkFVMREwDwYDVQQIDAhWaWN0b3JpYTESMBAGA1UEBwwJTWVsYm91cm5lMRcw | |
| FQYDVQQKDA5Ib29yb28gUHR5IEx0ZDEhMB8GA1UECwwYSG9vcm9vIFNlY3VyaXR5 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Input | |
| { task_list: 1, | |
| tasks: | |
| [{:user=>"jacob", :task=>"feed cat", :id => 1}, | |
| {:user=>"jacob", :task=>"mow lawn", :id => 2}, | |
| {:user=>"steve", :task=>"feed lawn", :id => 1}, | |
| {:user=>"steve", :task=>"mow dog", :id => 2}] | |
| } | |
| # This seems possible | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | " find file in git repo | |
| function! ChooseFile() | |
| let dir = expand("%:h") | |
| if empty(dir) | let dir = getcwd() | endif | |
| let root = system("cd " . dir . " && git rev-parse --show-toplevel") | |
| if v:shell_error != 0 | echo "Not in a git repo" | return | endif | |
| let root = root[0:-2] | |
| let selection = system("cd " . root . " && git ls-files -co --exclude-standard | choose") | 
NewerOlder