Skip to content

Instantly share code, notes, and snippets.

View artistro08's full-sized avatar
🏠
Working from home

Devin Green artistro08

🏠
Working from home
View GitHub Profile
@artistro08
artistro08 / README.MD
Last active April 4, 2024 19:53
How to setup a LEMP Development Environment with WSL2 & Valet Linux
@artistro08
artistro08 / tasks.json
Created March 3, 2023 01:33
Add October CMS Commands to VS Code
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "october:install",
"type": "shell",
"command": "php artisan october:install",
"problemMatcher": []
@artistro08
artistro08 / bootstrap-icons.sh
Created June 17, 2022 21:18
Create JSON Import file from icons. Used for Tailor Entries in OctoberCMS
#!/bin/bash
#
# Bash file to create json output of Bootstrap Icons.
# Used for Tailor, an OctoberCMS Feature
# Requires jq: https://stedolan.github.io/jq
#
index=0
for file in $(ls *.svg);
@artistro08
artistro08 / plugin-management.php
Created October 30, 2021 13:25
Plugin Management from the Deploy Console in RainLab.Deploy on OctoberCMS
<?php
// Install A plugin from the Rainlab Deploy Console
Artisan::call('plugin:install', ['name' => 'Acme.BlogPost', '--force' => true]);
echo Artisan::output();
// Remove A plugin from the Rainlab Deploy Console
Artisan::call('plugin:remove', ['name' => 'Acme.BlogPost', '--force' => true]);
echo Artisan::output();
@artistro08
artistro08 / README.MD
Last active August 30, 2022 19:39
Dynamic Layout builder for OctoberCMS
@artistro08
artistro08 / sync.sh
Last active March 10, 2021 15:01
Sync Storage & Database from Local to Dev - OctoberCMS
#!/bin/bash
# OctoberCMS Deployment for Git managed Files
#
# I created this bash script because I found myself
# Typing the same commands over and over again to
# import my storage and database directories for
# Clients. Running this will (more or less) zip your
# storage directory, Export your database, and import
# your database & storage directory to the server
# Where you have git deployed.
@artistro08
artistro08 / default.htm
Last active November 27, 2020 14:38
OctoberCMS Bootstrap Menu
{% if __SELF__.menuItems %}
<div class="collapse navbar-collapse" id="navcol-1">
<ul class="nav navbar-nav ml-auto">
{% partial __SELF__ ~ "::items" items=__SELF__.menuItems %}
</ul>
</div>
{% endif %}
@artistro08
artistro08 / october.yaml
Last active September 17, 2020 15:22
OctoberCMS Init
app:
url: http://example.test
locale: en
debug: true
cms:
theme: theme-name #no Spaces. dashes only
edgeUpdates: false
disableCoreUpdates: false
enableSafeMode: false
#!/bin/bash
inotifywait -m ~/.sites -e create -e moved_to |
while read dir action file; do
export file
echo "The file '$file' appeared in directory '$dir' via '$action'"
echo -e "\n127.0.0.1 $file.test\c" | powershell.exe gsudo wsl tee -a /mnt/c/Windows/System32/drivers/etc/hosts
done
@artistro08
artistro08 / cloudSettings
Last active October 23, 2020 17:56
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-06-12T12:51:51.480Z","extensionVersion":"v3.4.3"}