#Query
# group by, count and sort
Model.objects.values('ingredient','category').annotate(count=Count('ingredient')).order_by('-count')
#Query
# group by, count and sort
Model.objects.values('ingredient','category').annotate(count=Count('ingredient')).order_by('-count')
{ | |
"__ar": 1, | |
"payload": { | |
"entries": [{ | |
"uid": "keywordSELECT", | |
"subtext": "[FQL keyword]", | |
"text": "SELECT" | |
}, { | |
"uid": "keywordFROM", | |
"subtext": "[FQL keyword]", |
@echo off | |
if %1.==Sub. goto %2 | |
echo Encoding files in %1 | |
set dir=%1 | |
if exist %dir%\encoded\NUL goto processfiles |
<flow name="addFlow"> | |
<http:inbound-endpoint keep-alive="true" exchange-pattern="request-response" host="localhost" port="${http.port}" path="add"/> | |
<transformer ref="httpToMapTransformer"/> | |
<message-properties-transformer scope="invocation"> | |
<add-message-property key="contextName" value="#[map-payload:campaignName]" /> | |
</message-properties-transformer> | |
<dynamicflows:add contextName="#[variable:contextName]"> |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.button { | |
background: #65a9d7; | |
display: inline-block; | |
padding: 10px 20px; | |
text-decoration: none; | |
width: auto; | |
color: white; |
#!/usr/bin/env python | |
import pika | |
import sys | |
connection = pika.BlockingConnection(pika.ConnectionParameters( | |
host='localhost')) | |
channel = connection.channel() | |
channel.exchange_declare(exchange='emsp', | |
type='topic') |
var casper = require("casper").create({ | |
pageSettings: { | |
webSecurityEnabled: false | |
} | |
}); | |
var x = require('casper').selectXPath; | |
var fs = require('fs'); | |
function printArgs() { | |
var i, ilen; |
bloom.contains(el) |
Remarks |
---|---|
TRUE | el may or maynot be present |
FALSE | Not present in set |
<system.webServer> | |
<staticContent> | |
<remove fileExtension=".svg" /> | |
<remove fileExtension=".svgz" /> | |
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> <!-- Scalable Vector Graphics iPhone, iPad --> | |
<mimeMap fileExtension=".svgz" mimeType="image/svg+xml" /> | |
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" /> <!-- Web Open Font Format for Firefox --> | |
<mimeMap fileExtension=".ttf" mimeType="application/x-font-truetype" /> <!-- true type font for IE--> | |
<mimeMap fileExtension=".otf" mimeType="application/x-font-opentype" /> <!-- OpenType--> | |
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" /> <!-- embedded open type for IE --> |
yum install epel-release
yum install fail2ban
# /etc/fail2ban/jail.local
[DEFAULT]
ignoreip = 127.0.0.1
bantime = 3600
findtime = 600
maxretry = 3