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
| // poller.go | |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "os/signal" | |
| "time" |
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
| application: ci-gae-app | |
| version: 2 | |
| runtime: php | |
| api_version: 1 | |
| threadsafe: false | |
| handlers: | |
| - url: /user_guide/ | |
| static_files: user_guide/index.html | |
| upload: user_guide/index.html |
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
| - Install docker | |
| https://docs.docker.com/docker-for-windows/install/ | |
| - Run Elastic, Mongodb | |
| https://hub.docker.com/ | |
| Finding : | |
| + Elasticsearch: https://hub.docker.com/_/elasticsearch | |
| + Mongodb: https://hub.docker.com/_/mongo | |
| Command run: | |
| Elastic: |
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
| ## Install git | |
| apt install git -y | |
| ## Install build essential | |
| apt-get install build-essential | |
| ## server dev | |
| apt-get install postgresql-server-dev-all -y | |
| ## Install common | |
| apt-get install postgresql-common -y |
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
| const BATCH_SIZE = 2000; | |
| let srcConnection = "Tgroup"; | |
| let srcDb = "order"; | |
| let dstConnection = "Staging Truck"; | |
| let dstDb = "order"; | |
| use(dstDb); | |
| //idPolicy: overwrite_with_same_id|always_insert_with_new_id|insert_with_new_id_if_id_exists|skip_documents_with_existing_id|abort_if_id_already_exists |
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
| CREATE OR REPLACE FUNCTION public.create_partition_and_insert() | |
| RETURNS trigger | |
| LANGUAGE plpgsql | |
| AS $function$ | |
| DECLARE | |
| partition_surfix TEXT; | |
| partition_surfix_int integer; | |
| partition TEXT; | |
| begin_partition integer; | |
| end_partition integer; |
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
| pipeline { | |
| agent any | |
| stages { | |
| stage('Example Agent'){ | |
| agent { | |
| docker { | |
| image 'golang' | |
| } | |
| } | |
| steps{ |
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
| curl --max-time 30 --output ~/Downloads/Radio/CostaDelMar_$(date '+%F_%T').mp3 http://sc-costadelmar.1.fm:10156 |
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
| curl --max-time 30 --output ~/Downloads/Radio/CostaDelMar_$(date '+%F_%T').mp3 http://sc-costadelmar.1.fm:10156 |
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
| # Dockerfile for gRPC Go | |
| FROM golang:1.12 | |
| # install protobuf from source | |
| RUN apt-get update && \ | |
| apt-get -y install git unzip build-essential autoconf libtool vim | |
| RUN git clone https://github.com/google/protobuf.git && \ | |
| cd protobuf && \ | |
| ./autogen.sh && \ | |
| ./configure && \ |