Recent Open-Source Posts from Tech Monger :///feeds/open-source/ 2021-04-30T17:47:40.093035Z Werkzeug Executable But Not Readable Script - Linux https://techmonger.github.io/83/executable-but-not-readable 2021-04-30T17:47:40.093035Z 2021-04-30T17:20:15.805314Z Tech Monger <p class="lead">Many time you want to allow other Linux users to execute your code but restrict them from reading or writing it. Below we will show you unix trick where you can make binary file <em>non readable to users but allow execution</em> by adding <code>setuid</code> to your file.</p> Amazon Redshift ODBC Connection Linux https://techmonger.github.io/81/redshift-odbc-linux 2021-04-30T17:06:00.744922Z 2020-11-04T13:12:52.316376Z Tech Monger <p class="lead"> In this tutorial, we will download & Install ODBC driver for the Amazon Redshift Database in Redhat Linux. We will make ODBC entry which will help us connect to the AWS Redshift. RHEL Install GIT LFS Installation https://techmonger.github.io/80/git-lfs-rhel 2020-11-04T13:08:43.939390Z 2020-11-04T12:56:17.414803Z Tech Monger <p class="lead"> <abbr title="GIT Large File System">GIT LFS</abbr> may not be shipped inside redhat <abbr title="Extra Packages for Enterprise Linux ">EPEL</abbr> repository. We will learn how to install it manually using rpm package from the official release page. Linux AWS Command Line Interface Installation https://techmonger.github.io/79/aws-cli-linux 2020-11-03T17:53:50.426761Z 2020-11-02T16:52:13.370421Z Tech Monger <p class="lead"> While working with Amazon Web Services (AWS) it is essential to have command line utility installed on the machine to perform the administration or development activities. Below we will find steps for the AWS CLI Installation on Linux. Check ODBC Connectivity from Python https://techmonger.github.io/78/odbc-test-pyodbc 2020-11-03T17:08:45.194955Z 2020-11-02T16:52:05.869541Z Tech Monger <p class="lead">If you are connecting to the <abbr title="Open Database Connectivity">ODBC</abbr> database then it is necessary to test connection before creating ODBC data source inisde <code>ODBC.INI</code> file. Below we will create simple python script which initiate ODBC connection with details provided inside ODBC.ini file and output if connection is working or failing.</p> Postgres ODBC with Mutual SSL in Informatica https://techmonger.github.io/77/odbc-ssl-postgres 2020-11-02T17:50:04.895595Z 2020-07-01T14:36:42.511620Z Tech Monger <p class="lead">Encryption has become security norm and communicating with databases on insecure network should not be an exception to this norm. In this tutorial we will learn how to connect to postgres database using ODBC connection which is configured to use 2 way SSL connection.</p> SOLVED : Authentication refused: bad ownership or modes for directory https://techmonger.github.io/76/key-based-ssh-error 2019-12-06T17:52:58.536626Z 2019-12-06T17:49:47.662642Z Tech Monger <p class="lead"> If you have setup key based authentication between two different servers for SSH or SFTP then you might face issues while initiating SSH connection. Below we will see how to solve these issues by considering different failure vectors. We assume that you have already setup <code>authorized_keys</code> based keyless ssh login. Informatica Postgres Connection Issues and Solution https://techmonger.github.io/72/informatica-postgres-odbc 2020-11-02T17:50:48.726545Z 2019-05-15T18:29:32.982927Z Tech Monger <p class="lead"> If you are trying to connect postgres database from informatica using ODBC entry then you might face issues with odbc connection details. Below we will discuss common pitfalls and fixes. Redis Remote Connection Configuration https://techmonger.github.io/71/remote-connection 2019-03-06T19:09:42.019114Z 2019-03-06T19:09:10.351904Z Tech Monger <p class="lead">If you want to access redis database from remote client or even server then you would need to configure redis to accept remote connection by binding server IP Address.</p> Password Based Authentication for Redis https://techmonger.github.io/70/redis-password 2019-03-06T19:12:24.760033Z 2019-03-04T18:21:03.662040Z Tech Monger <p class="lead">By default redis server does not require password for connection but it allows configuration to <a href="/71/remote-connection/" title="Redis Remote Connection">accepts remote connections</a> which is potential security risk. If your redis server accept connections from remote client then it is of <em>utmost importance</em> to have password based authentication configured for your redis instance. Below we will check the configuration changes required to set password and secure our redis setup from an unauthorized access. </p> Custom Validation Messages with WTForms https://techmonger.github.io/64/wtf-custom-validation-hack 2018-11-11T09:18:28.423182Z 2018-11-11T07:56:08.911691Z Tech Monger <p class="lead"> While using WTF or Flask-WTF for the form validation you would often find yourself adding custom validation messages according to the requirement of your web application. You can always use WTF's <code>ValidationError</code> API however in this tutorial we will show you clever hack to add validation messages during page rendering. We will show <a href="#example">example code</a> with <a href="/tag/flask" title="Flask Tutorials">flask</a> but you can use this method with any other framework which is using WTF for form validation.