Start the worker:
celery -A tasks worker --loglevel=info -c 2 --pidfile=celery.pid
In another terminal send 6 tasks:
python script.py
https://forums.quectel.com/t/eg12-and-freq-or-cell-lock-feature/4619 | |
thanks. | |
After many test I discover all stuff. | |
This is example at RouterBoard Chateau, RouterOS 7 beta 8 | |
Quectel EG12 not support frequency lock to select band at any tower. | |
Quectel EG12 support one and many Cell Lock’s, you can enter max 20 of CellLock’s and it select the one with the best signal and set it as primary-band. |
import * as Sentry from '@sentry/browser'; | |
import getConfig from 'next/config'; | |
import React from 'react'; | |
const { SENTRY_DSN } = getConfig().publicRuntimeConfig; | |
Sentry.init({ dsn: SENTRY_DSN }); | |
/** | |
* Send an error event to Sentry. |
package main | |
import ( | |
"fmt" | |
"math" | |
"strconv" | |
"strings" | |
) | |
func ParseFloat(str string) (float64, error) { |
package main | |
import ( | |
"crypto/rand" | |
"encoding/base64" | |
"fmt" | |
"io" | |
"math/big" | |
) |
package main | |
import ( | |
"bytes" | |
"compress/gzip" | |
"fmt" | |
"encoding/base64" | |
"io/ioutil" | |
) |
package main | |
import ( | |
"fmt" | |
"time" | |
"github.com/bluele/factory-go/factory" | |
"github.com/jinzhu/gorm" | |
_ "github.com/jinzhu/gorm/dialects/sqlite" | |
) |
from __future__ import with_statement | |
from alembic import context | |
from sqlalchemy import engine_from_config, pool, MetaData, Table, ForeignKeyConstraint | |
from logging.config import fileConfig | |
# this is the Alembic Config object, which provides | |
# access to the values within the .ini file in use. | |
config = context.config | |
# Interpret the config file for Python logging. |
rsync (Everyone seems to like -z, but it is much slower for me)
easy_install httpie
(probably you want to sudo easy_install httpie
curl -o /usr/local/bin/json-to-csv.py https://raw.github.com/gist/4119347/24adb5dcd9c025c272042653a70d25b73b485958/json-to-csv.py
chmod +x /usr/local/bin/json-to-csv.py