Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| #!/bin/bash | |
| echo "--------------------------------------------------------------------------------------" | |
| echo "This script builds a full operating system with debootstrap and chroot" | |
| echo "To use this script, please mount an empty partition or alternate disk" | |
| echo "" | |
| echo "If you are using btrfs, and using subvolumes, mount the root subvolume explicity" | |
| echo "Example: mount /dev/sdb1 /media/bootstrap -o subvol=@" | |
| echo "Failure to do this will cause the script to break. It needs the root directory" | |
| echo "" | |
| echo "The script is specifically built for Ubuntu" |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| @mixin flag-variant($height, $bg) { | |
| display: block; | |
| background:$bg; | |
| position: relative; | |
| line-height: $height; | |
| font-size: $height*.5; | |
| &::before, | |
| &::after { | |
| content: ""; |
| #!/bin/bash | |
| # linode stackscript to setup a user with my ssh key | |
| # so that I can run ansible provisions | |
| set -e | |
| set -u | |
| adduser --disabled-password --gecos "" my_user |
| source 'https://rubygems.org' | |
| # Follows the bundler group pattern described here: | |
| # http://iain.nl/getting-the-most-out-of-bundler-groups | |
| # Gemfile.mine in root dir allows locally custom gems. | |
| # NOTE: Doing this will change the Gemfile.lock - commit with care. | |
| eval File.read(File.join(File.dirname(__FILE__), 'Gemfile.mine')) if File.exists? File.join(File.dirname(__FILE__), 'Gemfile.mine') | |
| ruby '1.9.3' |
| // Google Analytics code to work with Turbolniks 5 | |
| this.GoogleAnalytics = (function() { | |
| function GoogleAnalytics() {} | |
| GoogleAnalytics.load = function() { | |
| var firstScript, ga; | |
| window._gaq = []; | |
| window._gaq.push(["_setAccount", GoogleAnalytics.analyticsId()]); | |
| window._gaq.push(['_setAllowAnchor', true]); |
| // quando clicco su enterfullscreen: | |
| // vai in fullscreen | |
| // all'entrata in fullscreen: | |
| // mostra pulsante exitfullscreen | |
| // nascondi header e footer | |
| // quando clicco su exitfullscreen: | |
| // esci da fullscreen |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| module Acts | |
| module Cacheable | |
| def self.included(base) | |
| base.extend(ClassMethods) | |
| end | |
| module ClassMethods | |
| def acts_as_cacheable(key, options = {}) | |
| extend Acts::Cacheable::SingletonMethods | |
| find(:all, options).each{|instance| cached_objects[instance.send(key).to_s] = instance} |
| // Makes a CSS hexagon! based off of http://csshexagon.com/ | |
| // Demo: http://sassmeister.com/gist/98fcf3ce163a97d2ef7e | |
| @mixin hexagon($size, $color, $border: 0) { | |
| position: relative; | |
| width: $size; | |
| height: ($size * 0.577); | |
| background-color: $color; | |
| margin: ($size * 0.288) 0; | |
| border-left: $border; | |
| border-right: $border; |