Skip to content

Instantly share code, notes, and snippets.

View PatMurrayDEV's full-sized avatar

Pat Murray PatMurrayDEV

View GitHub Profile
@PatMurrayDEV
PatMurrayDEV / spendyspendy.txt
Last active August 29, 2015 14:26 — forked from dannolan/spendyspendy.txt
Top Entitlement Claiming Federal Politicians in Australia (2H 2014)
Top Spenders OVERALL
The Hon Tony Abbott MP - $1057673
The Hon Julie Bishop MP - $866653
Mr Tony Pasin MP - $851482
Mr Tim Watts MP - $556863
The Hon Andrew Robb AO MP - $539247
The Hon Darren Chester MP - $529344
Mr Wyatt Roy MP - $526258
Senator the Hon Simon Birmingham - $523191
@PatMurrayDEV
PatMurrayDEV / The Technical Interview Cheat Sheet.md
Last active August 29, 2015 14:28 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@PatMurrayDEV
PatMurrayDEV / Sync gh-pages + master branches
Created November 2, 2015 10:39 — forked from mandiwise/Sync gh-pages + master branches
Keep gh-pages up to date with a master branch
// Reference: http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/
$ git add .
$ git status // to see what changes are going to be commited
$ git commit -m 'Some descriptive commit message'
$ git push origin master
$ git checkout gh-pages // go to the gh-pages branch
$ git rebase master // bring gh-pages up to date with master
$ git push origin gh-pages // commit the changes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<head>
<title>DriveSafe</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Base css, but you'll likely want to keep them -->
<link rel="stylesheet" href="css/reset.css" type="text/css">
<!-- Your custom files -->
@PatMurrayDEV
PatMurrayDEV / my.css
Created September 26, 2017 05:31 — forked from anonymous/my.css
CSS Gradient Animation
background: linear-gradient(222deg, #d3555c, #f48d3a, #fdc753, #70bc53, #249cd5, #9d61a4);
background-size: 1200% 1200%;
-webkit-animation: GradientScroll 30s ease infinite;
-moz-animation: GradientScroll 30s ease infinite;
-o-animation: GradientScroll 30s ease infinite;
animation: GradientScroll 30s ease infinite;
@-webkit-keyframes GradientScroll {
    0%{background-position:90% 0%}
    50%{background-position:11% 100%}
    100%{background-position:90% 0%}
@PatMurrayDEV
PatMurrayDEV / tweet_280_chars.md
Created September 28, 2017 01:35 — forked from mannynotfound/tweet_280_chars.md
tweet with 280 characters
background: linear-gradient(#ffffff 50%, rgba(255,255,255,0) 0) 0 0,
radial-gradient(circle closest-side, white 50%, rgba(255,255,255,0) 0) 0 0,
radial-gradient(circle closest-side, white 50%, rgba(255,255,255,0) 0) 55px 0,
radial-gradient(circle closest-side, white 30%, rgba(255,255,255,0) 0) 110px 0,
radial-gradient(circle closest-side, white 45%, rgba(255,255,255,0) 0) 165px 0,
radial-gradient(circle closest-side, white 45%, rgba(255,255,255,0) 0) 330px 0 #48B;
background-size:220px 200px;
background-repeat:repeat-x;
@PatMurrayDEV
PatMurrayDEV / open_graph.rb
Last active October 6, 2018 23:49
Dynamically Generated Open Graph Images in Jekyll
require 'rmagick'
require 'rickshaw'
module Jekyll
class OGFilter < Liquid::Tag
def initialize(tag_name, text, tokens)
super
@text = text
@PatMurrayDEV
PatMurrayDEV / gist:8eaa0ee4d5e5d45f535ed3e2ef1237fb
Created November 25, 2018 23:18 — forked from rmondello/gist:b933231b1fcc83a7db0b
Exporting (iCloud) Keychain and Safari credentials to a CSV file

Exporting (iCloud) Keychain and Safari credentials to a CSV file

After my dad died, I wanted to be able to have access any of his online accounts going forward. My dad was a Safari user and used iCloud Keychain to sync his credentials across his devices. I don’t want to have to keep an OS X user account around just to access his accounts, so I wanted to export his credentials to a portable file.

This is the process I used to create a CSV file of his credentials in the format “example.com,user,pass”. This portable format would be pretty easy to import into 1Password or Safari in the future.

The way I went about this isn’t great; it opens up more opportunities for apps to control one’s Mac through Accessibility APIs, it writes plaintext passwords to disk, and it could use some cleaning up. A better approach might leverage the security command line tool that ships with OS X. That said, I found this method to be a fun illustration of what’s possible us