start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" | |
Zabbix SMTP Alert script for gmail. | |
""" | |
import sys | |
import smtplib | |
from email.MIMEText import MIMEText | |
from email.Header import Header |
from rest_framework.parsers import JSONParser | |
from django.conf import settings | |
import re | |
import json | |
first_cap_re = re.compile('(.)([A-Z][a-z]+)') | |
all_cap_re = re.compile('([a-z0-9])([A-Z])') | |
def camel_to_underscore(name): | |
s1 = first_cap_re.sub(r'\1_\2', name) |
SSH into the box as root.
cd /volume1/@tmp
wget http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/syno-i686-bootstrap_1.2-7_i686.xsh
chmod +x syno-i686-bootstrap_1.2-7_i686.xsh
./syno-i686-bootstrap_1.2-7_i686.xsh
ipkg update
https://www.ffmpeg.org/doxygen/trunk/dump_8c_source.html#l00454
st->avg_frame_rate
st->r_frame_rate
st->time_base
st->codec->time_base
Average framerate.
avformat_find_stream_info()
.avformat_write_header()
.apt-get install python-pip
pip install shadowsocks
sudo ssserver -p 443 -k password -m aes-256-cfb --user nobody -d start
class AdvertisementType(models.Model): | |
name = models.CharField(max_length=255, blank=False, null=False, verbose_name='Name') # name of feature | |
created = models.DateField(auto_now=True) # created date | |
def __unicode__(self): | |
return u'{0} - {1}'.format(self.id, self.name) | |
class Accommodation(models.Model): | |
name = models.CharField(max_length=255, blank=False, null=False, verbose_name='Name') # name of the accommodation | |
description = models.TextField(blank=True, null=True, verbose_name='Allgemeine Beschreibung') # classification of object like '3 Stars' |
##VGG16 model for Keras
This is the Keras model of the 16-layer network used by the VGG team in the ILSVRC-2014 competition.
It has been obtained by directly converting the Caffe model provived by the authors.
Details about the network architecture can be found in the following arXiv paper:
Very Deep Convolutional Networks for Large-Scale Image Recognition
K. Simonyan, A. Zisserman