Skip to content

Instantly share code, notes, and snippets.

Avatar

Oshane Bailey b4oshany

View GitHub Profile
@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 / 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"
}
}
}
@b4oshany
b4oshany / discourse-api.php
Created Oct 8, 2020
Discourse API - Generate new topics, posts and PM
View discourse-api.php
<?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 Jul 24, 2020
Add untracked files to an new existing local project that already has an existing remote repo
View git-reinit-training.sh
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.