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
INFO: Loading '/etc/default/activemq' | |
INFO: Using java '/usr/local/bin/java' | |
INFO: Starting in foreground, this is just for debugging purposes (stop process by pressing CTRL+C) | |
Java Runtime: Oracle Corporation 1.7.0_05 /packages/encap/java-1.7.0_05 | |
Heap sizes: current=1004928k free=994439k max=1004928k | |
JVM args: -Xms1G -Xmx1G -Djava.util.logging.config.file=logging.properties -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote -Djava.io.tmpdir=/var/tmp -Dactivemq.classpath=/usr/local/activemq/conf; -Dactivemq.home=/usr/local/activemq -Dactivemq.base=/usr/local/activemq -Dactivemq.conf=/usr/local/activemq/conf -Dactivemq.data=/var/testing/activemq/data | |
Extensions classpath: | |
[/usr/local/activemq/lib,/usr/local/activemq/lib/camel,/usr/local/activemq/lib/optional,/usr/local/activemq/lib/web,/usr/local/activemq/lib/extra] | |
ACTIVEMQ_HOME: /usr/local/activemq | |
ACTIVEMQ_BASE: /usr/local/activemq |
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
<?php | |
return [ | |
'apiVersion' => '2', | |
'operations' => [ | |
'ListPriorities' => [ | |
'httpMethod' => 'GET', | |
'uri' => 'priority', | |
'summary' => 'Returns a list of all issue priorities.', | |
'responseClass' => 'ListPrioritiesResponse', |
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
Routing tables | |
Internet: | |
Destination Gateway Flags Refs Use Netif Expire | |
default 172.22.10.1 UGSc 14 70313 en0 | |
default 172.22.20.1 UGScI 0 0 en1 | |
default 172.22.10.229 UGScI 0 0 ppp0 | |
127 127.0.0.1 UCS 0 0 lo0 | |
127.0.0.1 127.0.0.1 UH 12 922873 lo0 | |
169.254 link#4 UCS 0 0 en0 |
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
installed_pkgs=$(/usr/local/bin/package list) | |
for pkg in gmp; do | |
if echo "${installed_pkgs}" | grep -q -c "^${pkg}"; then | |
echo "Error: Missing required package: ${pkg}." | |
echo "Try: 'epkg -i ${pkg}' and rebuild." | |
exit 1 | |
fi | |
done |
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
"create_ticket": { | |
"httpMethod":"POST", | |
"uri": "tickets.json", | |
"summary": "Create a ticket", | |
"parameters":{ | |
"data": { | |
"type": "array", | |
"location": "body", | |
"description":"Ticket JSON", | |
"filters": "json_encode", |
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
<?php | |
date_default_timezone_set("UTC"); | |
if (extension_loaded('xdebug')) { | |
ini_set('xdebug.max_nesting_level', 10000); | |
} | |
function simple() { | |
$a = 0; | |
for ($i = 0; $i < 1000000; $i++) |
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
class Stomp(object): | |
def __init__(self): | |
self._transport = None | |
def connect(self): | |
try: # preserve existing connection | |
self._transport | |
except StompConnectionError: | |
pass | |
else: |
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
<?php | |
class Stomp | |
{ | |
public $uri = 'tcp://localhost'; | |
public $port = 61613; | |
public $connect_timeout_sec = 60; | |
public $read_timeout_sec = 60; | |
public $read_timeout_usec = 0; | |
public $socket = null; |
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
passenger_root /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.13; | |
passenger_ruby /usr/local/bin/ruby; | |
passenger_max_pool_size 10; | |
passenger_min_instances 10; | |
server { | |
listen *:80; | |
server_name redmine.snc1; | |
rails_env production; | |
passenger_enabled on; |
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
<?php | |
namespace My\Util; | |
define('MYSQL_ZERO_DATE', '0000-00-00'); | |
define('MYSQL_ZERO_DATETIME', '0000-00-00 00:00:00'); | |
define('MYSQL_ZERO_DATETIME_INT64', -62169962400); // This is clearly flawed since it is time-zone dependent. | |
class Time | |
{ |