Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Nurettin Onur TUĞCU nurettin

🏠
Working from home
View GitHub Profile
@nurettin
nurettin / source_setup.sh
Created Jan 20, 2012
torquebox source setup
View source_setup.sh
#!/bin/bash
export MUJDE_HOME=$(pwd)
export MYSQL_HOME=$MUJDE_HOME/mysql/faal
export JRUBY_OPTS="--1.9 -J-Djruby.fork.enabled=true"
export JAVA_HOME=$MUJDE_HOME/kit/java/faal
export TORQUEBOX_HOME=$MUJDE_HOME/kit/torquebox/faal
export JBOSS_HOME=$TORQUEBOX_HOME/jboss
export JRUBY_HOME=$TORQUEBOX_HOME/jruby
export PATH=$MUJDE_HOME/bin:$JAVA_HOME/bin:$JRUBY_HOME/bin:$MYSQL_HOME/bin:$PATH
export PATH=`awk -F: '{for(i=1;i<=NF;i++){if(!a[$i]++)printf s$i;s=":"}}'<<<$PATH`
@nurettin
nurettin / .asoundrc
Created Sep 29, 2012
linux dual sound card fix
View .asoundrc
pcm. !default {
type hw
card 1
}
ctl. !default {
type hw
card 1
}
@nurettin
nurettin / volumeicon
Created Sep 29, 2012
crunchbang volume icon
View volumeicon
[Alsa]
card=hw:1
[StatusIcon]
stepsize=5
lmb_slider=true
onclick=xfce4-mixer
theme=Default
@nurettin
nurettin / volumeicon
Created Sep 29, 2012
crunchbang volume icon
View volumeicon
[Alsa]
card=hw:1
[StatusIcon]
stepsize=5
lmb_slider=true
onclick=xfce4-mixer
theme=Default
@nurettin
nurettin / server.log
Created Oct 19, 2012
torquebox deployment error
View server.log
14:36:46,907 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."TIP-knob.yml".CONFIGURE_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."TIP-knob.yml".CONFIGURE_MODULE: JBAS018733: Failed to process phase CONFIGURE_MODULE of deployment "TIP-knob.yml"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.1.x.incremental.1.jar:7.1.x.incremental.1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_05]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_05]
@nurettin
nurettin / torquebox.yml
Created Nov 28, 2012
issues with queues in torquebox 2.1.2 and jruby-1.7.0
View torquebox.yml
---
# This is the TorqueBox configuration file. Refer to the TorqueBox
# documentation at http://torquebox.org/documentation/current/
# for all configuration options.
ruby:
version: 1.9
web:
context: "/"
@nurettin
nurettin / boost_property_tree_json_array.cpp
Created Nov 29, 2012 — forked from mloskot/boost_property_tree_json_array.cpp
Simple example of parsing and consuming JSON array with boost::property_tree
View boost_property_tree_json_array.cpp
#ifdef _MSC_VER
#include <boost/config/compiler/visualc.hpp>
#endif
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/foreach.hpp>
#include <cassert>
#include <exception>
#include <iostream>
#include <sstream>
@nurettin
nurettin / awesome.rb
Last active Dec 11, 2015 — forked from simonharrer/gist:1173228
awesome jax-ws Soap1.2 web service running on jruby 1.7.2
View awesome.rb
require 'java'
require 'jruby/core_ext'
class MyService
def hello(who)
"Hello #{who}"
end
end
MyService.add_class_annotations(
@nurettin
nurettin / sources.list
Created Feb 27, 2013
apt sources.list for linux mint maya 13
View sources.list
deb http://packages.linuxmint.com/ maya main upstream import
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ precise partner
deb http://packages.medibuntu.org/ precise free non-free
@nurettin
nurettin / apt.sh
Created Feb 27, 2013
ubuntu to linux mint maya 13 keyrings
View apt.sh
sudo apt-get install linuxmint-keyring medibuntu-keyring