Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
I may be slow to respond.

err edison7500

:octocat:
I may be slow to respond.
View GitHub Profile
@edison7500
edison7500 / force_default_language_middleware.py
Created Apr 9, 2020 — forked from vstoykov/force_default_language_middleware.py
Force Django to use settings.LANGUAGE_CODE for default language instead of request.META['HTTP_ACCEPT_LANGUAGE']
View force_default_language_middleware.py
try:
from django.utils.deprecation import MiddlewareMixin
except ImportError:
MiddlewareMixin = object
class ForceDefaultLanguageMiddleware(MiddlewareMixin):
"""
Ignore Accept-Language HTTP headers
@edison7500
edison7500 / shadowsocks_ubuntu1604.org
Created Feb 4, 2020 — forked from nuhuo08/shadowsocks_ubuntu1604.org
Install Shadowsocks-libev + simple-obfs on Ubuntu 16.04
View shadowsocks_ubuntu1604.org

Install Shadowsocks-libev + simple-obfs on Ubuntu 16.04

Install shadowsocks-libev via Ubuntu PPA

sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev -y
sudo apt-get update
sudo apt install shadowsocks-libev
@edison7500
edison7500 / Rpi-InfluxDB-Install.md
Created Oct 26, 2019 — forked from boseji/Rpi-InfluxDB-Install.md
Raspberry Pi InfluxDB installation
View Rpi-InfluxDB-Install.md

Raspberry Pi InfluxDB: The solution for IoT Data storage

Raspberry Pi is costeffect linux computer very commonly used for IoT home automation projects.

Here are the 3 problems with conventional databases for IoT data store applications:

  • Too much or complex configuration
  • Unable to expire data / set retentional policies
  • Not tailor made of Time Series Data
You can’t perform that action at this time.