Skip to content

Instantly share code, notes, and snippets.

@mefarazath
mefarazath / commands
Last active October 17, 2017 07:14 — forked from pulasthi7/commands
maven
// Update Identity Extensions
mvn versions:update-properties -Dincludes=org.wso2.carbon.identity.* -DgenerateBackupPoms=false
// Update Identity Connectors packed by default
mvn versions:update-properties -Dincludes=org.wso2.carbon.extension.identity.*
// Run in release profile with signing disabled
mvn clean install -P wso2-release -Dgpg.skip
@mefarazath
mefarazath / GagSsl.java
Last active June 1, 2022 16:07 — forked from chalup/GagSsl.java
Get OkHttpClient which ignores all SSL errors.
private static OkHttpClient getUnsafeOkHttpClient() {
try {
// Create a trust manager that does not validate certificate chains
final TrustManager[] trustAllCerts = new TrustManager[]{
new X509TrustManager() {
@Override
public void checkClientTrusted(java.security.cert.X509Certificate[] chain,
String authType) throws CertificateException {
}
@mefarazath
mefarazath / buildAllExtensions.sh
Last active April 24, 2017 06:54 — forked from pulasthi7/buildAllExtensions.sh
Clones all the IS extensions repos
echo "building framework"
cd identity-framework
mvn clean install -Dmaven.test.skip=true
if [ $? -ne 0 ]
then
cd ..
echo Build failed at identity-framework
notify-send "Build failed at identity-framework"
exit 1
else