Skip to content

Instantly share code, notes, and snippets.

View p4p4's full-sized avatar
🐞

Patrick Klampfl p4p4

🐞
View GitHub Profile
@p4p4
p4p4 / hybris-notes.md
Last active September 19, 2017 15:34
hybris-notes.md

Solr

Kill solr server: fuser -k 8983/tcp

Folders

  • Webroot: /opt/hybris/bin/custom/redbull/sermastorefront/web/webroot/WEB-INF/
  • Hybris log tail -f /var/log/hybris/hybris.log
  • wrapper: /opt/hybris/bin/platform/tomcat/bin/wrapper.sh restart
  • solr: ``
@p4p4
p4p4 / text-processing.md
Created October 31, 2016 19:26
text processing

find stiring in multiple files recursively: grep -rnw '/path/to/somewhere/' -e "pattern"

replace text in multiple files: sed -i -- 's/foo/bar/g' *

astyle:

@p4p4
p4p4 / setup.sh
Last active November 6, 2016 13:54
my setup for new installations
# essentials
sudo apt-get install -y thunderbird build-essential git gitg subversion cmake okular vlc humanity-icon-theme meld nautilus-dropbox
# OpenJDK 8
sudo apt-get install openjdk-8-jdk openjdk-8-demo openjdk-8-doc openjdk-8-jre-headless openjdk-8-source
# OpenJDK 9
# sudo apt-get install -y openjdk-9-jdk openjdk-9-demo openjdk-9-doc openjdk-9-jre-headless openjdk-9-source
@p4p4
p4p4 / migrate-folder-structure-catroid.md
Last active August 22, 2016 09:38
Catrobat Catroid migrate to new folder structure

Make migrating to the new folder structure easier

Catroid recently (August 15th) changed the folder structure of the project. This made a lot of open (not yet merged) Pull requests unmergable.

Feel free to use these instructions to migrate to the new folder structure in a fast way. But please only use it if you fully understand what the listed commands really do. Feel free to modify/comment/share. These instructions come without any warranty, which means you operate at your own risk!

Step by step guide.

  • fetch changes from upstream

Curl Notes

Login & Download with curl, delete cookies afterwards:

 curl -c cookies.txt "http://foo.bar/login.php" -d "USER=34568" -d "PASS=1234"
 curl --cookie cookies.txt "http://foo.bar/file.csv" -o file.csv
 rm cookies.txt
@p4p4
p4p4 / git-notes.md
Last active December 31, 2017 10:22
My git cheat-sheet
@p4p4
p4p4 / .gitignore
Last active October 24, 2016 17:33 — forked from flavius/.gitignore
Chess Game
src