This file contains hidden or 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
| *.pbxproj -crlf -diff -merge |
This file contains hidden or 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 bash | |
| # Formatting constants | |
| export BOLD=`tput bold` | |
| export UNDERLINE_ON=`tput smul` | |
| export UNDERLINE_OFF=`tput rmul` | |
| export TEXT_BLACK=`tput setaf 0` | |
| export TEXT_RED=`tput setaf 1` | |
| export TEXT_GREEN=`tput setaf 2` | |
| export TEXT_YELLOW=`tput setaf 3` |
This file contains hidden or 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/bash | |
| set -x | |
| set -e | |
| echo "deb http://apt.opscode.com/ `lsb_release -cs`-0.10 main" | sudo tee /etc/apt/sources.list.d/opscode.list | |
| wget -qO - http://apt.opscode.com/[email protected] | sudo apt-key add - | |
| # set up debconf preseed so there's no prompt for the chef server URL | |
| export PRESEED_FILE=/tmp/tmp_chef_preseed |
This file contains hidden or 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
| package com.ebmwebsourcing.seacloud.model; | |
| import javax.jws.WebParam; | |
| import net.cloudbees.fifiant.soceda.services.esperengine.ListAllStatementsResponse; | |
| import seacloud.petalslink.com.service.management.cloud._1_0.CloudManagementException; | |
| public interface CEPModule { | |
| public ListAllStatementsResponse listAllStatements(net.cloudbees.fifiant.soceda.services.esperengine.ListAllStatements parameters) throws CloudManagementException; |
This file contains hidden or 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 | |
| wget http://gitorious.ow2.org/ow2-utilities.xml | |
| option=$1 | |
| for tag in clone_url; do | |
| repositories=`grep $tag ow2-utilities.xml \ | |
| | tr -d [\ ] \ | |
| | sed 's/^<.*>\([^<].*\)<.*>$/\1/'` |
This file contains hidden or 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
| app.filter('bytes', function() { | |
| return function(bytes, precision) { | |
| if (isNaN(parseFloat(bytes)) || !isFinite(bytes)) return '-'; | |
| if (typeof precision === 'undefined') precision = 1; | |
| var units = ['bytes', 'kB', 'MB', 'GB', 'TB', 'PB'], | |
| number = Math.floor(Math.log(bytes) / Math.log(1024)); | |
| return (bytes / Math.pow(1024, Math.floor(number))).toFixed(precision) + ' ' + units[number]; | |
| } | |
| }); |
This file contains hidden or 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
| language: java | |
| env: | |
| global: | |
| - SONATYPE_USERNAME=yourusername | |
| - secure: "your encrypted SONATYPE_PASSWORD=pass" | |
| after_success: | |
| - python addServer.py | |
| - mvn clean deploy --settings ~/.m2/mySettings.xml |
This file contains hidden or 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
| # Install JSON gem before: gem install json | |
| curl -s https://api.github.com/orgs/play-project/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
This file contains hidden or 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 node | |
| var fs = require('fs'); | |
| function getTemperature (device) { | |
| fs.readFile('/sys/bus/w1/devices/' + device + '/w1_slave', 'utf8', function (err, data) { | |
| var output = data.match(/t=(\d+)/); | |
| var calc = output[1] / 1000; |
This file contains hidden or 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
| # Install Jenkins 1.529 on Ubuntu 12.10 | |
| # Build | |
| # sudo docker run -p 8080:8080 -i -t obazoud/jenkins /bin/bash | |
| # Install | |
| # sudo docker pull obazoud/jenkins | |
| # Use | |
| # cd /opt && java -jar jenkins.war |
OlderNewer