Skip to content

Instantly share code, notes, and snippets.

View ediziks's full-sized avatar
👋

Ediz ediziks

👋
  • Amsterdam Area
  • 03:15 (UTC +02:00)
View GitHub Profile
@ediziks
ediziks / InstallDockerComposeonOracleLinux(RHELorAARCH64orRPI).md
Created December 17, 2021 18:22
Install Docker Compose on OracleLinux (or RHEL/aarch64/RPI)

git clone https://github.com/docker/compose.git

cd compose/

git checkout -f 1.25.0

sudo docker build -t dockercompose:1.25.0 .

sudo curl -L --fail https://github.com/docker/compose/releases/download/1.25.0/run.sh -o /usr/local/bin/docker-compose

@ediziks
ediziks / InstallDockerCEonOracleLinux(RHEL)7or8.md
Last active December 17, 2021 17:35
Install Docker CE on Oracle Linux (RHEL) 7/8

Install Docker CE on Oracle Linux (RHEL) 7/8

1. Run system update

First of all, run the system update command to rebuild the repo cache and update installed packages.

sudo yum update

2. Install Yum Config-manager

To add a repository without going through the repo file and edit to insert a repository URL, we can use the yum-config-manager tool. If you are using a minimal server version then you perhaps not have it. Thus, here is the command to install it.

@ediziks
ediziks / gist:1a62f33d68361a33989e1b28337a9620
Last active November 18, 2020 14:02
Detailed Django Full Text Search by @loganchien
http://logan.tw/posts/2017/12/30/full-text-search-with-django-and-postgresql/
Full-text Search with Django and PostgreSQL
Sat 30 December 2017
Tags django sql postgresql python
Posted by Logan
Django has several PostgreSQL database functions to support full-text search. If you are using PostgreSQL as the database backend, then it is easy to add full-text search to your Django app.
In this post, I would like to build an demo app with full-text search. This post covers several PostgreSQL-specific features, such as SearchVectorField, SearchVector, SearchQuery, and SearchRank. In addition, this post uses PostgreSQL triggers to update SearchVectorField automatically and explains how to manage triggers with Django migrations.
This gist I write, because I couldn't find step by step instructions
how to install and start postgresql locally and not globally in the
operating system (which would require sudo).
I hope, this will help especially people new to postgresql!
####################################
# create conda environment
####################################