Skip to content

Instantly share code, notes, and snippets.

@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
<?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.
<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>
@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"
<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 / photo.html
Last active December 30, 2015 23:49 — forked from anonymous/photo.html
<!doctype html>
<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>
<?php
/* From https://www.usps.com/send/official-abbreviations.htm */
$us_state_abbrevs_names = array(
'AL'=>'ALABAMA',
'AK'=>'ALASKA',
'AS'=>'AMERICAN SAMOA',
'AZ'=>'ARIZONA',
'AR'=>'ARKANSAS',
@z3cka
z3cka / nginx.conf
Last active August 29, 2015 13:57
example of a load balancer config via nginx's upstream module
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
@z3cka
z3cka / functions.js
Created March 21, 2014 04:44
maybe the easiest test I ever took... :-P via http://www.cdc.gov/concussion/HeadsUp/Training/index.html
var currentLesson;
var currentSlide;
var highestLesson;
var thisDelay;
var isPaused = true;
var l2audioIsPlaying = false;
var quizKey = {};
var questionOrVideo = {};
var didExplore = 0;
@z3cka
z3cka / monkey-script.html
Last active August 29, 2015 14:01
sample "embed" ? from mailchimp
<!-- Begin MailChimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/classic-081711.css" rel="stylesheet" type="text/css">
<style type="text/css">
#mc_embed_signup .size1of2 {
clear: none;
float: left;
display: inline-block;
width: 100%;
margin-right: 4%;
}