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
| cmake -B build \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DCMAKE_INSTALL_PREFIX='/opt/llama.cpp' \ | |
| -DBUILD_SHARED_LIBS=ON \ | |
| -DLLAMA_BUILD_COMMON=ON \ | |
| -DLLAMA_BUILD_TESTS=OFF \ | |
| -DLLAMA_BUILD_EXAMPLES=OFF \ | |
| -DLLAMA_BUILD_SERVER=ON \ | |
| -DLLAMA_USE_SYSTEM_GGML=OFF \ | |
| -DGGML_ALL_WARNINGS=OFF \ |
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 python3 | |
| """Fixing bluetooth stereo headphone/headset problem in debian distros. | |
| Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
| Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
| This will be only fixes the bluez5 problem mentioned above . | |
| Licence: Freeware |
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 test.parallel | |
| (:require | |
| [clojure.core.async :as clj-async :refer [>! go]]) | |
| (:import | |
| java.util.concurrent.CountDownLatch | |
| java.util.concurrent.TimeUnit)) | |
| (def | |
| ^{:dynamic true | |
| :doc |
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
| ;; This setup solves the problem of prod and dev code path differing at startup. | |
| ;; The above issue leads to problems hard to catch, catch when deploying to prod. | |
| ;; | |
| ;; in production main | |
| ;; | |
| (def duct-config-file-path (io/resource "/<project>/config.edn") | |
| (defn prep-config | |
| "Duct prep-config wrapper." |
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 | |
| set -euo pipefail | |
| # The following is the mvn dependency:list expected output | |
| # | |
| # [INFO] The following files have been resolved: | |
| # [INFO] com.elasticpath.service.tenant:tenant-service-model:jar:1.0-SNAPSHOT:compile | |
| # [INFO] com.elasticpath.service.tenant:tenant-service-dao:jar:1.0-SNAPSHOT:compile |
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/bash | |
| do_usage() { | |
| echo | |
| echo "Package the zip ready for lambda deployment." | |
| echo | |
| echo " -s is the stage, will default to dev is absent." | |
| echo " -p accepts an dir path where the package will be copied, it defaults | |
| to \"./.serverless\"". | |
| echo " -B option skips compilation, in case you already have compiled |
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
| clojure -e "(require '[cljs.closure :as cc] '[clojure.pprint :refer [pprint]]) (pprint (cc/index-node-modules-dir $(cat cljsc_opts.edn)))" > npm-deps.edn |
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 env-web-prod {:resource-paths #{"resources"} | |
| :source-paths #{"src/web" "src/shared"} | |
| :dependencies '[[org.clojure/clojure "1.9.0-alpha14"] | |
| [adzerk/boot-cljs "2.0.0-SNAPSHOT" :scope "test"] | |
| [org.clojure/clojurescript "1.9.456" :scope "test"] | |
| [org.clojure/test.check "0.9.0"] ;; AR - at the moment we need it, see http://dev.clojure.org/jira/browse/CLJS-1792 | |
| [adzerk/env "0.4.0"] | |
| [binaryage/oops "0.5.2"] | |
| [cljsjs/d3 "4.3.0-3"] | |
| [cljsjs/intersections "1.0.0-0"] |
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 'clojure.repl) | |
| ;; macros | |
| ;; https://github.com/boot-clj/boot/commit/045d01101d61d947e1efd729e1f73b5690020928 | |
| (intern 'clojure.core (with-meta 'doc {:macro true}) @#'clojure.repl/doc) | |
| (intern 'clojure.core (with-meta 'dir {:macro true}) @#'clojure.repl/dir) | |
| (intern 'clojure.core (with-meta 'source {:macro true}) @#'clojure.repl/source) | |
| ;; fns | |
| (intern 'clojure.core 'apropos @#'clojure.repl/apropos) |
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 services.email | |
| (:require [clojure.tools.logging :as log] | |
| [clojure.string :as string] | |
| [clojure.java.io :as io] | |
| [schema.core :as s] | |
| [camel-snake-kebab.core :as csk] | |
| [camel-snake-kebab.extras :as cske] | |
| [amazonica.core :as aws] | |
| [amazonica.aws.simpleemail :as ses] | |
| [selmer.parser :as selmer] |
NewerOlder