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
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 http://wrapper.tanukisoftware.com/downloads/ (for me 3.5.17 works)
@SamR1
SamR1 / manjaro-avell-g1513.md
Created Oct 22, 2017 — forked from mauri870/manjaro-avell-g1513.md
Installation of Manjaro 17 and nvidia/bumblebee drivers on Avell G1513
View manjaro-avell-g1513.md

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
SamR1 / SQLAlchemy_cast.py
Created Mar 25, 2018 — forked from danielthiel/SQLAlchemy_cast.py
SQLAlchemy: filter by date for an datetime field(does not work with SQLite, with PostgreSQL it works fine)
View SQLAlchemy_cast.py
from datetime import date
from sqlalchemy import cast, DATE
Match.query.filter(cast(Match.date_time_field, DATE)==date.today()).all()
@SamR1
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 https://gist.github.com/fliphess/7836479
import tornado.ioloop
import tornado.web
import base64
import netaddr
import bcrypt
def require_basic_auth(handler_class):
@SamR1
SamR1 / api_sev.py
Created Apr 11, 2018 — forked from notsobad/api_sev.py
Tornado basic auth example
View api_sev.py
# -*- coding= utf-8 -*-
import datetime
import os
import json
import tornado.ioloop
import tornado.web
import tornado
import tornado.httpclient
import traceback
import urllib2
You can’t perform that action at this time.