Skip to content

Instantly share code, notes, and snippets.

---
- name: Group by Distribution
hosts: all
tasks:
- group_by: key={{ansible_distribution}}
- name: Set Time Zone
hosts: Ubuntu
gather_facts: False
vars:
@mheijkoop
mheijkoop / phpEvenCheck.php
Created April 27, 2012 13:26 — forked from josephwegner/phpEvenCheck.php
Is Number Even
<?
// this is more the PHP-way
// requires the bcmath extension so make sure your shared hosting provider has it.
is_even($argv[1]);
function is_even($number) {
$oldnumber = $number;
goto a;
result:
@bradenmacdonald
bradenmacdonald / gist:1320318
Created October 27, 2011 18:05
Django-CMS Wymeditor cross-domain issue workaround
# Set up your site so that static files can be accessed from the static
# domain *or* from a subfolder of the main site (e.g. use a symlink)
# Then add a setting like the following to your site's settings.py,
# such that /static/ is the same as http://static.yourdomain.com
#############################################################################
WYM_CMS_STATIC_URL = '/static/cms/'
#############################################################################
# Replace the last line of cms/plugins/text/settings.py with the following: