Year: 2017

  • 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…

  • OpenVPN on Debian over UFW

    Complete OpenVPN How-To here: Click here for a very nice tutorial about OpenVPN on Debian UFW open ports Get running applications with their used ports netstat -tulpen UFW command to open ports ufw allow 22/tcp SSH Server !!! SSH port HAS TO be opened befor you activate UFW, in other case you will block yourself…

  • Custom Icon font in Ionic 2

    Create/Get icons in SVG format (e.g. FlatIcon) Create and download icons-font using IcoMoon App Extract only the font folder from the downloaded icomoon.zip  archive to assets  folder. Create a new file in theme  folder called _icomoon.scss  with following content (thanks to Stackoverflow user): // icomoon @font-face { font-family: ‘icomoon’; src: url(‘../assets/fonts/icomoon.eot?ls340j’); src: url(‘../assets/fonts/icomoon.eot?ls340j#iefix’) format(’embedded-opentype’), url(‘../assets/fonts/icomoon.ttf?ls340j’) format(‘truetype’),…

  • GitBucket as a service on Debian

    If you want to host your own Git Server you have multiple possibilities. Here I want to describe how to run GitBucket, an Open Source GitHub like platform. The focus of this article is to show you how to setup GitBucket as a service (incl. autostart) on a Debian OS. Installation in short Java 8…

  • Cordova and Ionic 2 Development

    Debug Ionic Android Application on Mobile Devices Run Ionic 2 on the Android device including LiveReload and Console output: ionic run android -c -l # -l: LiveReload # -c: Console output Inspect elements and network monitoring: # Open in Chrome and select the Android device chrome://inspect/#devices source: Codeproject – Debug-Ionic-Android-Application-On-Mobile-Devices   Debug Ionic iOS Application…

  • netcup + froxlor

    Froxlor Trigger cronjob /usr/bin/php /var/www/froxlor/scripts/froxlor_master_cronjob.php –force –debug # Possible jobs: # “–backup” for start backup job # “–letsencrypt” FTP user Is created automatically with the Froxlor user (same password). WordPress update: check for correct ownership of the files copied to the directory. If you used “root”-FTP user to copy the files, you have to change…