Skip to content

Instantly share code, notes, and snippets.

@polymetis
polymetis / footnotify.css
Created September 25, 2012 02:31 — forked from hpeikemo/footnotify.css
Footnotify
/*
* Customize Footnotify on your site by adding custom css.
*
* This file is NOT loaded by the script and must be
* implemented on the site in order to apply.
*
* More info: https://gist.github.com/1046538
*
*/
@polymetis
polymetis / index.markdown
Created October 16, 2012 16:02
Wanted to have a font-size mixin that included the golden ratio, and music intervals. So here it is.

#headline ##healine 2

@polymetis
polymetis / everytimezone.coffee
Created October 17, 2012 02:05 — forked from madrobby/everytimezone.coffee
First conversion of http://everytimezone.com/ JavaScript code to CoffeeScript
# Two things are important to note:
#
# 1) The code is fugly, because it was a JavaScript/iPad experiment.
# I know that it is ugly, so pretty please don't comment on that part.
# 2) I tried to use as many CoffeeScript features as possible,
# including but not limited to list comprehensions,
# heredocs, destructuring assignment and also the "do" operator
#
# I welcome comments about stuff that is not CoffeeScripty enough, or what I should
# write differently.
<div class="reboot">
<div class="reboot-interior"></div>
</div>
// This is a peek behind the curtain at @zaarly's epic-fantasy-heavy-metal-themed internal styleguide, better known as Hammer.
//
// Altering this a bit for my own purposes
//
// With this, you can add the .fancy class to a symbolset span inside of a heading tag to add a nice circular background.
// Some adjustments to the positioning of a particular glyph may be necessary.
// Each :before is set to postion: relative, so fine-tuning a .fancy glyph is simple, and won't affect the position of the circle.
//
// Example markup (in HAML):
// %h1

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@polymetis
polymetis / gist:5863879
Last active December 18, 2015 23:48
Ignore build artifacts.
git status -sb | grep '??' | awk '{ print $2 }' | xargs -I buildfile bash -c "echo "buildfile" >> .gitignore"
@polymetis
polymetis / remoteswaptossh.sh
Last active December 20, 2015 05:39
This does all the .git changes we need on preexisting repositories. These changes don't need to committed and this is a destructive process.
#!/usr/bin/env bash
if [ -e .gitmodules ]; then
sed -i 's/https:\/\/github.com\//git@github.com:/g' .git/config
awk '/path =/ { print $3 }' .gitmodules | xargs -imetrasub -P10 bash -c "cd .git/modules/metrasub && sed -i 's/https:\/\/github.com\//git@github.com:/g' config"
else
echo "run this from the top"
exit 1
fi
@polymetis
polymetis / ssh-help.sh
Last active December 20, 2015 06:49
Ssh helper for windows.
#!/usr/bin/env bash
read -p "Enter the *email* that you use for GitHub: " email
ssh-keygen -t rsa -C "$email" <<!
id_rsa
!
key="$(cat ~/.ssh/id_rsa.pub)"
git clone https://github.com/rabbitmq/rabbitmq-dotnet-client.git rabbitmq && cd rabbitmq && git checkout rabbitmq_v3_5_4