Skip to content

Instantly share code, notes, and snippets.

View aripalo's full-sized avatar

Ari Palo aripalo

View GitHub Profile
@aripalo
aripalo / README.md
Last active February 10, 2016 16:30 — forked from renier/fix_vbox_net.rb
Add exception to ipfw firewall (fixes Vagrant+VirtualBox with Cisco VPN)

Should work for Vagrant managed VirtualBox virtual machines hosted on OS X (up to OS X Maverics which has ipfw-based firewall. OS X Yosemite has another pf-based firewall so not sure about that...)

Usage:

Run with sudo and pass in your VirtualBox managed VM's vboxnet IP address or address range:

sudo ruby add_ipfw_exception.rb 172.16.0.0/12
@aripalo
aripalo / bended-shadow.css
Created May 18, 2012 10:42 — 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%;
@aripalo
aripalo / apple-shadow.css
Created May 18, 2012 10:42 — forked from nrrrdcore/apple-shadow.css
Bending Shadows Backwards: Apple.com's Container CSS Sorcery
.shadow-stuff {
-moz-border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px;
-webkit-border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px;
border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px;
-moz-box-shadow: rgba(0,0,0,.30) 0 2px 3px;
-webkit-box-shadow: rgba(0,0,0,.30) 0 2px 3px;
box-shadow: rgba(0,0,0,.30) 0 2px 3px;
}
.container {
@aripalo
aripalo / anchorinclude.js
Created March 30, 2012 15:59 — forked from scottjehl/anchorinclude.js
Anchor-include Pattern
/*
* anchor-include pattern for already-functional links that work as a client-side include
* Copyright 2011, Scott Jehl, scottjehl.com
* Dual licensed under the MIT
* Idea from Scott Gonzalez
* to use, place attributes on an already-functional anchor pointing to content
* that should either replace, or insert before or after that anchor
* after the page has loaded
* Replace: <a href="..." data-replace="articles/latest/fragment">Latest Articles</a>
* Before: <a href="..." data-before="articles/latest/fragment">Latest Articles</a>
@aripalo
aripalo / README.md
Created March 21, 2012 13:49 — forked from necolas/README.md
Experimenting with component-based HTML/CSS naming and patterns

Template Components

Used to provide structural templates.

Pattern

t-template-name
t-template-name--modifier-name
t-template-name__subcomponent-name--subcomponent-modifier-name