Skip to content

Instantly share code, notes, and snippets.

Sam SamR1

Block or report user

Report or block SamR1

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
SamR1 /
Created Apr 11, 2018 — forked from notsobad/
Tornado basic auth example
# -*- coding= utf-8 -*-
import datetime
import os
import json
import tornado.ioloop
import tornado.web
import tornado
import tornado.httpclient
import traceback
import urllib2
SamR1 / tornado basic auth
Created Apr 11, 2018 — forked from fliphess/tornado basic auth
basic auth with "htpasswd" file - auth example for tornado webserver
View tornado basic auth
#!/usr/bin/env python
# also check
import tornado.ioloop
import tornado.web
import base64
import netaddr
import bcrypt
def require_basic_auth(handler_class):
SamR1 /
Created Mar 25, 2018 — forked from danielthiel/
SQLAlchemy: filter by date for an datetime field(does not work with SQLite, with PostgreSQL it works fine)
from datetime import date
from sqlalchemy import cast, DATE
Match.query.filter(cast(Match.date_time_field, DATE)
SamR1 /
Created Oct 22, 2017 — forked from mauri870/
Installation of Manjaro 17 and nvidia/bumblebee drivers on Avell G1513

After a weekend of research, stress and pain I finally figure out how to install manjaro 17 and configure the nvidia/bumblebee drivers on my avell laptop

Here's my notebook specs:

$ inxi -MGCNA

Machine:   Device: laptop System: Avell High Performance product: 1513
           Mobo: N/A model: N/A v: 0.1 UEFI: American Megatrends v: N.1.02 date: 09/28/2016
Battery    BAT0: charge: 44.0 Wh 100.0% condition: 44.0/44.0 Wh (100%)
SamR1 / install SonarQube on Raspberry Pi
Created Jul 30, 2017 — forked from synox/install SonarQube on Raspberry Pi
How to install SonarQube on Raspberry PI
View install SonarQube on Raspberry Pi
SonarQube does currently not support Raspberry PI.
This is a workaround. It compiles a armv6 compatible version of the java-wrapper and configures sonarqube to use it.
(Testet with Raspbian, wheezy, 3.6)
Compile java-wrapper for ARMv6
Download latest version of " wrapper_prerelease_XY.tar" from (for me 3.5.17 works)
You can’t perform that action at this time.