Skip to content

Instantly share code, notes, and snippets.

<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Gabe's Portfolio</title>
<link href="Main.css" rel="stylesheet" type="text/css">
<meta charset="utf-8">
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="Shadowbox/shadowbox-3.0.3/shadowbox.css">
@z3cka
z3cka / Vagrantfile
Created December 5, 2013 17:44
Sample base Vagrantfile with 2GB of ram and 2 cpus :-) Initialize with: vagrant init precise32 http://files.vagrantup.com/precise32.box
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise32"
<div class="car-block">
<img src="/images/cars/Corolla.jpg" alt="Toyota Corolla" height="192" border="0" width="256">
<div class="car-details">
<div class="car-title">Toyota Corolla</div>
<div class="car-seating">Seats 5</div>
</div>
</div>
<?php
/**
* @package Jtouch for Joomla 1.5
* @copyright Copyright (C) 2011 - 2012 MobileMeWs.com. All rights reserved.
* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
@z3cka
z3cka / gist:6601887
Last active December 23, 2015 07:39
sample ansible playbook evocation to a vagrant vm
ansible-playbook ~/Development/playbooks/apt-drupal8.yml -u vagrant -s -k
@z3cka
z3cka / gist:5988292
Last active December 19, 2015 16:59 — forked from crifkin/gist:5986419
NOTE: version numbers are at the time of this writing
1. Download and install Virtualbox (4.2.16)
2. Download and install Vagrant (1.2.3)
3. Check ruby and rubygems versions
4. Install berkshelf gem
gem install berkshelf --version '>= 1.4.0' --no-ri --no-rdoc
5. Install berkshelf vagrant plugin
vagrant plugin install vagrant-berkshelf --plugin-version '1.2.0'
6. Add vagrant basebox provided in Crifkin Training package (precise64_chef11.box)
@z3cka
z3cka / isu.sh
Last active December 18, 2015 11:38
A silly little bash script for checking if a site is up. usage: ./isu.sh sitetocheck.com
#!/bin/sh
siteResponse=`curl -s -I $1 | grep HTTP/1.1 | awk {'print $2'}`
if [ $siteResponse = 200 ]; then
echo "Looks like your site responded with a" $siteResponse "and is fine, be happy!"
else
echo "rut ro! Looks like your site responded with a" $siteResponse "and that's not right, go fix it!"
case $siteResponse in
301 )
@z3cka
z3cka / image-link-overlay.css
Last active December 15, 2015 09:58
image link overlay hack. this will place an image over another image that is within an anchor tag.
@z3cka
z3cka / gist:4156214
Created November 27, 2012 18:51
server-status
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
## Allow from localhost
# Allow from 131.216.134.76
Allow from all
</Location>
@z3cka
z3cka / menu.html
Created November 13, 2012 23:31
sample menu - with new div
<div class="new-wrapper">
<div id="nav-masthead" class="grid-12">
<ul>
<li class="homepage first"><a href="/home">Drupal Homepage</a></li>
<li class="login-register last"><a href="/user?destination=node%2F918708">Log in / Register</a></li>
</ul>
</div>
</div>