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
mvn versions:update-properties -Dincludes=org.wso2.carbon.identity.*
@chalup
chalup / GagSsl.java
Created January 30, 2014 11:30
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 {
}
@Override
@danielestevez
danielestevez / gist:2044589
Last active June 30, 2024 09:04
GIT Commit to an existing Tag
1) Create a branch with the tag
git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
2) Include the fix manually if it's just a change ....
git add .
git ci -m "Fix included"
or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}