Skip to content

Instantly share code, notes, and snippets.


Matt Bailey matt-bailey

View GitHub Profile
matt-bailey / cross-browser-inline-block.css
Created Apr 10, 2012
CSS: Cross Browser Inline-Block
View cross-browser-inline-block.css
/* Source: */
li {
display: -moz-inline-stack;
display: inline-block;
vertical-align: top;
zoom: 1;
*display: inline;
View gist:2497771
/* H5BP image replacement: */
.ir {
font: 0/0 a;
text-shadow: none;
color: transparent;
matt-bailey / gist:2498745
Created Apr 26, 2012
Image sprite fading
View gist:2498745
/* */
/* HTML - <a href="#" class="arrow">Arrow<span></span></a> */
/* CSS */
.arrow {
display: inline-block;
position: relative;
text-indent: -9999px;
matt-bailey / gist:2519776
Created Apr 28, 2012
Responsive Image Test
View gist:2519776
<!doctype html>
<title>Responsive image test</title>
<meta charset="utf-8"/>
<div id="browser"></div>
matt-bailey / index.html
Created Jun 27, 2012
A web page created at
View index.html
<!DOCTYPE html>
<meta charset="UTF-8">
<title>Papercut &middot; CodePen</title>
View index.html
<!DOCTYPE html>
<meta charset="UTF-8">
<title>Papercut &middot; CodePen</title>
/* General Set Up Styles */
matt-bailey / gist:3524441
Created Aug 30, 2012
Terminal - MySQL dumping and importing
View gist:3524441
# Import sql dump into database
cat dump.sql | mysql -u[username] -p[password] [database-name]
# MySQL dump
mysqldump -u[username] -p[password] [database-name] > /var/backups/dump.txt
matt-bailey / gist:3609369
Created Sep 3, 2012
Terminal - Rsync merge files/folders from one server to another
View gist:3609369
# Merge from remote to local (exclude .svn folders)
rsync -av --exclude '.svn' [username]@[server]:/[path-to-folder]/[folder] ./
# Use this flag to show progress
# ./ means merge into the current folder (it needs to exist!)
# Reverse paths to go from local to remote
matt-bailey / gist:3609371
Created Sep 3, 2012
Terminal - Chmod folders/files recursively
View gist:3609371
# -R recursively all + read & write
chmod -R a+rw [folder]/
matt-bailey / gist:3664262
Created Sep 7, 2012
Terminal - Rename a file
View gist:3664262
# Basically moves a file
mv [old-file-name] [new-file-name]