Skip to content

Instantly share code, notes, and snippets.

@j0e1in
j0e1in / sanic-run.py
Created March 11, 2018 16:07 — forked from wonderbeyond/sanic-run.py
A sanic entry-script for development (supports auo-reload, shell-mode)
import argparse
from app import app
def main():
parser = argparse.ArgumentParser(
description='Sanic test server',
formatter_class=argparse.ArgumentDefaultsHelpFormatter
)
@j0e1in
j0e1in / XPS-15 9560 Getting Nvidia To Work on KDE Neon
Created August 12, 2017 03:36 — forked from whizzzkid/XPS-15 9560 Getting Nvidia To Work on KDE Neon
Making Nvidia Drivers + CUDA 8 + Bumblebee work together on XPS 15 Early 2017 9560 kabylake. Ubuntu, KDE Neon, Linux Mint, debian.
# As of writing this, 4.11 kernel fails, 4.10.15 fails, 4.11rc8 seems to be working. Apply the graphics patches first.
# Install Intel Graphics Patch Firmwares (This should reboot your system):
bash -c "$(curl -fsSL http://bit.ly/IGFWL-install)"
# Update to 4.11.2 kernel. nvidia-375 compiles fine >=4.11.1
cd /tmp
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.11.2/linux-headers-4.11.2-041102_4.11.2-041102.201705201036_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.11.2/linux-headers-4.11.2-041102-generic_4.11.2-041102.201705201036_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.11.2/linux-image-4.11.2-041102-generic_4.11.2-041102.201705201036_amd64.deb