Skip to content

Instantly share code, notes, and snippets.

View dennisoehme's full-sized avatar
Happy coding!

Dennis Oehme dennisoehme

Happy coding!
View GitHub Profile
@dennisoehme
dennisoehme / download_fusion.sh
Created August 5, 2025 17:55 — forked from jetfir3/download_fusion.sh
Download VMware Fusion Pro Without a Broadcom Account
#!/usr/bin/env bash
# Download VMware Fusion for macOS without a Broadcom account.
#
# This script allows you to download various versions of VMware Fusion
# from Broadcom's Cloudflare CDN (versions 8.0.0 to 13.6.3)
# or from the archive.org VMware Workstation archive (versions 8.x.x+).
#
# Options:
# -k: Keep the downloaded file compressed (Cloudflare only; ignored for archive.org).
@dennisoehme
dennisoehme / 0_reuse_code.js
Created August 19, 2014 12:40
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@dennisoehme
dennisoehme / gist:1118297
Created August 1, 2011 15:04
SitemapHandling
<?php
class DetailsController extends Controller
{
public function overviewAction($id)
{
$contact = $this->_loadContact($id);
$bookings = $this->_loadBookings($id);
$this->getSitemap()->register($contact);
@dennisoehme
dennisoehme / gist:1077954
Created July 12, 2011 13:15
symfony form collection handling
<?php
class CriteriaForm extends AbstractType
{
public function buildForm(FormBuilder $builder, array $options)
{
$builder->add('key', 'text', array('required' => true));
$builder->add('value', 'text', array('required' => true));
}
var json = '{"function":function(){alert("test");}}';
try {
var obj = $.parseJSON(json);
} catch(e) {
alert(e);
}
<?php
Zend_Validate::addDefaultNamespaces(array('Casa_Validate'));
$input = new Zend_Filter_Input(array(), array(
'UserExists'
));
//$input->addValidatorPrefixPath('Casa_Validate', 'Casa/Validate'); // <<< this works
$input->setData(array('foo' => 'bar'));
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script language="JavaScript" type="text/javascript">
<!--
jQuery(function() {
$('#calc').find('select').change(function() {