Skip to content

Instantly share code, notes, and snippets.

stevenh512 / gist:bae3d5174c26536cab38
Created Oct 28, 2015 — forked from hayderimran7/gist:d2e40534016f7f07da44
Solve docker issue "Error mounting devices cgroup: mountpoint for devices not found" on ubuntu
View gist:bae3d5174c26536cab38
I faced this issue when running docker with btrfs. I finally found this link and solution was at A3.
so perform following as sudo :
> sudo -i
> echo "cgroup /sys/fs/cgroup cgroup defaults 0 0" >> /etc/fstab
> mount /sys/fs/cgroup
now run docker daemon:
stevenh512 / controller_spec.rb
Created Oct 27, 2015 — forked from tonycoco/controller_spec.rb
The Greatest Hits of Rspec Testing: Volume 1
View controller_spec.rb
require "spec_helper"
describe ExampleController do
context "GET #index" do
let(:resources) { FactoryGirl.create_list(:resource) }
before do
get :index
View gist:94ae206969f75a01b1fa
### Keybase proof
I hereby claim:
* I am stevenh512 on github.
* I am stevenh512 ( on keybase.
* I have a public key whose fingerprint is 08F8 029E 6DE0 3F1B 0177 D9EE B843 E6FD 8D37 FDE9
To claim this, I am signing this object:
View pubkey.asc
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
stevenh512 / gitconfig-git
Created Jun 11, 2012
URL rewriting in .gitconfig
View gitconfig-git
# Use git and git+ssh instead of https
[url "git://"]
insteadOf =
[url ""]
pushInsteadOf = "git://"
[url ""]
pushInsteadOf = ""
stevenh512 / config.rb
Created May 23, 2012 — forked from nrrrdcore/frontage.css
Outlined Type Effect with CSS Text-Shadowing
View config.rb
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "stylesheets"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "javascripts"
# You can select your preferred output style here (can be overridden via the command line):
stevenh512 / .gitignore
Created May 22, 2012
GitHub Authorizations API for command line apps using Octokit
View .gitignore
stevenh512 / border.html
Created May 20, 2012
Another take on faded/gradient borders
View border.html
<title>Gradient borders</title>
<link rel="stylesheet" href="stylesheets/screen.css" type="text/css" />
<div class="border-container">
stevenh512 / border.css
Created May 19, 2012 — forked from nrrrdcore/border.css
Faded/Gradient Borders in Pure CSS
View border.css
.border-container {
width: 28%; /* border will be on the left on this container */
float: right;
overflow: hidden; /* only needed if floating container */
min-height: 600px; /* static height if you want your container to be taller than its content */
-moz-box-shadow: inset 15px 0 5px -16px rgba(0,0,0,.1), -1px 0 0 #FFF;
-webkit-box-shadow: inset 15px 0 5px -16px rgba(0,0,0,.1), -1px 0 0 #FFF;
box-shadow: inset 15px 0 5px -16px rgba(0,0,0,.1), -1px 0 0 #FFF;
border-width: 0 0 0 1px;
stevenh512 / bended-shadow.css
Created May 19, 2012 — forked from nrrrdcore/bending-shadow.css
Simple Bended-Shadow CSS: Create the Bended Photo Effect without writing a million divs.
View bended-shadow.css
.bended-shadow {
position: relative;
width: 500px;
margin: 200px auto;
.bended-shadow::before, .bended-shadow::after {
content: '';
position: absolute;
width: 60%;
You can’t perform that action at this time.