Skip to content

Instantly share code, notes, and snippets.

View aaron-watts's full-sized avatar
🐜
Playing

Aaron Watts aaron-watts

🐜
Playing
  • London, UK
View GitHub Profile
@aaron-watts
aaron-watts / .cmatrix-lock
Created December 7, 2023 19:51
Cmatrix Screensaver for i3wm
#!/bin/bash
### CMatrix TUI Screensaver for i3wm ###
###
### In i3 config, first disable power saving and screen blanking:
### exec --no-startup-id xset s off -dpms
###
### Ensure xautolock is installed on system, include the following
### in your i3wm config file:
### exec --no-startup-id xautolock -time 10 -locker ~/.cmatrix-lock
@aaron-watts
aaron-watts / package.json
Created March 14, 2022 22:38
Live Environment by Stephanie Eckles
{
"name": "project",
"version": "0.1.0",
"description": "SASS compile|autoprefix|minimize and live-reload dev server using Browsersync for static HTML",
"main": "public/index.html",
"author": "5t3ph",
"scripts": {
"build:sass": "sass --no-source-map src/sass:public/css",
"copy:html": "copyfiles -u 1 ./src/*.html public",
"copy": "npm-run-all --parallel copy:*",
@aaron-watts
aaron-watts / formatDate.gs
Last active February 25, 2022 14:53
Format Date for date-formatted Google Sheets cells
function formatDate(d) {
const mm = d.getMonth() + 1;
const yy = d.getFullYear();
const dd = d.getDate();
return `${mm}/${dd}/${yy}`;
}
@aaron-watts
aaron-watts / regolith_icalendar_notify.py
Last active December 10, 2021 14:05
To send iCalendar events for today to window managers notification tray
#!/usr/bin/env python3
from dotenv import dotenv_values
from icalevents.icalevents import events as ical_events
from datetime import date, datetime
from os import system as shell
from os import path
import subprocess
from time import sleep
@aaron-watts
aaron-watts / carousel.js
Last active November 23, 2021 15:23
A JS Carousel Class to handle Carousels and Paginations
@aaron-watts
aaron-watts / unbash.sh
Created October 24, 2021 12:36
No switch statement
#!/usr/bin/bash
function funsplash {
clear
echo ========================================
echo This script presents you with 2 options:
echo 1. Choose the width of your photo.
echo 2. Choose the height of your photo.
echo ----------------------------------------
read -n 1 -s -r -p "Press the 'ANY' key to continue - LOL!!!"