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-rebase.txt
Last active March 11, 2016 01:00
Rebasing in Git
git checkout feature_branch
git rebase master
git checkout master
git merge --squash feature_branch
# -------------------
git checkout feature/foo
git pull --all
git rebase develop
@noherczeg
noherczeg / commnader_setup.txt
Created February 5, 2016 03:30
My TotalCommander setup
Font: Corbel, 10, b
@noherczeg
noherczeg / git_clean.txt
Created January 15, 2016 15:40
how to clean untracked files
git clean -fd
git clean -fx
dnf -y install kernel-devel kernel-headers dkms gcc gcc-c++
Mount, and run install, it will work now...
================================
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?)
@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'
@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"
-- -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 / 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);
};
@noherczeg
noherczeg / hgsz
Created September 22, 2015 18:46
gumiszerviz
hgsz6009