Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Tim Lauv bluekvirus

🎯
Focusing
Block or report user

Report or block bluekvirus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bluekvirus
bluekvirus / .block
Last active Jun 18, 2018
data-breach-chronicle
View .block
height: 960
@bluekvirus
bluekvirus / .block
Last active Jun 9, 2018
ddn-discovery-demo
View .block
height: 800
@bluekvirus
bluekvirus / jersey-hibernate-mariadb-tomcat.md
Created Jan 23, 2017
Develop a Jersey (Restful Web) Application using Hibernate and MariaDB
View jersey-hibernate-mariadb-tomcat.md

Develop a Jersey Application using Hibernate and MariaDB

@credit Yan Zhu (https://github.com/nina-zhu)

Introduction

Jersey is the most popular amongst Restful web service development. Latest Jersey 2.x version has been developed by Oracle/Glassfish team in accordance with JAX-RS 2.0 specification. Earlier Jersey 1.x version was developed and supported by Oracle/Sun team.

Latest Jersey release version is 2.25 see here and look documentation and API for details. We will implement a Jersey example in this article based on latest 2.x version.

In this article, we will use Hibernate's rich API to interact with MariaDB database or in general any ORM compliant database. We will create a

@bluekvirus
bluekvirus / flask-uWSGI-nginx.md
Last active May 11, 2020
How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 14.04+
View flask-uWSGI-nginx.md

How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 14.04

@credit Yan Zhu (https://github.com/nina-zhu)

Introduction

Flask is a microframework for Python based on Werkzeug, Jinja 2 and good intentions, it can help you get your Python application or website off the ground. Flask includes a simplified development server for testing your code locally, but for anything even slightly production related, a more secure and powerful web server is required.

In this guide, we will demonstrate how to install and configure some components on Ubuntu 14.04 to support and serve Flask applications. We will configure the uWSGI application container server to interface with our applications. We will then set up Nginx to reverse proxy to uWSGI, giving us access to its security and performance features to serve our apps.

Prerequisites and Goals

@bluekvirus
bluekvirus / flask-mysql-redis-celery.md
Last active Dec 11, 2019
# Develop a Flask Application using MariaDB, Redis and Celery on Ubuntu 14.04+
View flask-mysql-redis-celery.md

Develop a Flask Application using MariaDB, Redis and Celery on Ubuntu 14.04

@credit Yan Zhu (https://github.com/nina-zhu)

Introduction

Before you start this guide, you should run through the "How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 14.04" guide. This is necessary in order to set up virtualenv, uWSGI and Nginx. In that guide, we developed a very simple flask application having just 1 file "firstflask.py" with only 9 lines of code, it is a sample for showing you the general steps. In this guide, we will create a complete user session listing application, with login, logout functionality. We will use MariaDB to store the users records, and use Redis to store the session data and background tasks.

Let's get started.

Set Up the MariaDB Server

@bluekvirus
bluekvirus / team-server-readme.md
Last active Apr 10, 2018
Code Team Server setup (as router, dns, git-server and pxe boot-loader)
View team-server-readme.md

A. Share internet

Your machine/server has more than 1 physical interface (ethernet, wifi or 3G/4G)

check pci-e bus and nic capabilities

sudo lspci
sudo lspci -s <03:00> -vv | grep Lnk

setup serial console output (for headless devices)

@bluekvirus
bluekvirus / manjaro-mbp-early2011.md
Last active Aug 18, 2018
Manjaro (Arch Linux) on MacBook Pro (early 2011) post install notes
View manjaro-mbp-early2011.md
@bluekvirus
bluekvirus / koa-app-package.json
Last active Sep 25, 2017
Koa (nodejs) app server dependencies (NPM)
View koa-app-package.json
{
"name": "appsrv",
"version": "1.0.0",
"description": "Blueprint for node web application server",
"main": "index.js",
"dependencies": {
"koa": "^0.21.0",
"koa-body": "^1.2.1",
"koa-compress": "^1.0.8",
"koa-csrf": "^2.3.0",
You can’t perform that action at this time.