Skip to content

Instantly share code, notes, and snippets.

View nvurgaft's full-sized avatar
🙀
am a stapler

nick nvurgaft

🙀
am a stapler
  • Private
  • Israel
View GitHub Profile
@nvurgaft
nvurgaft / service.rb
Created January 30, 2018 10:41
Runs a barebone Redmine installation as a Windows service and opens it to the outside on port 3000
REDMINE_DIR = 'C:\redmine\redmine-3.4.4\redmine-3.4.4'
LOG_FILE = "#{REDMINE_DIR}\\log\\service.log"
begin
require 'win32/daemon'
include Win32
class RedmineService < Daemon
def service_init
@nvurgaft
nvurgaft / ReportTest.class
Last active December 15, 2020 09:09
An example class that uses DynamicReports to generate demo a report with subreports and a timechart
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Date;
import java.util.stream.Collectors;
import java.util.stream.Stream;