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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>AES</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/aes.js" integrity="sha256-/H4YS+7aYb9kJ5OKhFYPUjSJdrtV6AeyJOtTkw6X72o=" crossorigin="anonymous"></script> | |
</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
#******************************************************************** | |
# Other Neo4j system properties | |
#******************************************************************** | |
server.metrics.prometheus.endpoint=127.0.0.1:2004 | |
server.metrics.prometheus.enabled=true | |
server.metrics.enabled=true | |
server.metrics.filter=* | |
server.metrics.jmx.enabled=true |
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://neo4j.com/blog/sharding-the-ldbc-social-network/ |
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
http://Get-ChildItem -Directory | foreach { Write-Host "`n Getting latest for $_ " | git -c http.sslVerify=false -C $_.FullName pull --all --recurse-submodules --verbose } | |
# rem run from batch or cmd | |
powershell -command - < c:\git-pull-all.cmd |
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
rem ren orig.txt %date:~6,4%%date:~3,2%%date:~0,2%-%time:~0,2%%time:~3,2%%time:~6,2%%time:~9,2%-orig.txt | |
rem following will masks with zero if value <10 | |
@echo off | |
set hour=%time:~0,2% | |
if "%hour:~0,1%" == " " set hour=0%hour:~1,1% | |
echo hour=%hour% | |
set min=%time:~3,2% | |
if "%min:~0,1%" == " " set min=0%min:~1,1% | |
echo min=%min% |
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
Rem delete tar files older than two days | |
echo ****** deleting C:\stash-backups\backups\*.tar files older than 1 day ******* | |
forfiles -p "C:\backups" -s -m *.tar /D -1 /C "cmd /c echo deleting @path" | |
forfiles -p "C:\backups" -s -m *.tar /D -1 /C "cmd /c del @path" |
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
rem *** run this batchfile as "Run administrator" | |
@echo off | |
goto check_Permissions | |
:check_Permissions | |
echo Administrative permissions required. Detecting permissions... | |
net session >nul 2>&1 | |
if %errorLevel% == 0 ( | |
echo Success: Administrative permissions confirmed. |
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
/** | |
* Installs node modules dynamically | |
*/ | |
var npm = require("npm"); | |
var npmInstall= function(pkgName, saveFlag, saveDevFlag, cb) { | |
//if true updates package.json | |
saveFlag = typeof saveFlag === 'undefined' ? saveFlag : false; | |
saveDevFlag = typeof saveDevFlag === 'undefined' ? saveDevFlag : false; |
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
var ldap = require('ldapjs'); | |
var assert = require('assert'); | |
var express = require ('express'); | |
var app = express(); | |
app.use(express.bodyParser()); | |
//specify ladap host and port | |
var ldapUrl = 'ldap://10.10.10.1:389'; |