Posts

  • Xrandr adding custom display resolution
  • Generate self-signed certificate with openssl
    To generate self-signed certificate for a quick test or for development. If you are looking for getting certificate for production site then I strongly suggest to go for a proper certificate like LetsEncrypt. You can get it easily with certbot. To generate a self-signed SSL certificate using the OpenSSL, complete the following steps: Write down…

    Read the full article

  • Apache reverse proxy to forward requests on a custom port to a local system
    This configuration of apache is a little specific to forwarding all requests coming to a custom port on the host system to a local system which maybe running a service on custom port. Let us say we have 2 systems. System A and B where A can be accessed from the internet on lets say…

    Read the full article

  • Extract data from postgres in docker and save it to csv
    The case is simple postgres database is hosted in a docker image and to access the database use this command. docker image name can be found with this command docker ps -a. docker exec -it <docker-image> psql -U postgres docker exec -it <docker-image> psql -U postgres -a <dbname> -c “copy(select u.name user_name,p.name place_name, attempts,p.created fromplace…

    Read the full article

  • Convert audio in bulk with GNU parallel
    The below command will convert flac files in a folder to mp3. You can add multiple output formats in the end. Source link: https://unix.stackexchange.com/questions/487024/batch-convert-decode-audio-into-multiple-formats-with-ffmpeg