Skip to content

Instantly share code, notes, and snippets.

Avatar

Oshane Bailey b4oshany

View GitHub Profile
View nginx-icd11.conf
user nginx;
worker_processes 1;
error_log /var/log/nginx/errora.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 4096;
@b4oshany
b4oshany / bk2spaces.sh
Created Aug 29, 2021
Backup to spaces
View bk2spaces.sh
#!/bin/bash
DATETIME=`date +%y%m%d-%H_%M_%S`
SRC=$1
DST=$2
GIVENNAME=$3
showhelp(){
echo "\n\n############################################"
echo "# bkupscript.sh #"
echo "############################################"
View floralapi.json
This file has been truncated, but you can view the full file.
{
"list": [
{
"manufacturerkey": 7349,
"lotpic": "",
"processedTimestamp": "2021-06-29 12:31:49.0",
"pic": "https%3A%2F%2Fapi.floriday.io%2Fimages%2F8e7d6d5e-b294-4019-889c-98b8ba64ca9e.jpg%3Fbid%3D87137825484871573268133232",
"moq": 6,
"MultiplePrices": 1,
@b4oshany
b4oshany / seekuur-company-jobs.json
Last active Jul 9, 2021
List of Jobs for a paritcular ompany on Seekuur
View seekuur-company-jobs.json
{
"data": [
{
"id": 42,
"job_title": "Welding Machine Setter",
"job_url": "https:\/\/devjl.osoobe.com\/job\/welding-machine-setter61",
"apply_post_url": "https:\/\/devjl.osoobe.com\/email\/apply\/welding-machine-setter61",
"job_slug": "welding-machine-setter61",
"company": {
"company_id": 1,
@b4oshany
b4oshany / docker-compose.yml
Created Jun 15, 2021
Laravel Docker Compose
View docker-compose.yml
version: '3.3'
services:
web:
image: jamaicandevelopers/laravel-nginx-apline:php7.2
ports:
- '18481:80'
- '18482:81'
restart: unless-stopped
volumes:
@b4oshany
b4oshany / chrome.robot
Created May 26, 2018
Python Robot Framework with Headless Chrome Setup and Robot Files
View chrome.robot
*** Keywords ***
Open Chrome
[Arguments] ${url}
${chrome_options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
Call Method ${chrome_options} add_argument --disable-extensions
Call Method ${chrome_options} add_argument --headless
Call Method ${chrome_options} add_argument --disable-gpu
Call Method ${chrome_options} add_argument --no-sandbox
Create Webdriver Chrome chrome_options=${chrome_options}
@b4oshany
b4oshany / opt.css
Last active Feb 2, 2021
Tutor LMS icons
View opt.css
.ct-header > .container,
.footer-custom-inner > .container,
.tutor-wrap.tutor-dashboard > .tutor-container {
padding-left: 200px !important;
}
@media only screen and (max-width: 1400px) {
.tutor-wrap.tutor-dashboard {
padding-left: 200px !important;
@b4oshany
b4oshany / .docker.env
Last active Nov 16, 2020
Laravel .docker.env
View .docker.env
APP_NAME="Task App"
APP_ENV=${APP_ENV}
APP_KEY=base64:+m0h+ObGNu26eF4MVCgqX1ua0IukSUn7lRYInflNt8A=
APP_DEBUG=${APP_DEBUG}
APP_URL=${APP_URL}
APP_TIMEZONE=America/Jamaica
APP_LOCALE=en
LOG_CHANNEL=stack
View docker-compose.yml
version: "3"
services:
app:
image: jc21/nginx-proxy-manager:2
restart: always
ports:
# Public HTTP Port:
- '80:80'
# Public HTTPS Port:
- '443:443'
View config.json
{
"database": {
"engine": "knex-native",
"knex": {
"client": "sqlite3",
"connection": {
"filename": "/data/database.sqlite"
}
}
}