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
<spi name="x509cert-lookup"> | |
<default-provider>apache</default-provider> | |
<provider name="apache" enabled="true"> | |
<properties> | |
<property name="sslClientCert" value="ssl-client-cert"/> | |
<property name="sslCertChainPrefix" value="USELESS"/> | |
<property name="certificateChainLength" value="2"/> | |
</properties> | |
</provider> | |
</spi> |
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
git rm -rf --cached . | |
git reset --hard HEAD | |
https://stackoverflow.com/questions/2517190/how-do-i-force-git-to-use-lf-instead-of-crlf-under-windows |
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
# set alias xl='xmlstarlet' | |
xl ed -L -u '//spi[@name="x509cert-lookup"]/default-provider' -v "apache" test.xml | |
xl ed -L -u '//spi[@name="x509cert-lookup"]/provider[@name="default"]/@name' -v "apache" test.xml | |
xl ed -L -s '//spi[@name="x509cert-lookup"]/provider[@name="apache"]' -t elem -n "properties" test.xml | |
xl ed -L -s '//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties' -t elem -n "property" test.xml | |
xl ed -L -i '(//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties/property)[last()]' -t attr -n "name" -v "sslClientCert" test.xml | |
xl ed -L -i '(//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties/property)[last()]' -t attr -n "value" -v "ssl-client-cert" test.xml | |
xl ed -L -s '//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties' -t elem -n "property" test.xml | |
xl ed -L -i '(//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties/property)[last()]' -t attr -n "name" -v "sslCertChainPrefix" test.xml | |
xl ed -L -i '(//spi[@name="x509c |
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
(?:\/\/[^\/]+\/)([^\/]+)(?:\/*.*) | |
https://www.ruby-forum.com/tasdas_asd/validate-client-certificate-sdn-fields-cn-ou-o-etc-at-nginx/233221 | |
$1 return tasdas_asd | |
Or (?:\/)([^\/]+)(?:\/*.*) | |
/tasdas_asd/validate-client-certificate-sdn-fields-cn-ou-o-etc-at-nginx/233221 |
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
map $ssl_client_s_dn $ssl_client_s_dn_cn { | |
default ""; | |
~CN=(?<CN>[^\/,]+) $CN; | |
} | |
map $ssl_client_s_dn $ssl_client_s_dn_o { | |
default ""; | |
~O=(?<O>[^\/,]+) $O; | |
} |
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
BEGIN; | |
ALTER TABLE albi_puff drop constraint albi_puff_realm_id_fkey; | |
ALTER TABLE albi_puff add constraint albi_puff_realm_id_fkey | |
FOREIGN KEY (realm_id) | |
REFERENCES realm(id) | |
ON DELETE CASCADE; | |
COMMIT; |
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
Get-ChildItem .\containers\api\ -Filter albi_*_rest | Foreach-Object { | |
$name = $_.BaseName | |
ECHO $name | |
$short = $name.replace("albi_", "") | |
$tag = "$short" + ":latest" | |
ECHO $short | |
docker build -t 440617634381.dkr.ecr.ap-southeast-2.amazonaws.com/albi/$tag .\\containers\\api\\ -f .\\containers\\api\\$name\\Dockerfile --no-cache | |
docker push 440617634381.dkr.ecr.ap-southeast-2.amazonaws.com/albi/$tag | |
kubectl delete pods -l app=$short} |
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
import requests | |
from requests.auth import HTTPBasicAuth | |
import time | |
headers = {'Content-Type': 'application/json', 'performAsync': 'True', 'timeToLiveSeconds': '99999999999'} | |
body = {'test':123} | |
auth=HTTPBasicAuth('test', 'changeme') | |
baseurl = "http://infinispan-server-http/rest" |
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
import requests | |
from requests.auth import HTTPBasicAuth | |
import time | |
headers = {'Content-Type': 'application/json', 'performAsync': 'True', 'timeToLiveSeconds': '99999999999'} | |
body = {'test':123} | |
auth=HTTPBasicAuth('test', 'changeme') | |
baseurl = "http://infinispan-server-http/rest" |
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
from pyignite import Client | |
from pyignite.datatypes.cache_config import CacheMode | |
from pyignite.datatypes.prop_codes import * | |
from pyignite.exceptions import SocketError | |
import time | |
nodes = [('100.108.0.16',10800)] | |
nodes = [('100.108.0.2', 10800), ('100.108.0.5',10800), ('100.108.0.6',10800)] |
OlderNewer