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/env ruby | |
require 'json' | |
require 'tempfile' | |
# Read input from stdin | |
input_data = $stdin.read | |
# Parse JSON, exit non-zero if it fails | |
parsed_input = JSON.parse(input_data) |
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/env ruby | |
require 'rugged' | |
require 'optparse' | |
# Parse command line options | |
options = { | |
repo_path: '.', | |
branch: 'main' | |
} |
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
*.yml.enc diff=encrypted |
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
❯ GIT_TRACE_PACKET=1 git clone https://github.com/schacon/blink | |
Cloning into 'blink'... | |
16:58:04.532660 pkt-line.c:85 packet: git< # service=git-upload-pack | |
16:58:04.533707 pkt-line.c:85 packet: git< 0000 | |
16:58:04.533715 pkt-line.c:85 packet: git< version 2 | |
16:58:04.533731 pkt-line.c:85 packet: git< agent=git/github-d6c9584635a2 | |
16:58:04.533737 pkt-line.c:85 packet: git< ls-refs=unborn | |
16:58:04.533742 pkt-line.c:85 packet: git< fetch=shallow wait-for-done filter | |
16:58:04.533751 pkt-line.c:85 packet: git< server-option | |
16:58:04.533756 pkt-line.c:85 packet: git< object-format=sha1 |
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
[column] | |
ui = auto | |
[branch] | |
sort = -committerdate | |
[tag] | |
sort = version:refname | |
[init] | |
defaultBranch = main | |
[diff] | |
algorithm = histogram |
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 | |
# Colors | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NO_COLOR='\033[0m' | |
BLUE='\033[0;34m' | |
YELLOW='\033[0;33m' | |
NO_COLOR='\033[0m' |
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
// first, grab a list of the field names in a table | |
SELECT STRING_AGG(column_name, ", \n" ORDER BY ordinal_position) | |
FROM [project_name].[dataset_name].INFORMATION_SCHEMA.COLUMNS | |
where table_name = 'blah' | |
group by table_name |
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
version: '3' | |
services: | |
app: | |
build: | |
context: .. | |
dockerfile: .devcontainer/Dockerfile | |
args: | |
VARIANT: 2.6 | |
NODE_VERSION: "lts/*" | |
volumes: |
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
select month, months_out from ( | |
select month, | |
GENERATE_ARRAY(0, DATE_DIFF(CURRENT_DATE(), month, MONTH)) as months, | |
from UNNEST( | |
(select | |
GENERATE_DATE_ARRAY(CAST([STARTING_DATE] AS DATE), CAST(max(date_field) AS DATE), | |
INTERVAL 1 MONTH) as date | |
from [SOME_TABLE_WITH_A_DATE_FIELD]) | |
) as month | |
) CROSS JOIN UNNEST(months) as months_out |
NewerOlder