Ставим пакеты 6in4 и curl
opkg update
opkg install 6in4 curl
В файле /etc/config/network прописываем
Ставим пакеты 6in4 и curl
opkg update
opkg install 6in4 curl
В файле /etc/config/network прописываем
| package warn | |
| import ( | |
| "errors" | |
| "fmt" | |
| "io" | |
| "log" | |
| "os" | |
| "path/filepath" | |
| "runtime" |
How to run everything on a single Debian install
This guide was compiled from the notes and logs of two re-installs
I made on Debian 8 (Jessie) servers running Owncloud on Apache.
I have basically removed and reinstalled everything except the database
contents and the users files, while also migrating from owncloud to nextcloud.
| #!/bin/bash | |
| on_exit() { | |
| echo "#The script has quit unexpectidly on line $1" >&$z | |
| echo "The script has quit unexpectidly on line $1" >&2 | |
| exit | |
| } | |
| on_error() { | |
| echo "Error on line $1" |
| #!/bin/bash | |
| # a tool to extract data from those MS Winsoze "web-archives" arrived as a ".DOC" file... | |
| # run as ```splitmime.sh < /tmp/where-it-is.doc``` and check for "./C_/" directory. | |
| div='' | |
| typeset -i nl=0 | |
| typeset -i ol=0 | |
| file_header='yes' | |
| header='no' |
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Sun Nov 13 00:00:06 2016 | |
| @author: ergo | |
| """ | |
| import select | |
| import psycopg2 | |
| import psycopg2.extensions |
| # sample.py | |
| import falcon | |
| import json | |
| class QuoteResource: | |
| def on_get(self, req, resp): | |
| """Handles GET requests""" | |
| quote = { | |
| 'quote': 'I\'ve always been more interested in the future than in the past.', | |
| 'author': 'Grace Hopper' |
| import select | |
| import datetime | |
| import psycopg2 | |
| import psycopg2.extensions | |
| from sqlalchemy import create_engine, text | |
| engine = create_engine("postgresql+psycopg2://vagrant@/postgres") |
The following gist is an extract of the article Flask-SQLAlchemy Caching. It allows automated simple cache query and invalidation of cache relations through event among other features.
# pulling one User object
user = User.query.get(1)