Skip to content

Instantly share code, notes, and snippets.

View b4oshany's full-sized avatar

Oshane Bailey b4oshany

View GitHub Profile
@b4oshany
b4oshany / docker-compose.yml
Created October 28, 2020 23:32
Ngnix Manager
version: "3"
services:
app:
image: jc21/nginx-proxy-manager:2
restart: always
ports:
# Public HTTP Port:
- '80:80'
# Public HTTPS Port:
- '443:443'
@b4oshany
b4oshany / config.json
Created October 28, 2020 22:31
nginx-manager
{
"database": {
"engine": "knex-native",
"knex": {
"client": "sqlite3",
"connection": {
"filename": "/data/database.sqlite"
}
}
}
@b4oshany
b4oshany / installLaravel.sh
Last active July 25, 2020 16:02
Install Laravel and its PHP dependencies
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
@b4oshany
b4oshany / git-reinit-training.sh
Last active July 24, 2020 04:01
Add untracked files to an new existing local project that already has an existing remote repo
targetBranch=master
# Remove the .git config folder.
rm -rf .git/
# Re-init the Git repo and add repository
git init
git remote add origin git@github.com:JamaicanDevelopers/GitTraining.git
git fetch origin
# Create a new branch with untracked files and then add it.
@b4oshany
b4oshany / docker-compose.yml
Created July 2, 2020 18:33
Docker Compose Robot test
version: '3.3'
services:
test:
network_mode: host
image: registry.gitlab.com/genesysjm/sms-robot-test
shm_size: "256M"
environment:
USERNAME: Oshane Bailey
@b4oshany
b4oshany / php-extens.sh
Created June 16, 2020 18:28
School Management System
sudo apt-get install -y php-dom
sudo apt-get install -y php-mbstring
sudo apt-get install -y php-gd
@b4oshany
b4oshany / installDockerCompose.sh
Last active April 14, 2020 21:12
Upgrade Docker Compose
#!/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
@b4oshany
b4oshany / docker-compose.yml
Last active March 27, 2020 11:50
Nginx + Postgres + RabbitMQ + PgAdmin + other app
version: '3.7'
services:
# App service
app:
build: .
restart: always
container_name: app
volumes:
@b4oshany
b4oshany / docker-compose.yml
Created March 27, 2020 11:36
RabbitMQ + other app
version: '3.7'
services:
# App service
app:
build: .
restart: always
container_name: app
volumes:
@b4oshany
b4oshany / kotti_self_join.py
Created March 24, 2020 20:38
Kotti self join
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