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
root@llm-proxy-7cfc799bf8-77bx5:/app# prisma --version | |
/usr/local/lib/python3.11/site-packages/pydantic/_internal/_fields.py:160: UserWarning: Field "model_max_budget" has conflict with protected namespace "model_". | |
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`. | |
warnings.warn( | |
/usr/local/lib/python3.11/site-packages/pydantic/_internal/_fields.py:160: UserWarning: Field "model_id" has conflict with protected namespace "model_". | |
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`. | |
warnings.warn( | |
/usr/local/lib/python3.11/site-packages/pydantic/_internal/_fields.py:160: UserWarning: Field "model_name" has conflict with protected namespace "model_". |
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
#!/bin/sh | |
TMUX_ROOT=~/tmux | |
# Install tmux in a barebones Ubuntu environment without root (like a Docker | |
# container for Ethos) | |
apt-get download tmux libutempter0 libevent-core-2.1-7 ncurses-base | |
for deb in *.deb; do | |
dpkg -x ${deb} ${TMUX_ROOT} |
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
from dataclasses import dataclass | |
from typing import Optional | |
@dataclass | |
class FakeSocket: | |
chunks: list[bytes] = None | |
buf: bytes = None | |
max_chunk_size: Optional[int] = None | |
log_func: Optional[callable] = None |
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
#!/bin/bash | |
# change the values below to match your system. | |
# target the BUILD_DIR to output from an nw.io build process. nwjs-shell-builder recommended! | |
# https://github.com/Gisto/nwjs-shell-builder | |
# BASE_DIR is the target directory for this script, where files will be gathered and packaged to | |
BUILD_DIR="/var/www/deploy/TMP/osx-ia32/latest-git" | |
BASE_DIR="/var/www/deploy/osx" |
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
FROM containerpreview.azurecr.io/microsoft/cognitive-services-read | |
RUN yum --disablerepo=cuda --disablerepo=nvidia-machine-learning install -y prelink | |
RUN execstack -c /usr/local/lib64/libonnxruntime.so.0.5.0 | |
RUN echo -e '#!/bin/sh\n\ntouch /usr/local/lib64/libmkl_core.so && exec /app/docker-entrypoint.sh "$@"' > /app/marc_entrypoint.sh && \ | |
chmod +x /app/marc_entrypoint.sh | |
ENTRYPOINT ["/app/marc_entrypoint.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
#!/usr/bin/env osascript | |
set appName to "Adobe Bridge 2019" | |
tell application appName to quit | |
repeat | |
tell application "System Events" | |
if appName is not in (name of application processes) then exit repeat | |
end tell | |
do shell script "sleep 0.5" | |
end repeat |
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
# use Cypress provided image with all dependencies included | |
FROM cypress/base:10 | |
RUN node --version | |
RUN npm --version | |
RUN apt-get update && \ | |
apt-get install -y locales && \ | |
sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && \ | |
locale-gen | |
ENV LC_ALL=en_US.UTF-8 |
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
2019-07-26T20:42:53.235Z cypress:cli installing Cypress from NPM | |
2019-07-26T20:42:53.489Z cypress:cli installing with options {} | |
2019-07-26T20:42:53.490Z cypress:cli version in package.json is 3.4.0 | |
2019-07-26T20:42:53.494Z cypress:cli Reading binary package.json from: /root/.cache/Cypress/3.4.0/Cypress/resources/app/package.json | |
2019-07-26T20:42:53.496Z cypress:cli no binary installed under cli version | |
2019-07-26T20:42:53.497Z cypress:cli checking local file /usr/src/app/3.4.0 cwd /usr/src/app/node_modules/cypress | |
2019-07-26T20:42:53.497Z cypress:cli preparing to download and unzip version 3.4.0 to path /root/.cache/Cypress/3.4.0 | |
Installing Cypress (version: 3.4.0) | |
[?25l[20:42:53] Downloading Cypress [started] |
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
function getFile(f) { | |
return new Cypress.Promise((resolve, reject) => { | |
return cy.fixture(f).then((img) => { | |
const file = makeFile({ | |
name: f, | |
dataURL: `data:image/${f.slice(f.length - 3)};base64,${img}`, | |
}) | |
resolve(file) | |
}) | |
}) |
NewerOlder