Skip to content

Instantly share code, notes, and snippets.

View shukriadams's full-sized avatar

Shukri Adams shukriadams

View GitHub Profile
@shukriadams
shukriadams / docker-compose.yml
Created September 3, 2019 14:07
Compose example for adminMongo container.
version: "2"
services:
adminmongo:
image: mrvautin/adminmongo:latest
container_name: adminmongo
restart: unless-stopped
ports:
- "3112:1234"
environment:
HOST : 0.0.0.0
@shukriadams
shukriadams / app.py
Last active August 12, 2019 14:17
Web service that returns list of wifi access points. Intended for Raspberry pi.
# This script starts a simple HTTP server which replies on ":8081/accesspoints", and returns JSON for an array of objects with
# describe wifi access points. Works on Python 2.x.
#
# Packages required :
# pip install -Iv flask_restful==0.3.7
from flask import Flask
from flask_restful import Api, Resource, reqparse
import os
import re
@shukriadams
shukriadams / Nginx + NodeJs setup : Hosting multiple nodejs apps on one server
Last active May 4, 2018 07:33
Hosting multiple nodejs apps on one server with nginx
Nginx is perfect for hosting multiple nodejs apps on a single box, and easier to set up than Apache if you're a noob like me.
1 - install nginx :
sudo apt-get install nginx -y
2 - create an nginx config file for your site - you can keep each site's config in its own file
sudo gedit /etc/nginx/conf.d/myFirstSite.conf

Keybase proof

I hereby claim:

  • I am shukriadams on github.
  • I am shukriadams (https://keybase.io/shukriadams) on keybase.
  • I have a public key whose fingerprint is F089 0BE7 A39A E7B3 3E9C 861C 74A9 6F68 3CBA 80F9

To claim this, I am signing this object: