Skip to content

Instantly share code, notes, and snippets.

View adamquaile's full-sized avatar

Adam Quaile adamquaile

View GitHub Profile
@martijnvermaat
martijnvermaat / fix_sslv3.sh
Last active January 5, 2016 10:07
Fix curl/gnutls SSLv3 on Ubuntu 14.04
#!/bin/bash
# Fix curl/gnutls SSLv3 on Ubuntu 14.04
#
# The curl version on Ubuntu 14.04 Trusty Tahr has a bug (through gnutls) in
# its SSLv3 support. This also affects git.
#
# http://sourceforge.net/p/curl/bugs/1319/
#
# This downgrades curl to 7.32 (from Ubuntu 13.12), which does not have the
# bug. It also uninstalls the landscape-client and python-pycurl packages
@alnutile
alnutile / behat.inc.php
Created January 11, 2014 00:57
No name iframe
/**
* Sets an iFrame ID to no_name_iframe if there is no ID. You can then add a Switch to iFrame step after it using the na_name_iframe ID.
*
* @Given /^I the set the iframe located in element with an id of "([^"]*)"$/
*/
public function iSetTheIframeLocatedInElementWithAnIdOf($element_id) {
$check = 1; //@todo need to check using js if exists
if($check <= 0) {
@mardix
mardix / php-cs-fixer-pre-commit.php
Created September 4, 2012 17:06
A pre-commit hook to make PHP code PSR-2 compliant, check for syntax error
#!/usr/bin/php
<?php
/**
* .git/hooks/pre-commit
*
* This pre-commit hooks will check for PHP error (lint), and make sure the code
* is PSR compliant.
*
* Dependecy: PHP-CS-Fixer (https://github.com/fabpot/PHP-CS-Fixer)
*
@blazarecki
blazarecki / PopupDictionary.php
Last active November 10, 2021 15:54
Alert, confirm and prompt with mink
<?php
namespace Widop\Mink\Extension;
/**
* Dictionary to manage popups.
*
* @author Benjamin Lazarecki <benjamin.lazarecki@gmail.com>
*/
trait PopupDictionary