Skip to content

Instantly share code, notes, and snippets.


Brandon R. Howard brayhoward

View GitHub Profile
oseme-techguy /
Last active Dec 3, 2020
This fixes the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error while using Gnupg .
#!/usr/bin/env bash
# To fix the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error
# Make sure that the .gnupg directory and its contents is accessibile by your user.
chown -R $(whoami) ~/.gnupg/
# Also correct the permissions and access rights on the directory
chmod 600 ~/.gnupg/*
chmod 700 ~/.gnupg
elijahmanor /
Last active Nov 6, 2019
Export @code Extensions to a Markdown List

You can run either of the following snippets in your terminal to generate a markdown list of your VS Code extensions.

code --list-extensions | awk '{ print "* [" $1 "](\?itemName\=" $1 ")" }'


NOTE: You can append | pbcopy to either of the above commands to pipe the output to your Mac's copy/paste buffer.

nrollr /
Last active Oct 22, 2020
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

scrogson / README
Last active Mar 13, 2020 — forked from ciastek/README
Use bootstrap-sass npm package with Phoenix's brunch
1) install npm packages
2) update brunch-config.js
3) remove Bootstrap from web/static/css/app.css
4) rename web/static/css/app.css to web/static/css/app.scss
5) update web/static/css/app.scss
seripap / months.js
Created Oct 8, 2015 — forked from bgadrian/months.js
JavaScript JS month names arrays
View months.js
var month= ["January","February","March","April","May","June","July",
var month = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul","Aug", "Sep", "Oct", "Nov", "Dec"];
//used with date.getMonth()
brayhoward / Gruntfile.js
Last active Aug 29, 2015
Grunt file that compiles jade and sass, watches, serves, and builds. && index.jade boilerplate
View Gruntfile.js
'use strict';
module.exports = function (grunt) {
jade: {
compile: {
options: {
pretty: true,
sscotth / security.json
Created Dec 12, 2014
Firebase Security Rules: Grants read/write access to the owner of this user account whose uid must exactly match the key ($uid)
View security.json
"rules": {
"users": {
"$uid": {
".write": "auth !== null && auth.uid === $uid",
".read": "auth !== null && auth.uid === $uid"
tonymtz / gist:714e73ccb79e21c4fc9c
Created Nov 15, 2014
Uninstall from OSX Yosemite
View gist:714e73ccb79e21c4fc9c
launchctl unload /Library/LaunchAgents/org.macosforge.xquartz.startx.plist
sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist
sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/ /etc/*paths.d/*XQuartz
sudo pkgutil --forget org.macosforge.xquartz.pkg
# Log out and log in
You can’t perform that action at this time.