Skip to content

Instantly share code, notes, and snippets.

View bebrws's full-sized avatar

Brad Barrows bebrws

View GitHub Profile
@bebrws
bebrws / SlackBlackTheme.css
Created July 1, 2019 06:47 — forked from bbarrows/SlackBlackTheme.css
Slack Custom Black Theme Mods
/*
To inspect Slack elements using Chrome Dev tools:
export SLACK_DEVELOPER_MENU=true
open /Applications/Slack.app
# Reference:
https://www.cloudgear.net/blog/2015/5-minutes-kubernetes-setup/
# install homebrew and cask
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# install virtualbox
brew cask install virtualbox
# install dockertoolbox
@bebrws
bebrws / default.scpt
Created July 13, 2019 06:02
Launchbar 6 Note Navigator
on run
tell application "Notes"
set accountList to the name of every account
repeat with currentAccount in accountList
set folderList to {}
repeat with currentFolder in every folder
set noteList to {}
set folderItems to count (notes of currentFolder)
set folderItems to (folderItems as string) & " notes found"
repeat with currentNote in notes of currentFolder
@bebrws
bebrws / nosleep.sh
Last active October 29, 2019 10:01
Completely disable sleep on any Mac
# Useful to prevent Macbooks to go to sleep when closing the lid instead of running tools that requires a Kernel Extension (e.g. InsomniaX) and more
sudo pmset -a sleep 0; sudo pmset -a hibernatemode 0; sudo pmset -a disablesleep 1;
# And to go back to normal:
sudo pmset -a sleep 1; sudo pmset -a hibernatemode 25; sudo pmset -a disablesleep 0;
@bebrws
bebrws / enableSSS.sh
Last active May 20, 2023 22:38
enableScreensharingServices
#!/bin/bash
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
# This script needs to be run from the volume you wish to use.
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
@bebrws
bebrws / MAKDOWNTEST
Last active November 28, 2019 22:44
sdfd
This file has been truncated, but you can view the full file.
### Thisi s a big heaeder
A LIST
* sdf
* sfasdf
* j2
* asd
* asdf
* kl
@bebrws
bebrws / LATEST
Last active December 24, 2019 17:08
Fd
latest
test
@bebrws
bebrws / BetterFilename
Last active November 19, 2019 05:37
Fdfd
Some content
This is the content of my new gist
Empty File
sdf
asdfsdf
sd