Author: pal.sch

  • Ubuntu 18.04 LTS – Hibernate to Swapfile

    This is a short summary for the following instruction: https://ubuntuforums.org/showthread.php?t=1042946 Swapfile activation Hibernate activation

  • Windows copy files and exclude folders (node_modules)

    Using Xcopy create an excludes.txt file with following content: Now execute the following Xcopy command:

  • IntelliJ + Cmder

    File | Settings | Tools | External Tools Add new External Tool Name: Cmder Here Program: C:\\Cmder.exe Arguments: /SINGLE $FileDir$ Working dir: C:\ Close Settings and Open again File | Settings | Keymap: External Tools -> External Tools -> Cmder Here Right mouse click -> Add Keyboard Shortcut -> “Alt + D” Now you can…

  • GitLab CI + CD

    Find Docker image for the build Dependencies: node/npm java8 gradle sshpass For build you can use for example the following image: https://hub.docker.com/r/bulf/ubuntu-java8-gradle-docker/ For deployment you need sshpass, so you can take the following image: https://hub.docker.com/r/ictu/sshpass/ Runner see GitLab Runner Doc CI script see CI yaml docu Secret variables to use in CI script: GitLab -> Settings -> CI…

  • netcup + froxlor + mail server (dovecot/postfix) + tls/ssl (Let’s Encrypt)

    You can use only one specific domain and ssl certificate in dovecot and postfix. So you have to create this specific domain and activate Let’s Encrypt for that, so that you can use those certificates for SSL/TLS. All the users with different domains and email-domains have to use this one specific domain to connect to…

  • Python snippet collection

    Timestamp with milliseconds import datetime print “Timestamp %s” % datetime.datetime.utcnow().strftime(‘%Y-%m-%d %H:%M:%S.%f’)[:-3] # Output: Timestamp 2017-05-07 21:32:42.379  

  • Google Picasa 3 – Face Movie

    Person face movie from album Usually you can easily create a face movie for a specific person where you first select the person album and then click to facemovie button. But with that usage it’s difficult to select your favorite pictures for the movie. For that you can select your favorite pictures from the person…

  • Linux tipps

    Cron jobs Creating a script file in the daily run folder for Ubuntu. cd /etc/cron.daily sudo touch my-daily-job sudo chmod 755 my-daily-job Now add commands to the created script file and you’re done. #!/bin/sh do some job here You can verify that the script will run using this command. sudo run-parts –report –test /etc/cron.daily Firewall…