Skip to content

Instantly share code, notes, and snippets.

View surreymagpie's full-sized avatar
🏠
Working from home

Rob Curtis surreymagpie

🏠
Working from home
  • Matlock, UK
  • 06:27 (UTC +01:00)
View GitHub Profile
@surreymagpie
surreymagpie / SassMeister-input-HTML.haml
Created November 13, 2014 19:59
Generated by SassMeister.com.
%h1 Heading 1
%h2 Heading 2
%h3 Heading 3
%h4 Heading 4
%h5 Heading 5
%h6 Heading 6
@surreymagpie
surreymagpie / SassMeister-input.scss
Created November 13, 2014 20:58
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
$ratio: 1.32;
$base-font-size: 16px;
$base-line-height: 1.5;
$line: $base-font-size * $base-line-height;
@surreymagpie
surreymagpie / designer.html
Last active August 29, 2015 14:10
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
#!/bin/bash
gitcreate() {
repo_name=$1
invalid_credentials=0
dir_name=`basename $(pwd)`
if [ "$repo_name" = "" ]; then
echo "Repo name (hit enter to use '$dir_name')?"
@surreymagpie
surreymagpie / handlebars.sublime-snippet
Last active August 29, 2015 14:16
Sublime Text Hanlebars snippets
<snippet>
<content><![CDATA[{{${1:outlet}}}]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>hb</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.html</scope> -->
</snippet>
@surreymagpie
surreymagpie / html.tpl.php
Last active August 28, 2015 14:54
Add conditional js to Drupal theme
/**
* Add this line to the very top of your template head
* as it needs to be run before styles
*/
<head>
<?php print $ie_scripts; ?>
</head>
run "mv README.rdoc README.md"
gsub_file("README.md", "== README", "# #{app_name.titleize}")
gem 'haml'
gem_group :development, :test do
gem 'annotate'
gem 'better_errors'
gem 'capybara'
gem 'quiet_assets'
@surreymagpie
surreymagpie / Procedure.md
Last active April 13, 2017 14:44
Installing MS Money on Arch Linux

Installing MS Money on Arch Linux

GPG Key

First install the GPG key to verify the source file

     gpg --keyserver hkp://keys.gnupg.net --recv-keys CEFAC8EAAF17519D

Download AUR package

#################################################
###
### This script will ensure a fresh install of Arch Linux is setup
### with personal dotfiles and Vim plugins
###
#################################################
# Prerequisites
# These packages are in the standard repositories
# install the openssl-1.0 package
sudo pacman -S openssl-1.0
# downgrade gcc and gcc-libs
wget https://archive.archlinux.org/packages/g/gcc/gcc-6.3.1-2-x86_64.pkg.tar.xz
wget https://archive.archlinux.org/packages/g/gcc-libs/gcc-libs-6.3.1-2-x86_64.pkg.tar.xz
sudo pacman -U gcc-6.3.1-2-x86_64.pkg.tar.xz gcc-libs-6.3.1-2-x86_64.pkg.tar.xz
# download v1.0.2.k of the openssl package
wget https://archive.archlinux.org/packages/o/openssl/openssl-1.0.2.k-1-x86_64.pkg.tar.xz