Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View nickmathis's full-sized avatar

Nick Mathis nickmathis

  • Simreg LLC
  • Grand Rapids, MI
View GitHub Profile
@nickmathis
nickmathis / sidekiq_monitoring
Created November 7, 2023 22:50 — forked from ngsmrk/sidekiq_monitoring
Sidekiq queue checking via rails console
stats = Sidekiq::Stats.new
stats.queues
stats.enqueued
stats.processed
stats.failed
nick_toppings = %w(lettuce tomato onion mustard mayo pickle)
josh_toppings = nick_toppings - %w(mayo onion)
Run:
tail -n 250000 log/development.log |pbcopy
And paste to gist.
@nickmathis
nickmathis / install.md
Last active August 29, 2015 14:01
Install of Rmagick, etc
@nickmathis
nickmathis / cleanup.sh
Created November 16, 2012 18:27 — forked from mdp/cleanup.sh
Git branch cleanup
# This must be run from master
git checkout master
# Update our list of remotes
git fetch
git remote prune origin
# Remove local fully merged branches
git branch --merged master | grep -v 'master$' | xargs git branch -d
# Show remote fully merged branches
echo "The following remote branches are fully merged and will be removed:"
git branch -r --merged master | sed 's/ *origin\///' | grep -v 'master$'
#menu ul {
margin: 0;
padding: 0;
list-style: none;
}
#menu li {
float: left;
text-align: center;
width: 15px;