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
PBXService | |
---------------------------------------------------------------------------------------------------- | |
Generate the Webservices stubs from the wsdl file given in the sipx site. | |
CreateUser should be written like this | |
/* Read the credentials from somewhere */ | |
/* From global.xml file that our ConfReader will handle */ | |
String credentials = "superadmin:12345"; |
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
export AXIS_HOME=/usr/share/java/axis | |
export AXIS_LIB=/usr/share/java | |
export AXISCLASSPATH=$AXIS_LIB/axis/axis.jar:/usr/share/java/commons-discovery.jar:/usr/share/java/commons-logging.jar:/usr/share/java/jaxrpc.jar:/usr/share/java/saaj.jar:/usr/share/java/log4j-1.2.8.jar:/usr/share/java/xml-apis.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/xerces-j2.jar:/usr/share/java/axis/dom3-xerces-j2.jar:/usr/share/java/axis/jaxrpc.jar:/usr/share/java/wsdl4j.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
alternatives --install /usr/bin/java java /usr/java/jdk1.5.0_18/bin/java 1 |
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
./webAppCreator -out AdminPortal com.portal.gwt.adminportal | |
This creates the webapp | |
cd gwt-2.1.1 | |
cd AdminPortal/ | |
ant build This builds a deploy |
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
v# cutting an mp3 file to right length: | |
ffmpeg -i music.mp3 -ss 00:00:00 -t 00:01:00 -vcodec copy -acodec mp3 music-cut.mp3 | |
# generating video from snapshots and mp3 | |
ffmpeg -f image2 -r 24 -i ./%05d.png -i music-cut.mp3 -acodec copy -sameq ./video.avi -pass 2 |
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
class Person { | |
int commits ; | |
String name ; | |
Person() { | |
this(0, "noname") ; | |
} | |
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
Setting the priveleges for remote users in mysql | |
create user 'remote'@'10.af.a.56 identified by '12345' ; | |
grant all on test.* to 'remote'@'10.af.xa.56' identified by '12345 ' ; |
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
# set the delimiter to // to avoid confusion with the ; in the procedure body | |
delimiter // | |
CREATE PROCEDURE people() | |
BEGIN | |
SELECT user, host, password from mysql.user ; | |
END // | |
# To see the procedures |
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
To reuse the zimbra mysql db | |
I do | |
basedir = /opt/zimbra/mysql | |
datadir = /opt/zimbra/db/data | |
socket = /opt/zimbra/db/mysql.sock | |
pid-file = /opt/zimbra/db/mysql.pid | |
#bind-address = localhost | |
port = 7306 | |
user = zimbra | |
tmpdir = /opt/zimbra/data/tmp |
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
package com.org.json; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import org.apache.commons.io.*; | |
import org.json.*; |