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
package com.hazelcast.security.loginimpl; | |
import java.io.IOException; | |
import java.security.cert.Certificate; | |
import java.security.cert.CertificateParsingException; | |
import java.security.cert.X509Certificate; | |
import java.util.Collection; | |
import java.util.List; | |
import javax.security.auth.callback.Callback; |
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
#!/bin/bash | |
# define Hazelcast configuration in YAML file (TCP discovery used, REST API enabled) | |
cat <<EOT >hazelcast.yaml | |
hazelcast: | |
network: | |
join: | |
multicast: | |
enabled: false | |
tcp-ip: |
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
#!/bin/bash | |
while scrot '/tmp/scr-%Y%m%d-%H%M%S.png' -q 20; do | |
sleep 30 | |
done |
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
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 0 /f |
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
#!/usr/bin/python | |
# Exports a CSV of repo names, readme files, and the license of the project. | |
from __future__ import print_function | |
import requests | |
import json | |
import settings | |
from urlparse import urlparse, parse_qs | |
import sys |
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
LoginModuleConfig loginModuleConfig = new LoginModuleConfig(); | |
loginModuleConfig.setClassName(CustomVerifyingLoginModule.class.getName()); | |
loginModuleConfig.setUsage(LoginModuleUsage.REQUIRED); | |
Properties properties = new Properties(); | |
properties.setProperty("allowed-hosts", "192.168.2.*,server-x.my-company.example") | |
loginModuleConfig.setProperties(properties); | |
config.getSecurityConfig().setEnabled(true).addMemberLoginModuleConfig(loginModuleConfig); |
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
/* | |
// Usage: | |
Config config = new Config(); | |
SocketInterceptorConfig socketInterceptorConfig = new SocketInterceptorConfig(); | |
VerifyRemoteAddressInterceptor interceptor = new | |
VerifyRemoteAddressInterceptor(); | |
socketInterceptorConfig.setImplementation(interceptor).setEnabled(true); | |
config.getNetworkConfig().setSocketInterceptorConfig(socketInterceptorConfig); | |
Hazelcast.newHazelcastInstance(config); | |
*/ |
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
if timeoutMin=$(zenity --entry --text "Shutdown in (min)" --entry-text "30" --title "Shutdown?"); then | |
sudo shutdown -P ${timeoutMin} | |
fi |
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
/* | |
* Copyright (c) 2008-2017, Hazelcast, Inc. All Rights Reserved. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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'?> | |
<server xmlns="urn:jboss:domain:5.0"> | |
<extensions> | |
<extension module="org.jboss.as.clustering.infinispan"/> | |
<extension module="org.jboss.as.connector"/> | |
<extension module="org.jboss.as.deployment-scanner"/> | |
<extension module="org.jboss.as.ee"/> | |
<extension module="org.jboss.as.ejb3"/> |
NewerOlder