Skip to content

Instantly share code, notes, and snippets.

View freakeinstein's full-sized avatar
🔥
Alive on weekdays

jubin jose freakeinstein

🔥
Alive on weekdays
View GitHub Profile
wget -O - https://raw.githubusercontent.com/Aquila-Network/AquilaX-CE/main/setup_aquilax.sh | /bin/bash
@freakeinstein
freakeinstein / docker_install.sh
Last active March 17, 2021 06:32
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 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 December 14, 2020 19:09
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
freakeinstein / docker.sh
Created September 25, 2019 06:05
ADB website display scripts
docker pull ammaorg/aquiladb:latest
docker run -d -i -p 50051:50051 -t ammaorg/aquiladb:latest
@freakeinstein
freakeinstein / hangout.py
Created May 10, 2019 08:56
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'])
@freakeinstein
freakeinstein / nginx reverse proxy config
Created January 10, 2019 05:30
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 November 18, 2018 08:08
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
[requires]
@freakeinstein
freakeinstein / data.json
Last active February 23, 2018 09:51
json test data
{
"greet": [
{
"text": "Hello welcome."
},
{
"text": "I can help you to search for resturents."
}
],
"restaurant_search": [