Skip to content

Instantly share code, notes, and snippets.

View hobodave's full-sized avatar
🎯
Focusing

David Abdemoulaie hobodave

🎯
Focusing
View GitHub Profile
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
<?php
return [
'apiVersion' => '2',
'operations' => [
'ListPriorities' => [
'httpMethod' => 'GET',
'uri' => 'priority',
'summary' => 'Returns a list of all issue priorities.',
'responseClass' => 'ListPrioritiesResponse',
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
@hobodave
hobodave / build.sh
Last active December 12, 2015 04:49
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
"create_ticket": {
"httpMethod":"POST",
"uri": "tickets.json",
"summary": "Create a ticket",
"parameters":{
"data": {
"type": "array",
"location": "body",
"description":"Ticket JSON",
"filters": "json_encode",
<?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++)
class Stomp(object):
def __init__(self):
self._transport = None
def connect(self):
try: # preserve existing connection
self._transport
except StompConnectionError:
pass
else:
<?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;
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;
<?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
{