Skip to content

Instantly share code, notes, and snippets.

View rchatsiri's full-sized avatar
🎯
Focusing

Chatsiri Rattana rchatsiri

🎯
Focusing
View GitHub Profile
libraryDependencies += "org.springframework" % "spring-context" % "4.0.6.RELEASE"
libraryDependencies += "org.springframework.data" % "spring-data-mongodb" % "1.6.0.RELEASE"
resolvers ++= Seq(
"release-springsource" at "http://repo.springsource.org/release/",
"milestone-springframework" at "http://maven.springframework.org/milestone/"
)
@rchatsiri
rchatsiri / SequentialReverseSpec.scala
Last active August 29, 2015 14:21
SequentialReverseSpec, Reverse String.
import org.junit.runner.RunWith
import org.specs2.mutable.Specification
import org.specs2.mock.Mockito
import org.specs2.runner.JUnitRunner
import io.tracethreat.poc.concept.CountObject
import org.scalatest.FunSuite
import io.tracethreat.poc.concept.ListAdd
import org.scalatest.Spec
@RunWith(classOf[JUnitRunner])
@REM SBT launcher script
@REM
@REM Envioronment:
@REM JAVA_HOME - location of a JDK home dir (mandatory)
@REM SBT_OPTS - JVM options (optional)
@REM Configuration:
@REM sbtconfig.txt found in the SBT_HOME.
@REM ZOMG! We need delayed expansion to build up CFG_OPTS later
@setlocal enabledelayedexpansion
@rchatsiri
rchatsiri / resource.cfg
Created April 19, 2015 13:35
Configure file support main server.
#Titles Authors Date
#Only one file type support verions 0.0.1 Chatsiir.rat 20/09/2012
#Change path for run in Tracethreat Chatsiri.rat 04/10/2012
# database signature
#db-signature-path = /home/chatsiri/workspacecpp/Hanumanav/src/dbsignatures/viruses.db
db-signature-path= /home/chatsiri/workspacecpp/pthread_sync_ocl/src/database/clamav.hdb
# file scanning path
scanning-file =/home/chatsiri/workspacecpp/pthread_sync_ocl/src/utils/logger
@rchatsiri
rchatsiri / gist:5731371d53b781ef0f84
Created March 28, 2015 08:53
Merge for develop version.
chatsiri@chatsiri-ThinkPad-T420s:~/workspacecpp/pthread_sync_ocl/src$ git merge --no-ff develop_multithread-tbb-ocl-0.0.1
Removing src/test/test_suite
Removing src/memory/signature_shm_controller_mul.hpp
Removing src/memory/signature_shm_controller_mul.cpp
Removing src/memory/signature_shm_controller_map.hpp
Removing src/memory/signature_shm_controller_map.cpp
Removing src/internet/test_server/test_server
Removing src/internet/test_client/test_client
Auto-merging src/internet/scan_server/3des_controller.cpp_backup
Auto-merging src/internet/msg/packedmessage_scan.hpp
name := "tracethreat"
version := "0.0.1"
scalaVersion := "2.11.2"
libraryDependencies += "org.scala-lang" % "scala-library" % "2.11.2"
libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.1.0"
@rchatsiri
rchatsiri / gist:4469ff0565fd862667bd
Created March 25, 2015 16:53
Merge object file information and enhancement threat building block branch.
Merge made by the 'recursive' strategy.
README.md | 62 +-
configure.ac | 4 +-
configure_ac_cmd.sh | 2 +-
configure_ac_cmd.sh~ | 3 +
src/data_structure/ac_tire.hpp | 1 +
src/data_structure/actire_parallel.hpp | 12 +-
src/data_structure/hashmap_ocl.hpp_backup | 52 +
src/data_structure/vector.hpp | 9 +-
src/exception/datastructure_exception.cpp | 2 +-
@rchatsiri
rchatsiri / gist:9fdddbe6af8a64bdfb61
Created March 19, 2015 04:35
Core_feature merges to master branch.
chatsiri@chatsiri-ThinkPad-T420s:~/sda1/workspacecpp/treadstoneproject/tracethreat_client$ git merge --no-ff core_feature
Merge made by the 'recursive' strategy.
src/connector/mongo_connector.cpp | 101 +++++++++++++++++++++++----------
src/connector/mongo_connector.hpp | 31 +++++-----
src/connector/test_thread_info_db.cpp | 47 +++++++++------
src/connector/threat_info_db.cpp | 4 +-
src/connector/threat_info_db.hpp | 2 +-
src/msg/message_tracethreat.pb.cc | 53 +++++++++--------
src/msg/message_tracethreat.pb.h | 76 ++++---------------------
src/msg/message_tracethreat.proto | 2 +-
@rchatsiri
rchatsiri / gist:d5797c31da856abc6064
Created January 19, 2015 15:35
git merge --no-ff feature_taskconcurrency_tbb to develop_multithread-tbb-ocl-0.0.1
chatsiri@chatsiri-ThinkPad-T420s:~/workspacecpp/pthread_sync_ocl$ git merge --no-ff feature_taskconcurrency_tbb
Merge made by the 'recursive' strategy.
configure.ac | 2 +-
src/filetypes/pe_file_controller.cpp | 2 +-
src/filetypes/pe_file_controller.hpp | 2 +-
src/scan/scan_file_controller.hpp | 2 +-
src/taskconcurrency/Makefile.am | 25 ++
src/taskconcurrency/buffer_sync.cpp | 206 ++++++++++++++++
src/taskconcurrency/buffer_sync.hpp | 132 +++++++++++
src/taskconcurrency/buffer_sync_tbb.cpp | 247 ++++++++++++++++++++
@rchatsiri
rchatsiri / gist:20eaefac67831f2f5d69
Created January 19, 2015 10:38
Merge from git merge --no-ff feature_load_security_key_interchanged_stable to develop_multithread-tbb-ocl-0.0.1.
chatsiri@chatsiri-ThinkPad-T420s:~/workspacecpp/pthread_sync_ocl$ git merge --no-ff feature_load_security_key_interchanged_stable
Removing src/wrapper/wrapper_rules.hpp
Removing src/wrapper/wrapper_rules.cpp
Removing src/wrapper/Makefile.am
Removing src/test/thread_sync_test
Removing src/test/test_suite
Removing src/test/scan_pe_file_acp_test.cpp_backup
Removing src/test/scan_pe_file_acp_test
Removing src/test/file_policy_test
Removing src/memory/signature_shm_controller_mul.hpp