This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# we'll write all git versions of the file to this folder: | |
EXPORT_TO=/tmp/all_versions_exported | |
# take relative path to the file to inspect | |
GIT_PATH_TO_FILE=$1 | |
# ---------------- don't edit below this line -------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get purge openjdk-8-jre-headless | |
wget https://launchpad.net/~openjdk-r/+archive/ubuntu/security-deletedppa/+build/16691000/+files/openjdk-8-jre-headless_8u212-b03-0ubuntu1.16.04.1_amd64.deb | |
apt-get install ca-certificates-java | |
dpkg -i openjdk-8-jre-headless_8u212-b03-0ubuntu1.16.04.1_amd64.deb | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
handlers/product.cfc: | |
component{ | |
function index( event, rc, prc ){ | |
prc.product = EntityLoadByPk( 'product', 1); | |
dump(prc.product.user_id ); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"query": { | |
"filtered": { | |
"query": { | |
"bool": { | |
"must": [ | |
{ | |
"query_string": { | |
"default_field": "titulo", | |
"query": "malaga cromo", | |
"default_operator": "and" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"query": { | |
"bool": { | |
"should": [ | |
{ | |
"multi_match": { | |
"query": "malaga cromo", | |
"fields": [ | |
"titulo" | |
], | |
"operator": "and" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ORMSettings: flushatrequestend = false, automanagesession = false | |
// No errors, just obj.myprop not populate to db: | |
obj = cacheget(tag); | |
entityMerge(obj); | |
transaction { | |
obj.myprop = 'example'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12ms | |
13ms | |
12ms | |
11ms | |
11ms | |
10ms | |
20ms | |
11ms | |
12ms | |
12ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type":"jdbc", | |
"jdbc": { | |
"driver":"com.microsoft.sqlserver.jdbc.SQLServerDriver", | |
"url":"jdbc:sqlserver://ipaddress:port;databaseName=mydatabase", | |
"user":"myuser","password":"mypass", | |
"sql":"select * from table", | |
"poll":"30s" | |
}, | |
"index": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfquery name="en_memoria" datasource="venvir"> | |
SELECT * FROM Memoria WHERE Id_Lote = #datos_para_gateway.num_lote# AND URL_TOKEN = '#datos_para_gateway.usr_token#' | |
</cfquery> | |
<cfif #en_memoria.RecordCount# EQ 0> | |
<cfquery name="memoria" datasource="venvir"> | |
INSERT INTO Memoria (Id_Lote, URL_Token, Fecha) VALUES (#datos_para_gateway.num_lote#, '#datos_para_gateway.usr_token#', #now()#); | |
</cfquery> | |
<cfelse> | |
<cfquery name="memoria" datasource="venvir"> | |
UPDATE Memoria |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Command: ab -n 10 url | |
Production Site - IIS 6.0 + Coldfusion 8.0 | |
Requests per second: 3.98 [#/sec] (mean) | |
Time per request: 251.330 [ms] (mean) | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 44 52 11.4 48 79 |
NewerOlder