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 | |
| # Requires: python3 and unidecode module | |
| # Install with: sudo apt install python3-unidecode OR pip3 install unidecode | |
| dry_run=false | |
| to_lowercase=false | |
| strip_parens=false | |
| print_usage() { |
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
| # Paths | |
| ./path=elytron.project:add(path=/home/darranl/src/wildfly10/wildfly-elytron) | |
| ./path=elytron.project.jks:add(path=src/test/resources/ca/jks, relative-to=elytron.project) | |
| ./path=elytron.project.properties:add(path=src/test/resources/org/wildfly/security/auth/realm, relative-to=elytron.project) | |
| # KeyStores | |
| ./subsystem=elytron/key-store=localhost:add(type=jks, relative-to=elytron.project.jks, path=localhost.keystore, credential-reference={clear-text=Elytron}) | |
| ./subsystem=elytron/key-store=beetles:add(type=jks, relative-to=elytron.project.jks, path=beetles.keystore, credential-reference={clear-text=Elytron}) |
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 |
NewerOlder