Skip to content

Instantly share code, notes, and snippets.

View markrebec's full-sized avatar

Mark Rebec markrebec

View GitHub Profile
@goodviber
goodviber / gist:54898bc705a928a3e18c9b725d52e5ca
Created July 12, 2018 11:45
can't find executable webpack-dev-server for gem webpacker (Gem::Exception)
bundle exec rails webpacker:binstubs
@phansch
phansch / yardoc_cheatsheet.md
Last active September 22, 2024 02:17 — forked from chetan/yardoc_cheatsheet.md
Improved YARD cheatsheet
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@taylorruizchiu
taylorruizchiu / how_to_add_icons.md
Last active April 14, 2016 23:07
How to add icons to Zozi's fontpack

How to add icons to Zozi's fontpack

###Load the current fontpack into the Icomoon App

  1. Download the most current version of the fontpack from app/assets/fonts/
  2. Open a browser and go to icomoon.io/app
  3. In the top left corner, click the purple button that says "Import Icons" enter image description here
  4. Find app/assets/fonts/fontawesome_some_version.svg and upload the SVG fontpack

###Acquire SVGs of your new icons ####If you have a sketch file:

@righi
righi / git-reup
Last active September 12, 2019 17:53
git-reup
#!/usr/bin/env ruby
#
# Usage: git-up
# git-reup
#
# Like git-pull but show a short and sexy log of changes
# immediately after merging (git-up) or rebasing (git-reup).
#
# Inspired by Kyle Neath's `git up' alias:
# http://gist.github.com/249223
@SabretWoW
SabretWoW / rspec_model_testing_template.rb
Last active September 23, 2024 03:01
Rails Rspec model testing skeleton & cheat sheet using rspec-rails, shoulda-matchers, shoulda-callbacks, and factory_girl_rails. Pretty much a brain dump of examples of what you can (should?) test in a model. Pick & choose what you like, and please let me know if there are any errors or new/changed features out there. Reddit comment thread: http…
# This is a skeleton for testing models including examples of validations, callbacks,
# scopes, instance & class methods, associations, and more.
# Pick and choose what you want, as all models don't NEED to be tested at this depth.
#
# I'm always eager to hear new tips & suggestions as I'm still new to testing,
# so if you have any, please share!
#
# @kyletcarlson
#
# This skeleton also assumes you're using the following gems:
@wtaysom
wtaysom / where_is.rb
Created September 23, 2011 08:57
A little Ruby module for finding the source location where class and methods are defined.
module Where
class <<self
attr_accessor :editor
def is_proc(proc)
source_location(proc)
end
def is_method(klass, method_name)
source_location(klass.method(method_name))