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 requests | |
| import datetime | |
| import config # create file with necessary vars (or use env) | |
| headers = { | |
| 'Authorization': f'Bearer {config.supabase_token}', | |
| 'Content-Type': 'application/json' | |
| } | |
| response = requests.get( |
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/zsh | |
| # Run as ./inspect_snapshot.sh $DB_URI $OUTPUT_DIR | |
| inspect_help=$(supabase inspect db -h) | |
| cmds=("${(@f)$(echo "$inspect_help" | awk '/^[[:space:]]{2}[[:alpha:]]+/{print $1}')}") | |
| shift cmds #remove supabase at index 0 | |
| current_date=$(date +%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
| import time | |
| import psutil | |
| from bokeh.plotting import figure, show | |
| from bokeh.io import curdoc | |
| from bokeh.models import ColumnDataSource | |
| from bokeh.layouts import layout | |
| from threading import Thread | |
| # Prepare empty data source | |
| source = ColumnDataSource(data=dict(time=[], cpu=[])) |
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 json | |
| data = json.load(open('bookmarks.json','r')) | |
| html = """ | |
| <!DOCTYPE NETSCAPE-Bookmark-file-1> | |
| <!--This is an automatically generated file. | |
| It will be read and overwritten. | |
| DO NOT EDIT! --> | |
| <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> |
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
| call plug#begin('~/.vim/plugged') | |
| Plug 'junegunn/fzf.vim' | |
| Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
| Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
| call plug#end() | |
| set hidden | |
| nnoremap <Leader>f :Files<CR> | |
| nnoremap <Leader>b :buffers<CR>:buffer<Space> |
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
| # syntax=docker/dockerfile:1.0.0-experimental | |
| FROM fedora:33 | |
| ARG SSH_PRV | |
| ARG SSH_PUB | |
| ARG UNAME | |
| RUN dnf update -y && dnf install -y git make findutils iputils openssh-clients && dnf clean all |
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
| resource "aiven_kafka_connector" "kafka-bq-con" { | |
| project = var.project | |
| service_name = var.services | |
| connector_name = "kafka-bq-con" | |
| config = { | |
| "name": "bq-demo", | |
| "connector.class": "com.wepay.kafka.connect.bigquery.BigQuerySinkConnector", | |
| "tasks.max": "2", | |
| "topics": "test_topic", |
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
| terraform { | |
| # go get -u github.com/aiven/terraform-provider-aiven | |
| # cp $GOPATH/bin/terraform-provider-aiven $PWD/terraform.d/plugins/linux_amd64/terraform-provider-aiven_v1.2.4 | |
| required_providers { | |
| aiven = ">= 1.2.4" | |
| } | |
| } | |
| variable "aiven_api_token" { | |
| type = string |
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
| using System; | |
| using System.Linq; | |
| using System.Collections.Generic; | |
| using System.Net; | |
| using System.Net.Security; | |
| using System.Security.Cryptography.X509Certificates; | |
| using Cassandra; | |
| namespace cassandra_c_ | |
| { |
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
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "time" | |
| "github.com/akamensky/argparse" | |
| "github.com/tealeg/xlsx" | |
| ) |