Skip to content

Instantly share code, notes, and snippets.

View noherczeg's full-sized avatar

Norbert Csaba Herczeg noherczeg

View GitHub Profile
@noherczeg
noherczeg / git_behind_proxy.txt
Created September 17, 2015 09:39
git behind corporate awesome proxy
git config --global url."https://".insteadOf git://
// 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 / 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
package hu.noherczeg.sample.messages;
import com.fasterxml.jackson.annotation.JsonInclude;
/**
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DetailedMessageDTO {
// MAVEN DEP DOWNLOAD BUG
Known Ubuntu + java + keytool bug, where maven can't download dependencies:
CA certs are corrupt somehow, so we need to regen them....
https://help.ubuntu.com/lts/serverguide/certificates-and-security.html#generating-a-csr
// JAVA
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
/* guest additions */
sudo ./VBoxLinuxAdditions.run
/* jdk7 */
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
java -version
@noherczeg
noherczeg / isitclearnoworwhat.js
Last active August 29, 2015 14:21
Demystification of functions in sequelizejs
/**
* Old version
*/
return sequelize.transaction(function (t) {
return User.create({
firstName: 'Abraham',
lastName: 'Lincoln'
}, {transaction: t}).then(function (user) {
return user.setShooter({
firstName: 'John',
@noherczeg
noherczeg / amd_conf.txt
Created April 15, 2015 22:14
confs_15_04
mobo: GIGABYTE GA-970A-UD3P 24.000
ram: HyperX 8GB Savage DDR3 1866MHz CL9 25.000
cpu: AMD FX-8350 4.00GHz AM3+ BOX 51.000
vga: SAPPHIRE 11217-01-20G R9 270X 2G GDDR5 DUAL-X OC 52.000
psu: FSP HYPER 600 19.000
ssd: SAMSUNG 120GB 850 EVO 22.500
hdd: WD Purple 2TB 5400rpm 64MB SATA3 26.000
haz: FRACTAL DESIGN Define R5 32.000
huto: ARCTIC COOLING Freezer 13 8.500
----------------------------------------------------------------
@noherczeg
noherczeg / git_sh_to_webstorm.txt
Created March 27, 2015 09:01
adding git shell/sh to webstorm
Settings > Tools > Terminal
[git install dir]/bin/sh.exe -login -i
@noherczeg
noherczeg / gits.txt
Created March 25, 2015 16:06
git commands
git tag -a v0.0.1 -m "Release version 0.0.1"
git push -u origin master --tags