How can a nodejs process running inside a docker container, get that container's id?
the hostname seems to be the short container id in Docker v1.12
It works and this idea was found in this SO post.
How can a nodejs process running inside a docker container, get that container's id?
the hostname seems to be the short container id in Docker v1.12
It works and this idea was found in this SO post.
https://github.com/Microsoft/vscode-tips-and-tricks
WebStorm: cmd+o
VSCode: cmd+e
WebStorm: cmd shift -
VSCode: fold level 1 cmd+K cmd+1
import javax.crypto.Cipher; | |
public class JCETest { | |
public static void main(String[] args) throws Exception { | |
boolean limit = Cipher.getMaxAllowedKeyLength("RC5")<256; | |
System.out.println(limit); | |
} | |
} |
var rolesQuery = new Parse.Query(Parse.Role); | |
rolesQuery.equalTo('name', 'someRole'); | |
return rolesQuery.first({useMasterKey:true}) | |
.then(function(roleObject){ | |
var user = new Parse.User(); | |
user.id = req.params.userId; | |
roleObject.getUsers().add(user); | |
return roleObject.save(null, {useMasterKey:true}); | |
}); |
<plugin> | |
<groupId>org.apache.cxf</groupId> | |
<artifactId>cxf-codegen-plugin</artifactId> | |
<version>${cxf.version}</version> | |
<executions> | |
<execution> | |
<id>generate-wsdl-sources</id> | |
<phase>generate-sources</phase> | |
<configuration> | |
<wsdlOptions> |
<?xml version="1.0"?> | |
<jxb:bindings version="1.0" | |
xmlns:jxb="http://java.sun.com/xml/ns/jaxb" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" | |
xmlns:inheritance="http://jaxb2-commons.dev.java.net/basic/inheritance" | |
jxb:extensionBindingPrefixes="xjc"> | |
<jxb:bindings schemaLocation="../schema/yourSchemaFile.xsd"> | |
<jxb:bindings node="//xs:complexType[@name='SomeElementNameFromYourSchemaFile']"> |
// 1) Lets start with the simplest query that you can run in | |
// the head plugin for ElasticSearch located at the url: | |
// http://localhost:9200/_plugin/head/ | |
{ | |
"query": { | |
"match_all": {} | |
} | |
} | |
// 2) Before jumping into forming queries with the ES Query DSL |
/** | |
* Want to search github for sample code? | |
* Use the following `search criteria` in the github.com `search box` and then select `Code` from the search results: | |
* container upload remote language:javascript path:/common/models | |
*/ | |
module.exports = function(Container) { | |
Container.beforeRemote('**', function(ctx, unused, next) { | |
console.log('4: good'); | |
console.log('5: ctx.methodString', ctx.methodString); |