Skip to content

Instantly share code, notes, and snippets.

View noherczeg's full-sized avatar

Norbert Csaba Herczeg noherczeg

View GitHub Profile
package hu.noherczeg.sample.messages;
import com.fasterxml.jackson.annotation.JsonInclude;
/**
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DetailedMessageDTO {
@noherczeg
noherczeg / env_vars_windows.txt
Last active August 29, 2015 14:25
What to put in env vars, and where to call apps from...
=================================================================
ENV vars:
=================================================================
HOME is required for ssh to work properly!!!!!!!!!!!!!!
HOME: c:\Users\herczegn -
JAVA_HOME: e:\tools\java\jdk1.7.0_79 /bin
MAVEN_HOME: e:\tools\maven /bin
CATALINA_HOME: e:\tools\tomcat8 /bin
// log settings
logger --default-log-level QUIET REST:NORMAL WORKFLOW:NORMAL
// Simple
mvn clean install -DskipTests=true -Dcheckstyle.skip=true -Djudo.generate.python=true -P \!app-frontend-build -P \!example,example-car
// No frontend, only car example, faaaaast
mvn clean install -DskipTests=true -Dcheckstyle.skip=true -Djudo.generate.python=true -b smart -T2 -P \!app-frontend-build -P \!example,example-car
// no noting, fast, skip generate exist
@noherczeg
noherczeg / git_behind_proxy.txt
Created September 17, 2015 09:39
git behind corporate awesome proxy
git config --global url."https://".insteadOf git://
@noherczeg
noherczeg / hgsz
Created September 22, 2015 18:46
gumiszerviz
hgsz6009
@noherczeg
noherczeg / angular.postrender.js
Created October 15, 2015 13:15
angular post render hook
MyCtrl.prototype.printReady = function(){
var vm = this;
this.$timeout(function(){
vm.ready = true; // ready might toggle spinners, loading screens, or whatever
}, 0);
};
-- -h Host
-- -p Port
-- -U user name
-- -w No password
-- -F Format
-- -O No owner
-- -a Data only
-- -x No privileges
-- -v Verbose
-- -f File target
@noherczeg
noherczeg / pg_restore.txt
Last active December 3, 2015 00:41
again....
pg_dump.exe --host localhost --port 5432 --username "postgres" --no-password --format custom --section data --inserts --no-privileges --no-tablespaces --verbose --no-unlogged-table-data --file "E:\test2.backup" --schema "icp" "icp"
@noherczeg
noherczeg / keymap.cson
Created December 16, 2015 13:24
atom editor idea keymap
'body':
'cmd-h': 'unset!'
'html atom-text-editor.vim-mode.normal-mode':
'U': 'core:redo'
'cmd-1': 'tree-view:toggle-focus'
'L': 'vim-mode:move-to-last-character-of-line'
'cmd-F': 'formatter:format-code'
'cmd-shift-c': 'window:toggle-dev-tools'
'cmd-.': 'key-peek:toggle'
================================
CATALINA
================================
Create setenv.bat if not exists
Add the following into it:
set CATALINA_OPTS="-agentlib:jdwp=transport=dt_socket,address=9999,server=y,suspend=n"
Start Tomcat with catalina start (or startup?)