Skip to content

Instantly share code, notes, and snippets.

View brysonreece's full-sized avatar
🐛
Creating new bugs

Bryson Reece brysonreece

🐛
Creating new bugs
View GitHub Profile
@brysonreece
brysonreece / prune-untracked-branches.sh
Last active November 3, 2023 04:44
Remove Untracked Git Branches
#! /bin/zsh
#
# @author Bryson Reece <hey@bryson.cc>
# @license none
#
CLEAR_ALL="\033[0m"
CLEAR_UL="\033[24m"
CLEAR_LNE="\033[0K"
@brysonreece
brysonreece / remove-docker.sh
Created September 8, 2022 05:41
Completely Remove Docker from macOS
#!/bin/zsh
#
# Completely remove Docker & Docker Desktop from macOS.
# @author Bryson Reece <hey@bryson.cc>
#
confirm_reboot () { echo "Reboot? (y/n)" && read x && [[ "$x" == "y" ]] && /sbin/reboot; }
echo "Killing processes..."
sudo pkill Docker
@brysonreece
brysonreece / iCloud Drive Backup
Last active July 14, 2022 07:19
Bash/ZSH function to create a compressed Rsync backup of your iCloud Drive
#! /bin/sh
icloud-backup() {
rsync --verbose --progress \
--recursive --whole-file --times \
--exclude=".DS_Store" --exclude=".Trash/" \
--compress --compress-level=3 \
~/Library/Mobile\ Documents/com~apple~CloudDocs/ $@
}
@brysonreece
brysonreece / migrate.sh
Last active May 18, 2022 06:56
Bitbucket to GitHub Migration Script
#! /bin/bash
# - Does not work with empty Bitbucket repositories
# - Does not work if repo description contains control characters, e.g. '\r'
ALL_REPOS=$@
# Check if any arguments were provided
if [[ $# -eq 0 ]]; then
echo "No repository name(s) provided!" 1>&2
@brysonreece
brysonreece / extensions.json
Last active September 28, 2021 14:49
Visual Studio Code Settings
[
{
"metadata": {
"id": "2dd41a16-fc28-4680-a274-a850fa5f1098",
"publisherId": "calebporzio.better-phpunit",
"publisherDisplayName": "calebporzio"
},
"name": "better-phpunit",
"publisher": "calebporzio",
"version": "1.5.3"
@brysonreece
brysonreece / policy.json
Last active October 22, 2020 04:40
Example Laravel S3 IAM Policy
{
"Version": "2012-10-17",
"Statement": [{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:ListBucket",
"s3:DeleteObject",
@brysonreece
brysonreece / tailwind.config.js
Created February 22, 2020 08:23
Tailwind HTML Colors
// colors from materialui.co/htmlcolors
module.exports = {
theme: {
colors: {
'gainsboro': '#dcdcdc',
'light-gray': '#d3d3d3',
'silver': '#c0c0c0',
'dark-gray': '#a9a9a9',
'gray': '#808080',
@brysonreece
brysonreece / tailwind.config.js
Created February 22, 2020 07:34
Tailwind Metro Colors
// colors from materialui.co/metrocolors
module.exports = {
theme: {
colors: {
'lime': '#a4c400',
'green': '#60a917',
'emerald': '#008a00',
'teal': '#00aba9',
'cyan': '#1ba1e2',
@brysonreece
brysonreece / tailwind.config.js
Created February 22, 2020 07:30
Tailwind Social Colors
// colors from materialui.co/socialcolors
module.exports = {
theme: {
colors: {
'facebook': '#3b5999',
'messenger': '#0084ff',
'twitter': '#55acee',
'linkedin': '#0077b5',
'skype': '#00aff0',
@brysonreece
brysonreece / tailwind.config.js
Created February 22, 2020 07:29
Tailwind Flat UI Colors
// colors from materialui.co/flatuicolors
module.exports = {
theme: {
colors: {
'turquoise': '#1abc9c',
'green-sea': '#16a085',
'emerland': '#2ecc71',
'nephritis': '#27ae60',
'peter-river': '#3498db',