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
| {:marketplace/add-subscription-schema | |
| {:txes [[ | |
| {:db/id #db/id[:db.part/db] | |
| :db/ident :subscription/data-set-id | |
| :db/valueType :db.type/string | |
| :db/cardinality :db.cardinality/one | |
| :db.install/_attribute :db.part/db} | |
| {:db/id #db/id[:db.part/db] | |
| :db/ident :subscription/user-id |
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
| (ns bunsen.common.component.elasticsearch | |
| (:require [clojure.java.io :as io] | |
| [com.stuartsierra.component :as component :refer [start stop]] | |
| [bunsen.common.helper.elasticsearch :as es]) | |
| (:import (java.net URI) | |
| (org.apache.commons.io FileUtils) | |
| (org.elasticsearch.node NodeBuilder) | |
| (org.elasticsearch.common.settings ImmutableSettings))) | |
| (defrecord Elasticsearch [config] |
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 bash | |
| # | |
| # Bootstrap the Circle CI environment. | |
| # | |
| reconfigure_docker() { | |
| # since docker doesn't listen over tcp by default, change config to listen on all interfaces so containers can connect | |
| echo 'DOCKER_OPTS="-s btrfs -e lxc -H unix:///var/run/docker.sock -H tcp://0.0.0.0:4243"' | sudo tee /etc/default/docker | |
| sudo service docker restart |
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
| machine: | |
| services: | |
| - docker | |
| environment: | |
| TAG: "${CIRCLE_SHA1:0:7}" | |
| REGISTRY: quay.io/mojotech | |
| dependencies: | |
| override: | |
| - make bootstrap-ci |
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
| ;; -*- mode: emacs-lisp -*- | |
| ;; This file is loaded by Spacemacs at startup. | |
| ;; It must be stored in your home directory. | |
| (defun dotspacemacs/layers () | |
| "Configuration Layers declaration." | |
| (setq-default | |
| ;; List of additional paths where to look for configuration layers. | |
| ;; Paths must have a trailing slash (ie. `~/.mycontribs/') | |
| dotspacemacs-configuration-layer-path '() |
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
| (ns greenish.site-test | |
| (:require [clojure.test.check :as check] | |
| [clojure.test.check.generators :as generators] | |
| [clojure.test.check.properties :as properties] | |
| [clojure.test.check.clojure-test :refer [defspec]]) | |
| (:import (org.openqa.selenium By WebDriver WebElement) | |
| (org.openqa.selenium.chrome ChromeDriver) | |
| (org.openqa.selenium.htmlunit HtmlUnitDriver) | |
| (org.openqa.selenium.support.ui ExpectedConditions WebDriverWait))) |
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
| (defcssfn calc) | |
| (defn clearfix [] | |
| [:& | |
| {:*zoom 1} | |
| [:&:before :&:after | |
| {:content "''" | |
| :display :table}] | |
| [:&:after |
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
| ["/" {"auth" :auth | |
| "info" :info | |
| "_ping" :ping | |
| "version" :version | |
| "commit" :create-image-from-container | |
| "events" :events | |
| "build" :build-image | |
| "images" {"/get" :dump-images | |
| "/load" :load-images | |
| "/json" :images |
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
| (ns bunsen.provisioner.helper.docker | |
| (:require [clojure.string :as str] | |
| [bunsen.provisioner.helper.rest :as rest]) | |
| (:import (org.bouncycastle.openssl PEMParser) | |
| (java.security KeyStore KeyStore$TrustedCertificateEntry KeyFactory) | |
| (java.security.cert Certificate CertificateFactory) | |
| (java.security.spec PKCS8EncodedKeySpec) | |
| (java.nio.file Files Paths OpenOption) | |
| (java.nio.charset Charset))) |
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
| (def keystore-pass "docker?") | |
| (def tls? | |
| (comp #{"1"} :docker-tls-verify)) | |
| (defn uri | |
| [config] | |
| (when-let [host (:docker-host config)] | |
| (-> (url host) | |
| (assoc :protocol |