Skip to content

Instantly share code, notes, and snippets.

View robertlyall's full-sized avatar

Robert Lyall robertlyall

View GitHub Profile
@robertlyall
robertlyall / VPS Upload Function
Last active December 23, 2015 03:09
Cool function for Terminal. I just need to type "upload cool-image.jpg" in the Terminal to upload it to my VPS, and copy the public URL to my clipboard.
function upload() {
scp "$1" robert@rglyall.co.uk:~/public/rglyall.co.uk/public/i;
echo "http://rglyall.co.uk/i/$1" | pbcopy;
echo "Copied to clipboard: http://rglyall.co.uk/i/$1"
}
@robertlyall
robertlyall / htaccess redirect
Created November 5, 2013 11:01
.htaccess redirect: www to non-www
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.rglyall\.co.uk [NC]
RewriteRule (.*) http://rglyall.co.uk/$1 [R=301,L]
@robertlyall
robertlyall / SassMeister-input.sass
Created February 6, 2014 15:36
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
= e($name)
@at-root #{&}__#{$name}
@content
= m($name)
@robertlyall
robertlyall / SassMeister-input.sass
Created February 12, 2014 14:49
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.3)
// Compass (v1.0.0.alpha.18)
// Breakpoint (v2.4.1)
// ----
@import "breakpoint"
$mobile-font-size: 16px
$ipad-font-size: 18px
@robertlyall
robertlyall / SassMeister-input.sass
Created February 12, 2014 22:00
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.3)
// Compass (v1.0.0.alpha.18)
// ----
=e($name)
&__#{$name}
@content
=m($name)
@robertlyall
robertlyall / SassMeister-input-HTML.html
Created March 3, 2014 12:38
Generated by SassMeister.com.
<div class="box">Testing</div>
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
@robertlyall
robertlyall / SassMeister-input-HTML.haml
Created April 9, 2014 09:58
Generated by SassMeister.com.
.dialog
%a.dialog__button{:href => '#'} Click
@robertlyall
robertlyall / SassMeister-input-HTML.haml
Created April 9, 2014 11:19
Generated by SassMeister.com.
%ul.dropdown
%li.dropdown__item.dropdown__item--active
%a.dropdown__link{:href => '#'} Hello?
%ul.dropdown__menu
%li.dropdown__menu-item
%a.dropdown__menu-link{:href => '#'} Option 1
%li.dropdown__menu-item
%a.dropdown__menu-link{:href => '#'} Option 2
%li.dropdown__menu-item
%a.dropdown__menu-link{:href => '#'} Option 3
@robertlyall
robertlyall / SassMeister-input-HTML.haml
Created April 9, 2014 15:39
Generated by SassMeister.com.
.btn-group
%a.btn{:href => '#'} Refresh
%a.btn{:href => '#'} Follow
%a.btn{:href => '#'} Back to list