most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
#!/bin/bash | |
for file in `find .` | |
do | |
EXTENSION="${file##*.}" | |
if [ "$EXTENSION" == "php" ] || [ "$EXTENSION" == "phtml" ] | |
then | |
RESULTS=`php -l $file` |
<?php | |
function parse_console($argv = null) { | |
$argv = isset($argv) ? $argv : $_SERVER['argv']; | |
$basename = array_shift($argv); | |
$arguments = array(); | |
$options = array(); | |
$switches = array(); | |
$tmp = null; | |
foreach ($argv as $arg) { | |
if (preg_match('/^--([^=]+)=(.*)$/', $arg, $reg)) { |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
this_dir = File.dirname(__FILE__) + "/" | |
require this_dir + "vagrant/hostmaster.rb" | |
Vagrant::Config.run do |config| | |
# define some colors for our output | |
def colorize(text, color_code) "#{color_code}#{text}\033[0m" end |
<?php | |
namespace PW\ApplicationBundle\Command; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand, | |
Symfony\Component\Console\Input\InputArgument, | |
Symfony\Component\Console\Input\InputInterface, | |
Symfony\Component\Console\Input\StringInput, | |
Symfony\Component\Console\Output\OutputInterface; |
#!/usr/bin/env php | |
<?php | |
/* | |
Copyright 2013 Stuart Carnie and other contributors | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to |
import javax.jcr.Credentials; | |
import javax.jcr.Node; | |
import javax.jcr.Repository; | |
import javax.jcr.RepositoryException; | |
import javax.jcr.Session; | |
import javax.jcr.Workspace; | |
import javax.jcr.SimpleCredentials; | |
import javax.jcr.version.*; | |
import ch.liip.jcr.davex.DavexClient; |
<?php | |
/** | |
* This class can add WSSecurity authentication support to SOAP clients | |
* implemented with the PHP 5 SOAP extension. | |
* | |
* It extends the PHP 5 SOAP client support to add the necessary XML tags to | |
* the SOAP client requests in order to authenticate on behalf of a given | |
* user with a given password. | |
* |