Skip to content

Instantly share code, notes, and snippets.

Alive on weekdays

jubin jose freakeinstein

Alive on weekdays
View GitHub Profile
View setup aquila network debian
wget -O - | /bin/bash
freakeinstein /
Last active Mar 17, 2021
Install docker and docker compose in ubuntu machines
# Docker
sudo apt update
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] focal stable"
sudo apt update
apt-cache policy docker-ce
sudo apt install -y docker-ce
sudo usermod -aG docker ${USER}
su - ${USER}
freakeinstein /
Created Dec 14, 2020
AquilaDB installation script
#!/bin/bash -e
apt update
mkdir -p /data/
cd ~
# system packs install
apt install -y git wget nano python3.8 python3-pip libblas-dev liblapack-dev swig libssl-dev
freakeinstein /
Created Sep 25, 2019
ADB website display scripts
docker pull ammaorg/aquiladb:latest
docker run -d -i -p 50051:50051 -t ammaorg/aquiladb:latest
freakeinstein /
Created May 10, 2019
hangout simple request response
#!/usr/bin/env python3
"""Example bot that returns a synchronous response."""
from flask import Flask, request, json
app = Flask(__name__)
@app.route('/', methods=['POST'])
View nginx reverse proxy config
server_name _;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
# try_files $uri $uri/ =404;
freakeinstein /
Last active Nov 18, 2018
writing a fasttext python wrapper

create root directory

  • mkdir root&&cd root

install conan package manager

  • pip install conan ref

create conanfile.txt with package dependencies

  • in our case, we need pybind11 so, content of conanfile.txt ref
freakeinstein / data.json
Last active Feb 23, 2018
json test data
View data.json
"greet": [
"text": "Hello welcome."
"text": "I can help you to search for resturents."
"restaurant_search": [