Skip to content

Instantly share code, notes, and snippets.

View kalifg's full-sized avatar

Michael Dwyer kalifg

View GitHub Profile

Keybase proof

I hereby claim:

  • I am kalifg on github.
  • I am kalifg (https://keybase.io/kalifg) on keybase.
  • I have a public key ASAESi8fmK5ZHKJ6mQKtTty77uTpqRkX1QwNkQ165vQtYgo

To claim this, I am signing this object:

@kalifg
kalifg / 0_reuse_code.js
Last active August 29, 2015 14:06
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
<?xml version="1.0" encoding="UTF-8"?>
<!-- http://www.phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit
backupGlobals = "false"
backupStaticAttributes = "false"
colors = "true"
convertErrorsToExceptions = "true"
convertNoticesToExceptions = "true"
convertWarningsToExceptions = "true"
imports:
- resource: config_dev.yml
- resource: ../../config/doctrine/doctrine_dev_local.yml
framework:
test: ~
session:
storage_id: session.storage.mock_file
# If you need to load local routings
router: { resource: "%kernel.root_dir%/../config/routing/routing_dev_local.yml" }
_dev:
resource: routing_v3.yml
imports:
- resource: doctrine.yml
doctrine:
dbal:
default_connection: default
connections:
default:
driver: pdo_mysql
host: 10.10.10.10
imports:
- resource: config_test.yml
- resource: ../../config/doctrine/doctrine_test_local.yml
framework:
test: ~
session:
storage_id: session.storage.mock_file
# If you need to load local routings
router: { resource: "%kernel.root_dir%/../config/routing/routing_test_local.yml" }
<?php
namespace Chess\ChessBundle\Test;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase as BaseWebTestCase;
use Chess\UserBundle\Entity\User;
class WebTestCase extends BaseWebTestCase
{
protected $client;
protected function loginAs(User $user)
{
$qCodoUser = \User::Load($user->getUserId(), true);
\UserSecurity::Login($qCodoUser, false);
$this->user = $user;
}
protected function loginAsUsername($username)
{
@kalifg
kalifg / brew_config.txt
Created July 23, 2012 19:57
brew install -v sbcl
HOMEBREW_VERSION: 0.9.2
HEAD: 64edb639151161b7d0ea70f7f84871e68acc9a4c
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit sandybridge
OS X: 10.7.4-x86_64
Xcode: 4.3.3
CLT: 4.3.0.0.1.1249367152
GCC-4.0: N/A
GCC-4.2: N/A