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
sudo apt install openssl php-common php-curl php-json php-mbstring php-mysql php-xml php-zip -y | |
sudo apt install composer -y | |
composer global require laravel/installer | |
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
version: '3.3' | |
services: | |
test: | |
network_mode: host | |
image: registry.gitlab.com/genesysjm/sms-robot-test | |
shm_size: "256M" | |
environment: | |
USERNAME: Oshane Bailey |
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
sudo apt-get install -y php-dom | |
sudo apt-get install -y php-mbstring | |
sudo apt-get install -y php-gd |
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 | |
sudo apt-get remove docker-compose -y | |
sudo rm -f /usr/local/bin/docker-compose | |
sudo rm -f /usr/bin/docker-compose | |
pip uninstall docker-compose | |
sudo apt-get install -y jq | |
VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | jq .name -r) | |
DESTINATION=/usr/bin/docker-compose |
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
version: '3.7' | |
services: | |
# App service | |
app: | |
build: . | |
restart: always | |
container_name: app | |
volumes: |
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
version: '3.7' | |
services: | |
# App service | |
app: | |
build: . | |
restart: always | |
container_name: app | |
volumes: |
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 kotti.resources import Content | |
from sqlalchemy.orm import aliased | |
parent_table = aliased(Content) | |
# Perform a self join with a where query, which adds the | |
# following line:: | |
# left join contents as n on contents.id = n.id |
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
user nginx; | |
worker_processes 1; | |
error_log /var/log/nginx/errora.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 4096; |
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 argparse | |
import base64 | |
import errno | |
import logging | |
import time | |
import os | |
import re | |
from datetime import datetime | |
from fnmatch import fnmatch | |
from StringIO import StringIO |
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
sudo apt install gnupg2 pass -y | |
gpg2 --full-generate-key | |
pass init "whatever key id you have" |