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
<script type="application/ld+json"> | |
{ | |
"@context": "http://schema.org", | |
"@type": "EmailMessage", | |
"description": "NetLicensing Registration", | |
"action": { | |
"@type": "ConfirmAction", | |
"name": "Activate account", | |
"handler": { | |
"@type": "HttpActionHandler", |
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
<bean id="localhost" class="java.net.InetAddress" factory-method="getLocalHost"/> | |
<bean class="com.labs64.netlicensing.common.convert.schema.TokenToItemConverter"> | |
<property name="shopURL" value="#{localhost.canonicalHostName}/app/content/shop.xhtml?shoptoken=" /> | |
</bean> |
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
// prepare SWID Tag processor | |
SwidProcessor processor = new DefaultSwidProcessor(); | |
((DefaultSwidProcessor) processor).setEntitlementRequiredIndicator(true) | |
.setProductTitle("NetLicensing") | |
.setProductVersion("2.1.0", 2, 1, 0, 0) | |
.setSoftwareCreator("Labs64", "regid.2010-04.com.labs64") | |
.setSoftwareLicensor("Labs64", "regid.2010-04.com.labs64") | |
.setSoftwareId("NLIC", "regid.2010-04.com.labs64") | |
.setTagCreator("Labs64", "regid.2010-04.com.labs64"); | |
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
Customer -> Manager > calculate 1 + 2 = ? | |
Manager -> Developer > FYI | |
Developer -> Manager > 3 | |
Manager -> Lead > FYA | |
Lead -> Manager > how 3 why 3 what 3 ? | |
Manager -> Developer > FYI | |
Developer -> Manager > '+' is addition, 1 and 2 are integers | |
Manager -> Lead > FYA | |
Lead -> Manager > OK | |
Manager -> All > calls for a meeting |
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
<VirtualHost netlicensing.labs64.com:443> | |
... | |
<Location /core> | |
# CORS withCredentials=false (without cookies) | |
Header always set Access-Control-Allow-Origin "*" | |
Header always set Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" | |
Header always set Access-Control-Allow-Headers "Content-Type, Accept, Authorization" | |
Header always set Access-Control-Max-Age: "3600" |
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
# install Homebrew | |
$ su ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# show brew commands | |
$ brew help | |
# check current user | |
$ echo $(whoami) | |
# grant access to the folders |
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/sh | |
# Сlear containers: | |
docker rm -f $(docker ps -a -q) | |
# Сlear images: | |
docker rmi -f $(docker images -a -q) | |
# Remove all the dangling images: | |
docker rmi $(docker images -q -f dangling=true) |
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
<?php | |
/** | |
* @package Creating Tables Boilerplate WordPress Plugin | |
* @version 1.0 | |
*/ | |
/* | |
Plugin Name: Creating Tables Boilerplate WordPress Plugin | |
Plugin URI: https://praison.com/ | |
Description: Creating Tables Boilerplate WordPress Plugin | |
Author: Mervin Praison |
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
# Use browser developer console to verify DOM element selector | |
document.querySelector('section#stay-up-to-date-with-netlicensing-platform-news p.change-description') |
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
// In the Wiki Edit (/_edit) Preview mode, run this snippet in the browser console to get a Markdown of a Table of Contents: | |
console.log( | |
'**Table of Contents**\n\n' + | |
Array.from(document.querySelectorAll('h1 > a, h2 > a, h3 > a')).map((a) => ( | |
{'H1':'* ','H2':' * ','H3':' - '}[a.parentNode.tagName] + | |
`[${a.parentNode.innerText.trim()}](${a.hash})` | |
)).join('\n') + | |
'\n\n' + '***' | |
); |
OlderNewer