Skip to content

Instantly share code, notes, and snippets.

View b4oshany's full-sized avatar

Oshane Bailey b4oshany

View GitHub Profile
@b4oshany
b4oshany / bk2spaces.sh
Created August 29, 2021 13:50
Backup to spaces
#!/bin/bash
DATETIME=`date +%y%m%d-%H_%M_%S`
SRC=$1
DST=$2
GIVENNAME=$3
showhelp(){
echo "\n\n############################################"
echo "# bkupscript.sh #"
echo "############################################"
@b4oshany
b4oshany / floralapi.json
Created July 18, 2021 20:53
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,
"articlespecification": "",
@b4oshany
b4oshany / seekuur-company-jobs.json
Last active July 9, 2021 20:19
List of Jobs for a paritcular ompany on Seekuur
{
"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 June 15, 2021 13:40
Laravel Docker Compose
version: '3.3'
services:
web:
image: jamaicandevelopers/laravel-nginx-apline:php7.2
ports:
- '18481:80'
- '18482:81'
restart: unless-stopped
volumes:
@b4oshany
b4oshany / opt.css
Last active April 1, 2024 14:28
Tutor LMS icons
.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 November 16, 2020 12:51
Laravel .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
@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 / discourse-api.php
Created October 8, 2020 10:28
Discourse API - Generate new topics, posts and PM
<?php
header('Content-Type: application/json');
//Make sure that it is a POST request.
if (strcasecmp($_SERVER['REQUEST_METHOD'], 'POST') != 0) {
echo json_encode(array("error" => 'Request method must be POST!'));
}
//Make sure that the content type of the POST request has been set to application/json
$contentType = isset($_SERVER["CONTENT_TYPE"]) ? trim($_SERVER["CONTENT_TYPE"]) : '';
@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.