This file contains 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 ( | |
"sync" | |
"testing" | |
) | |
type MyStruct struct { | |
FirstName string | |
LastName string |
This file contains 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
type Pool interface{} | |
func (p *Pool) Get() any |
This file contains 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
type MyStruct struct { | |
FirstName string | |
LastName string | |
} | |
func NewMyStruct(firstName string, lastName string) MyStruct{ | |
return MyStruct{ | |
FirstName: firstName, | |
LastName: lastName | |
} |
This file contains 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 repositories | |
import ( | |
"context" | |
"fmt" | |
"github.com/ory/dockertest/v3" | |
"github.com/ory/dockertest/v3/docker" | |
"go.mongodb.org/mongo-driver/mongo" | |
"go.mongodb.org/mongo-driver/mongo/options" | |
"log" |
This file contains 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 os | |
from prometheus_client import start_http_server | |
from prometheus_client import Histogram, Summary, Counter | |
from app_io.constants import PROMETHEUS_PORT | |
class MetricType: | |
SUMMARY='SUMMARY' | |
HISTOGRAM='HISTOGRAM' | |
COUNTER='COUNTER' |
This file contains 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
audio_processor_config: | |
feat_language_identification: False | |
# defaults to hi-IN | |
language: '' | |
# path of the files on gcs which need to be processed | |
remote_raw_audio_file_path: '' | |
snr_done_folder_path: '' |
This file contains 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 article -> https://gravitational.com/blog/kubectl-gke/ | |
Installation | |
sudo apt-get install uuid | |
install cfssl, this article => https://www.pimwiddershoven.nl/entry/install-cfssl-and-cfssljson-cloudflare-kpi-toolkit | |
then this script => https://raw.githubusercontent.com/gravitational/teleport/master/examples/gke-auth/get-kubeconfig.sh |
This file contains 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
''' | |
Script for picking up changes from the change stream | |
''' | |
import os | |
import json | |
import pymongo | |
from bson.json_util import dumps | |
from bson import ObjectId | |
client = pymongo.MongoClient('mongodb://localhost:27017/') |
This file contains 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
''' | |
Script for picking up changes from the change stream | |
''' | |
import os | |
import json | |
import pymongo | |
from bson.json_util import dumps | |
from bson import ObjectId | |
client = pymongo.MongoClient('mongodb://localhost:27017/') |
This file contains 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
{ | |
'$children': [ | |
{ | |
'$children': [Array], | |
'$text': 'Grapeville, PA, United States', | |
'$name': 'location' | |
}, | |
{ | |
'$children': [Array], | |
'$text': 'Flatbed Truck Driver', |
NewerOlder