Skip to content

Instantly share code, notes, and snippets.

Avatar
🔥
Alive on weekends

jubin jose freakeinstein

🔥
Alive on weekends
View GitHub Profile
View setup aquila network debian
wget -O - https://raw.githubusercontent.com/Aquila-Network/AquilaX-CE/main/setup_aquilax.sh | /bin/bash
@freakeinstein
freakeinstein / docker_install.sh
Last active Mar 17, 2021
Install docker and docker compose in ubuntu machines
View docker_install.sh
# Docker
sudo apt update
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt update
apt-cache policy docker-ce
sudo apt install -y docker-ce
sudo usermod -aG docker ${USER}
su - ${USER}
@freakeinstein
freakeinstein / adb_install.sh
Created Dec 14, 2020
AquilaDB installation script
View adb_install.sh
#!/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
freakeinstein / docker.sh
Created Sep 25, 2019
ADB website display scripts
View docker.sh
docker pull ammaorg/aquiladb:latest
docker run -d -i -p 50051:50051 -t ammaorg/aquiladb:latest
@freakeinstein
freakeinstein / hangout.py
Created May 10, 2019
hangout simple request response
View hangout.py
#!/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_pass http://127.0.0.1:4000;
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
freakeinstein / fastwrapper.md
Last active Nov 18, 2018
writing a fasttext python wrapper
View fastwrapper.md

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
[requires]
@freakeinstein
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": [