Skip to content

Instantly share code, notes, and snippets.


Christopher Murphy Splode

View GitHub Profile
Splode / electron-reset.css
Last active May 12, 2022 10:26
Disable selection/highlighting and element draggin in Electron
View electron-reset.css
/* disable selection */
:not(input):not(textarea)::before {
-webkit-user-select: none;
user-select: none;
cursor: default;
input, button, textarea, :focus {
outline: none;
Splode /
Last active September 12, 2023 03:01
Laravel Scheduler on Windows

Run Laravel Scheduled Tasks on Windows

The following are instructions for running scheduled tasks defined in a Laravel project on Windows. The Laravel documentation provides instructions for running scheduled tasks using cron jobs on Linux systems. However, cron jobs are not available on Windows. The built-in Windows Task Scheduler can be used to run scheduled tasks instead.

Create a Scheduled Task

  1. Open Task Scheduler
  2. Select Create Task...
  3. Give the task a name and description
  4. To run the task in the background, select Run whether the user is logged on or not and check the Hidden checkbox.
Splode / fullscreen.bat
Created April 17, 2019 17:59
Start Brave/Chrome in fullscreen mode
View fullscreen.bat
"C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\Brave.exe" --start-fullscreen http://localhost
Splode / backup.bat
Created March 28, 2019 22:15
Recursively copy directory on Windows and log output to file
View backup.bat
cd C:\Users\MT_User\scripts
IF NOT EXIST .\logs mkdir .\logs
robocopy C:\Users\MT_User\scripts\test C:\Users\MT_User\scripts\backup /s >> .\logs\%date%.log
Splode /
Created June 5, 2018 19:15
Allow Laravel `php artisan` permissions on Ubuntu
sudo chgrp -R www-data storage
sudo chgrp -R www-data bootstrap/cache
sudo chmod -R ug+rwx storage
sudo chmod -R ug+rwx bootstrap/cache
Splode / iterate.js
Created December 18, 2017 16:34
Iterate over the array-like object, HTMLCollection using Array.prototype
View iterate.js
// HTML Collection
const articles = document.querySelectorAll('.article')
// Iterate using Array.prototype, el => {
// iterate over el
Splode / index.html
Created December 4, 2017 17:23
Intrinsic Image Placholders
View index.html
<div class="Intrinsic-wrapper">
<img class="Intrinsic-item Intrinsic-item--1x1" src="">
.Intrinsic-wrapper {
display: block;
padding-top: 100%;
position: relative;
width: 100%;
Splode / preload-img.js
Last active November 20, 2017 17:24
Pre-load images for faster painting of new images
View preload-img.js
// example imgObj
const img = {
filename: 'example.jpg',
caption: 'example-caption'
function preloadImgs (imageLs) {
imageLs.forEach(imgObj => {
let img = new Image()
img.src = imgObj.filename
Splode /
Created September 29, 2017 02:48
A list of useful commands for running Node
Splode / .gitignore
Created August 9, 2017 22:48
Gitignore Template
View .gitignore
# ================ Windows =====================
# Windows thumbnail cache files
# Dump file