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/osascript | |
# Required parameters: | |
# @raycast.schemaVersion 1 | |
# @raycast.title Speedpy New Project | |
# @raycast.mode silent | |
# Optional parameters: | |
# @raycast.icon 🚀 | |
# @raycast.argument1 { "type": "text", "placeholder": "project name" } |
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 python:3.10.1-bullseye | |
SHELL ["/bin/bash", "-c"] | |
ENV PIP_NO_CACHE_DIR off | |
ENV PIP_DISABLE_PIP_VERSION_CHECK on | |
ENV PYTHONUNBUFFERED 1 | |
ENV PYTHONDONTWRITEBYTECODE 0 | |
RUN apt-get update \ | |
&& apt-get install -y --force-yes \ | |
nano python3-pip gettext chrpath libssl-dev libxft-dev \ | |
libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev\ |
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 python:3.8.12-bullseye | |
SHELL ["/bin/bash", "-c"] | |
ENV PIP_NO_CACHE_DIR off | |
ENV PIP_DISABLE_PIP_VERSION_CHECK on | |
ENV PYTHONUNBUFFERED 1 | |
ENV PYTHONDONTWRITEBYTECODE 0 | |
RUN apt-get update \ | |
&& apt-get install -y --force-yes \ | |
nano python3-pip gettext chrpath libssl-dev libxft-dev \ | |
libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev\ |
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
def run_deployment_v3(deployment: Deployment): | |
"""Runs deployment as 'app' user with separate commands passing commands via base64 scripts, | |
with timeouts and possibility to abort deployment""" | |
if deployment.is_aborted: | |
print("deployment is aborted") | |
deployment.log("Deployment was aborted") | |
deployment.status = DEPLOYMENT_STATUS.aborted | |
deployment.save(update_fields=['status', ]) | |
return "Aborted" | |
server = deployment.application.server # type: Server |
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
import paramiko | |
import time | |
from io import StringIO | |
import sys | |
import select | |
def main(): | |
"""Run cat command and tries to cancel it """ | |
ip_address = '52.28.75.66' | |
with open('/Users/k/.ssh/id_rsa', 'r') as f: |
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
def run_deployment(deployment: Deployment): | |
"""Runs deployment as 'app' user with separate commands passing commands via base64 scripts""" | |
server = deployment.application.server # type: Server | |
rsa_key = server.user.private_key # type: str | |
deployment.log(f"ran run_deployment_v2 for deployment {deployment.id}") | |
username = 'app' | |
deployment.log(f'??? Connecting to {username}@{server.ip_address}') | |
try: | |
pkey = paramiko.RSAKey.from_private_key(StringIO(rsa_key)) | |
client = paramiko.SSHClient() |
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 python:3.8 | |
SHELL ["/bin/bash", "-c"] | |
ENV PIP_NO_CACHE_DIR off | |
ENV PIP_DISABLE_PIP_VERSION_CHECK on | |
ENV PYTHONUNBUFFERED 1 | |
ENV PYTHONDONTWRITEBYTECODE 0 | |
WORKDIR /code/ | |
COPY ./code/requirements.txt /code/ | |
RUN pip install -r requirements.txt | |
COPY ./code/ /code/ |
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 pypy:3 | |
SHELL ["/bin/bash", "-c"] | |
ENV PIP_NO_CACHE_DIR off | |
ENV PIP_DISABLE_PIP_VERSION_CHECK on | |
ENV PYTHONUNBUFFERED 1 | |
ENV PYTHONDONTWRITEBYTECODE 0 | |
RUN apt-get update \ | |
&& apt-get install -y --force-yes \ | |
nano python-pip gettext chrpath libssl-dev libxft-dev \ | |
libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev\ |
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 python:3.8 | |
SHELL ["/bin/bash", "-c"] | |
ENV PIP_NO_CACHE_DIR off | |
ENV PIP_DISABLE_PIP_VERSION_CHECK on | |
ENV PYTHONUNBUFFERED 1 | |
ENV PYTHONDONTWRITEBYTECODE 0 | |
RUN apt-get update \ | |
&& apt-get install -y --force-yes \ | |
nano python-pip gettext chrpath libssl-dev libxft-dev \ | |
libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev\ |
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 python:3.8 | |
SHELL ["/bin/bash", "-c"] | |
ENV PIP_NO_CACHE_DIR off | |
ENV PIP_DISABLE_PIP_VERSION_CHECK on | |
ENV PYTHONUNBUFFERED 1 | |
ENV PYTHONDONTWRITEBYTECODE 0 | |
RUN apt-get update \ | |
&& apt-get install -y --force-yes \ | |
nano python-pip gettext chrpath libssl-dev libxft-dev \ | |
libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev\ |
NewerOlder