Skip to content

Instantly share code, notes, and snippets.

View petekinnecom's full-sized avatar

Pete Kinnecom petekinnecom

  • Inside of my own mind and perhaps yours too, who can say?
View GitHub Profile
#! /usr/bin/env bash
################################################################################
# This CLI tool simply outputs a small string indicating the status of your
# unread Slack notifications. It is meant to be paired with XBar to display its
# output in the MacOS MenuBar.
#
# Example output:
# `# 0 ` => No messages at all (except perhaps in muted rooms)
# `# 0*` => No DMs or mentions, at least one general unreads
@petekinnecom
petekinnecom / cloudSettings
Last active March 18, 2022 20:17
Visual Studio Code Settings Sync Gist
{"lastUpload":"2022-03-18T20:17:54.280Z","extensionVersion":"v3.4.3"}
# If you'd like to be able to require the pry gem even though it isn't in your Gemfile,
# you can use this file. I suggest putting it at `~/pry.rb`, then instead of calling
# `require 'pry'; binding.pry` you can call `require '~/pry'; binding.pry
class BundlerBreakout
def initialize(libname)
@libname = libname
end
def load
# A small utility for requiring a gem that is not in your app's Gemfile.lock.
# It usually works. :)
#
# Example usage:
#
# Without BundlerBreakout:
#
# require 'mygem'
# LoadError: cannot load such file -- mygem
#
#! /usr/bin/env ruby
require "work_queue"
require "etc"
module Color
CODES = {
red: 31,
green: 32,
yellow: 33,
# if you get an nfs/exports error, delete the Vagrant sections from /etc/exports
Vagrant.configure('2') do |config|
config.vm.box = 'bento/centos-7.4'
config.vm.provider :virtualbox do |vb, _override|
vb.customize ['modifyvm', :id, '--memory', '2048']
end
config.vm.synced_folder '.', '/home/vagrant/mnt', nfs: true