Skip to content

Instantly share code, notes, and snippets.

View kamcpp's full-sized avatar
😖
{ x, { x, { x, ... } } }

Kam Amini kamcpp

😖
{ x, { x, { x, ... } } }
  • @ ActiveVideo
  • Amsterdam, Netherlands
View GitHub Profile
@kamcpp
kamcpp / JMS Client for JBoss HornetQ
Created November 5, 2014 03:51
JMS Client for JBoss HornetQ
package mytests.jms;
import javax.jms.*;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import java.util.Properties;
public class JMSConsumer {
public static void main(String[] args) throws NamingException, JMSException {
@kamcpp
kamcpp / EJB Client using JBoss Remote Naming Project
Created November 5, 2014 03:55
EJB Client using JBoss Remote Naming Project
import mytests.ejb.CalculatorRemote;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import java.util.Properties;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
public class Test {
@kamcpp
kamcpp / Maven Dependencies for JBoss RNP (JMS and EJB)
Last active August 29, 2015 14:08
Maven Dependencies for JBoss RNP (JMS and EJB)
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-ejb-client-bom</artifactId>
<version>8.1.0.Final</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.wildfly</groupId>
@kamcpp
kamcpp / 3 Ways to do Remote Invocations (JBoss)
Created November 5, 2014 06:39
3 Ways to do Remote Invocations (JBoss)
http://blog.akquinet.de/2014/09/26/jboss-eap-wildfly-three-ways-to-invoke-remote-ejbs/
fe80::20c:29ff:fe0d:1c8b/64
@kamcpp
kamcpp / Requirements
Last active August 29, 2015 14:10
Requirements
[Java Essentials]
Internet
NetSupport
Camtasia
BB Flash Recorder
Chrome
Firefox
Microphone
Sublime
Notepad++
@kamcpp
kamcpp / LHC Admin Link
Created January 31, 2015 12:16
LHC Admin Link
@kamcpp
kamcpp / LHC Queries
Created February 1, 2015 10:47
LHC Queries
SELECT * FROM `lh_msg` where msg like '%فره%' and user_id = 3
---------------------
SELECT * FROM `lh_chat` where id in (select chat_id from lh_msg where msg like '%ادمین%')
@kamcpp
kamcpp / gist:755ddd48d090313810bb
Created October 12, 2015 22:37
Postfix Restriction Rules
##########################################################################################
# Allow connections from trusted networks only.
#smtpd_client_restrictions = permit_mynetworks, reject
# Don't talk to mail systems that don't know their own hostname.
# With Postfix < 2.3, specify reject_unknown_hostname.
smtpd_helo_restrictions = reject_unknown_helo_hostname
# Don't accept mail from domains that don't exist.
@kamcpp
kamcpp / gist:c525d8c864969618f63f
Created November 5, 2015 01:24
APT Source File for apt-cacher
# deb cdrom:[Ubuntu-Server 15.04 _Vivid Vervet_ - Release amd64 (20150422)]/ vivid main restricted
#deb cdrom:[Ubuntu-Server 15.04 _Vivid Vervet_ - Release amd64 (20150422)]/ vivid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://192.168.1.156:3142/us.archive.ubuntu.com/ubuntu/ vivid main restricted
deb-src http://192.168.1.156:3142/us.archive.ubuntu.com/ubuntu/ vivid main restricted
## Major bug fix updates produced after the final release of the