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
| #!/usr/bin/python | |
| """AWS EC2 SSH config Generator.""" | |
| # edit these: | |
| # * path_to_config | |
| # * path_to_ssh_key | |
| # remember the path_to_config must be write-able by the script | |
| # before running, install aws_cli and login with your credentials | |
| # then move to your .ssh folder and in your .ssh/config file |
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
| # this was provided by AWS reps | |
| WITH base_skew AS ( | |
| SELECT id as tbl FROM stv_tbl_perm GROUP BY id | |
| HAVING SUM(rows) > (SELECT 1000000 * ( MAX(node) + 1) FROM stv_slices) | |
| AND (MAX(rows) / (MIN(rows) + 1.0)) >= 2.0 | |
| AND SUM(rows) <> (MAX(rows) * (SELECT MAX(node) + 1 FROM stv_slices)) | |
| ), | |
| table_slices AS ( | |
| SELECT t.slice, t.id, COUNT(b.blocknum) s_mb, COUNT(DISTINCT col) * COUNT(DISTINCT unsorted) ss_mb |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
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
| // | |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
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
| #!/usr/bin/ruby | |
| require 'json' | |
| seg_rx = /segment[0-9]+\.ts/ | |
| file_num_rx = /^segment([0-9]+)/ | |
| pwd = "#{`pwd`.strip}" | |
| clean_sources = false | |
| clean_joins = false |
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
| # Ruby class for automating 'git bisect' with Rails tests | |
| class BisectTest | |
| def initialize(files_to_test: , last_good_commit: ) | |
| @files_to_test = files_to_test.is_a?(Array) ? files_to_test : [files_to_test] | |
| @last_good_commit = last_good_commit | |
| end | |
| # Function to run the test suite and return true if the test passed, false if it failed | |
| def test_command | |
| "bundle exec rails test #{@files_to_test.join(' ')}" |
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
| always_preserve_branches = [ | |
| 'main', | |
| 'staging', | |
| 'development', | |
| 'ci/data-mover', | |
| 'ci/data-mover-test', | |
| ] | |
| a,b,c = Open3.capture3("git branch -r | grep -v '\\->' | cut -d'/' -f2-") |
OlderNewer