This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'Zend/Application/Resource/ResourceAbstract.php'; | |
require_once 'Zend/Log.php'; | |
/** | |
* Multilog Resource | |
* | |
* @category Zend | |
* @package Zend_Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
phono = $.phono({ | |
apiKey: 'xxx', | |
onReady: function(event, phone) { | |
// (...) | |
}, | |
audio: { | |
type: 'java', | |
jar: 'http://hudson.voxeolabs.com/hudson/job/PhonoSDK/lastBuild/artifact/artifacts/sdk/plugins/audio/phono.audio.jar' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rafeca->roa ~/Documents/Curro/TID/10fridays/connfurence git:(telephony) ✗ sudo pecl install libevent | |
Password: | |
downloading libevent-0.0.4.tgz ... | |
Starting to download libevent-0.0.4.tgz (9,003 bytes) | |
.....done: 9,003 bytes | |
3 source files, building | |
running: phpize | |
Configuring for: | |
PHP Api Version: 20090626 | |
Zend Module Api No: 20090626 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
def _camel_to_underscore_case(name): | |
""" | |
Translate 'CamelCaseNames' to 'camel_case_names'. | |
""" | |
camelcase_boundry = '((?<=[a-z])[A-Z])' | |
return re.sub(camelcase_boundry, '_\\1', name).lower() | |
def camel_to_underscore_case(obj, deep=True): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function chpwd() { | |
if [ -e .venv ]; then | |
echo "$fg[green]Switching to virtualenv \"`cat .venv`\"$reset_color" | |
workon `cat .venv` | |
fi | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
CONFIGURED_INTERFACES = ["O2", "TID"] | |
VPN_INTERFACE_NAMES = "%s VPN" | |
RACOON_CONFIG_FILES = "/etc/racoon/racoon.conf.%s" | |
unless (ARGV.length > 0 && CONFIGURED_INTERFACES.include?(ARGV[0].upcase)) | |
puts "usage: vpn_connect [#{CONFIGURED_INTERFACES.join('|')}]" | |
exit 1 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function _buildParams(array $data = array(), $preffix = '') | |
{ | |
$query = array(); | |
foreach ($data as $k=>$v){ | |
if (is_array($v)){ | |
$query[] = _buildParams($v, $preffix ? $preffix .'[' . (is_int($k) ? '' : $k) . ']' : $k); | |
} else if ($preffix) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r 4a634fdf26e2 src/main/webapp/js/build-pipeline.js | |
--- a/src/main/webapp/js/build-pipeline.js Sat Aug 25 16:04:30 2012 -0700 | |
+++ b/src/main/webapp/js/build-pipeline.js Wed Sep 05 23:24:46 2012 +0100 | |
@@ -69,6 +69,18 @@ | |
}, | |
triggerBuild : function(id, upstreamProjectName, upstreamBuildNumber, triggerProjectName, dependencyIds) { | |
var buildPipeline = this; | |
+ | |
+ // Ugly patch by rafeca to fix this bug: https://issues.jenkins-ci.org/browse/JENKINS-14656 | |
+ var currentBox = $('#build-' + id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First, remove the tags from the origin repository | |
$ git tag -l | grep -e '-[a-zA-Z][0-9]*$' | awk '{ print ":" $1}' | xargs git push origin | |
# Then, remove the tags locally | |
$ git tag -l | grep -e '-[a-zA-Z][0-9]*$' | xargs git tag -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
FILES="app/config/config.production.yaml\|app/config/application.production.yaml" | |
if [ "`git diff-index --cached HEAD | grep \"$FILES\"`" ]; then | |
exec < /dev/tty | |
echo "You are commiting changes to a live config file. Are you sure? [y/n] " | |
read -s -n 1 sure |
OlderNewer