- Create New Volume
-
If you're on OS X you'll have to do this. It creates a new volume (named migration) on your machine under
~
that's 1GBjava -jar ~/svn-migration-scripts.jar create-disk-image 1 migration
-
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlackColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NGMCAw | |
IDAAEAKAAtIQERITWiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xvcqISFFhOU09iamVj | |
dF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290gAEIERojLTI3O0FITltiaWttcn2GjpGa |
This file contains hidden or 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
import { Response, Request, Router } from 'express'; | |
import jwt from 'jsonwebtoken'; | |
import jwksClient from 'jwks-rsa'; | |
const router: Router = Router(); | |
const BEARER = 'Bearer '; | |
const jwkClient = jwksClient({ | |
strictSsl: true, | |
jwksUri: process.env['JWK_URL'] //or wherever you have your configs |
This file contains hidden or 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
interface CommonData { | |
data: any; | |
meta: any, | |
[propName: string]: any; | |
} | |
function getCommonData(common: CommonData) { | |
return common; | |
} |
This file contains hidden or 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
//https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference.html#api-msearch | |
//https://www.elastic.co/guide/en/elasticsearch/reference/6.2/search-multi-search.html | |
//https://github.com/elastic/elasticsearch-js/issues/414 | |
GET _msearch | |
{"index" : "packetbeat-*"} | |
{ "query": { "multi_match": { "query":"" } } } | |
{"index" : "packetbeat-*"} | |
{ "query": { "multi_match": { "query":"" } } } |
This file contains hidden or 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
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> | |
<link rel="stylesheet" type="text/css" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> | |
</head> | |
<body> |
This file contains hidden or 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
List<Employee> employees = persons | |
.stream() | |
.filter(p -> !p.getLastName().equals("e1")) | |
.map(p -> new Employee(p.getName(), p.getLastName(), 1000)) | |
.collect(Collectors.toList()); |
This file contains hidden or 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
from subprocess import call | |
from datetime import datetime | |
import os | |
class Logs: | |
LR_HOME = 'LIFERAY_HOME' | |
LR_DEFAULT = '/opt/home/{}/liferay-current/' | |
LOG_DIR = '{}logs/liferay.{}.log' | |
DT_FORMAT = '%Y-%m-%d' |
This file contains hidden or 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
import os | |
import glob | |
PROJECT_NAME = 'template-builder' | |
PKG_NAME = 'gov.llnl.iweb.liferay' | |
UNIQUE_PKG_NAME = 'my.template.builder' | |
CLASS_NAME = 'MySpecialClass' | |
DIRECTORY = '/Users/rbeall/dev/temps/{}' | |
This file contains hidden or 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
import os | |
import glob | |
import fnmatch | |
import datetime | |
from subprocess import call | |
VERSION_FILE = './gradle.properties' | |
VERSION = '1.0.0-SNAPSHOT' | |
VERSION_STR = 'version=' | |
LR_HOME = 'LIFERAY_HOME' |