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
| Use when command to deploy develop branch to the QA (target VM) and master branch to deploy to the Production (k8s VM). | |
| Enhance existing ansible deployment pipeline to be environment specific | |
| - add two inventories to the ansible: QA and prod | |
| - change Jenkinsfile to use $BRANCH variable to select inventory. | |
| - using when directive make deployment conditional | |
| develop branch -> target VM | |
| master branch -> k8s VM | |
| other branch -> nowhere |
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 ( | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "github.com/prometheus/client_golang/prometheus" | |
| "github.com/prometheus/client_golang/prometheus/promauto" | |
| "github.com/prometheus/client_golang/prometheus/promhttp" |
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" | |
| "context" | |
| "github.com/aws/aws-lambda-go/lambda" | |
| ) | |
| type MyEvent struct { | |
| Name string `json:"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
| global: | |
| scrape_interval: 15s | |
| scrape_timeout: 10s | |
| evaluation_interval: 15s | |
| alerting: | |
| alertmanagers: | |
| - static_configs: | |
| - targets: [] | |
| scheme: http | |
| timeout: 10s |
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
| (defun oxid-composer () | |
| (interactive) | |
| (cd (oxid-project-dir)) | |
| (switch-to-buffer | |
| (set-buffer (get-buffer-create "*OXID Composer*"))) | |
| (composer-list-mode)) | |
| (define-derived-mode composer-list-mode tabulated-list-mode "list-demo-mode" | |
| (setq tabulated-list-format [("Name" 45 t) | |
| ("Version" 15 t) |
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 bb | |
| (require '[cognitect.transit :as transit]) | |
| (import [java.io ByteArrayInputStream ByteArrayOutputStream]) | |
| (def out (ByteArrayOutputStream. 4096)) | |
| (def writer (transit/writer out :json)) | |
| (transit/write writer "foo") | |
| (transit/write writer {:a [1 2]}) |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>com.cognitect.datomic</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/Users/nexus/datomic-pro-1.0.6165/bin/transactor</string> | |
| <string>config/dev-transactor.properties</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
| <div class="textwidget profile__link"> | |
| <!-- Facebook Badge START --> | |
| <a href="https://ru-ru.facebook.com/mprokopov" target="_TOP" style="font-family: "lucida grande",tahoma,verdana,arial,sans-serif; font-size: 18px; font-variant: normal; font-style: normal; font-weight: normal; color: #3B5998; text-decoration: none;" title="Max Prokopov" rel="noopener noreferrer">Max Prokopov</a><br><a href="https://ru-ru.facebook.com/mprokopov" target="_TOP" title="Max Prokopov" rel="noopener noreferrer"><img src="https://badge.facebook.com/badge/564099895.8308.711585450.png" style="border: 0px;"></a> | |
| <!-- Facebook Badge END --> | |
| </div> | |
| <div class="profile__link"> | |
| <a href="https://twitter.com/mprokopov?ref_src=twsrc%5Etfw" class="twitter-follow-button" data-show-count="false">Follow @mprokopov</a><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> | |
| </div> | |
| <div class='LI-profile-badge profile__link' data-version='v1' data-size='mediu |
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
| (require '[widget.factory :as factory]) | |
| ;; direct | |
| (fn [{clip :widget.factory/clip}] | |
| ) | |
| ;; :keys + symbol | |
| (fn [{:keys [widget.factory/clip]}] | |
| ) |
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 '[goog.i18n DateTimeFormat]) | |
| (let [date (js/Date.) | |
| fmt (DateTimeFormat. "dd MMMM")] | |
| (.format fmt date))) |