Skip to content

Instantly share code, notes, and snippets.

@stevenh512
stevenh512 / gist:bae3d5174c26536cab38
Created October 28, 2015 06:12 — forked from hayderimran7/gist:d2e40534016f7f07da44
Solve docker issue "Error mounting devices cgroup: mountpoint for devices not found" on ubuntu
I faced this issue when running docker with btrfs. I finally found this link https://www.debian-administration.org/article/696/A_brief_introduction_to_using_docker 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
stevenh512 / controller_spec.rb
Created October 27, 2015 19:42 — forked from tonycoco/controller_spec.rb
The Greatest Hits of Rspec Testing: Volume 1
require "spec_helper"
describe ExampleController do
context "GET #index" do
let(:resources) { FactoryGirl.create_list(:resource) }
before do
get :index
end
### Keybase proof
I hereby claim:
* I am stevenh512 on github.
* I am stevenh512 (https://keybase.io/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:
@stevenh512
stevenh512 / pubkey.asc
Created July 8, 2014 03:39
GPG public key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
mQINBFIEcFABEADSRqEJYRiiX00KdCQDOn+jymGy09QpMX3YRzR3kYqR/gFR3hmn
NutiXcI2V1axVq/nCn/Gn0Z6cI3B40cQojaddEcFB5qR+FQ7HS563f7pPKSt5GVa
q2MUZ8U70awSJH+1gh+Lu2PmuiwMvY17csjDR+hRtXPHYiWbsPnP5O2Tl9+l2SMG
eY15BQSnV3LQaftYHVBsHLSRMw3SUXMI7eScfq+AUo40cPSbk1URQJQdKFdx/mB/
gs/jq3mrc2cl+CivlpZTbCc2PcWKgwXaY++sUAK7BjOhkrTdtBOkBRIO+qoAPwiI
EtDyBYPDSyLeji7IFZHRvjobwJhWxpPv23A03S4rHHNiBXn+/gYj1S/zL2duO8qv
LGJJAGWE3E+XQ1HMlALDM0/eCdmTHKX0uDBZdWnckCbPAP8eghpnHgAvcRz19djQ
@stevenh512
stevenh512 / gitconfig-git
Created June 11, 2012 10:51
URL rewriting in .gitconfig
# Use git and git+ssh instead of https
[url "git://github.com/"]
insteadOf = https://github.com/
[url "git@github.com:"]
pushInsteadOf = "git://github.com/"
[url "git@github.com:"]
pushInsteadOf = "https://github.com/"
@stevenh512
stevenh512 / config.rb
Created May 23, 2012 08:29 — forked from nrrrdcore/frontage.css
Outlined Type Effect with CSS Text-Shadowing
# 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
stevenh512 / .gitignore
Created May 22, 2012 21:23
GitHub Authorizations API for command line apps using Octokit
Gemfile.lock
@stevenh512
stevenh512 / border.html
Created May 20, 2012 00:08
Another take on faded/gradient borders
<html>
<head>
<title>Gradient borders</title>
<link rel="stylesheet" href="stylesheets/screen.css" type="text/css" />
</head>
<body>
<div class="border-container">
<div>
<h1>Ohai!</h1>
</div>
@stevenh512
stevenh512 / border.css
Created May 19, 2012 10:47 — forked from nrrrdcore/border.css
Faded/Gradient Borders in Pure 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;
-webkit-border-image:
@stevenh512
stevenh512 / bended-shadow.css
Created May 19, 2012 07:09 — forked from nrrrdcore/bending-shadow.css
Simple Bended-Shadow CSS: Create the Bended Photo Effect without writing a million divs.
.bended-shadow {
position: relative;
width: 500px;
margin: 200px auto;
}
.bended-shadow::before, .bended-shadow::after {
content: '';
position: absolute;
width: 60%;