Skip to content

Instantly share code, notes, and snippets.

View mnadeem's full-sized avatar

Nadeem Mohammad mnadeem

View GitHub Profile
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class SVNCMSystem
{
private static final String RECENT_CHANGES_FILES = "RecentChanges";
private static final String ERROR_LOGS_FILES = "ErrorLogs";
private static final String PROPERTIES_FILES = ".xml";
private static final String TXT_FILES = ".txt";
@mnadeem
mnadeem / custom-jenkins-gui
Created December 3, 2013 16:47
Steps to customize the Jenkins graphical user interface
# Login
core/src/main/resources/jenkins/model/Jenkins/login.jelly
# Main page
core/src/main/resources/lib/layout/layout.jelly
core/src/main/resources/hudson/views/BuildButtonColumn/column.jelly
core/src/main/resources/lib/hudson/iconSize.jelly
core/src/main/resources/lib/hudson/rssBar.jelly
# Build
@mnadeem
mnadeem / ProxiedJetty.java
Last active July 5, 2018 10:34
Simple Jetty Proxy
package com.nadeem.app;
import java.lang.management.ManagementFactory;
import javax.management.MBeanServer;
import org.apache.wicket.util.time.Duration;
import org.eclipse.jetty.jmx.MBeanContainer;
import org.eclipse.jetty.server.Handler;
import org.eclipse.jetty.server.Server;
@mnadeem
mnadeem / ProxxyJetty.xml
Last active January 4, 2016 06:18
ProxiedJetty.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
<Configure id="server" class="org.eclipse.jetty.server.Server">
<New id="ServletContextHandler" class="org.eclipse.jetty.servlet.ServletContextHandler">
<Set name="servletHandler">
<New id="servletHandler" class="org.eclipse.jetty.servlet.ServletHandler">
<Call id="proxyHolder" name="addServletWithMapping">
<Arg>org.eclipse.jetty.servlets.ProxyServlet$Transparent</Arg>
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.security.KeyManagementException;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.List;
import javax.net.ssl.SSLContext;
@mnadeem
mnadeem / keycloak-dependencis.xml
Created January 13, 2015 21:43
keycloak war dependencies
<dependencies>
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-dependencies-server-all</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\usepackage{algorithm}
\usepackage{algpseudocode}
\begin{document}
% Insert the algorithm
@mnadeem
mnadeem / gpg-full-gen-key.ps1
Last active January 5, 2023 19:10
GPG full key gen
C:\Users\Nadeem>gpg --full-gen-key
gpg (GnuPG) 2.1.15; Copyright (C) 2016 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
gpg: keybox 'C:/Users/Nadeem/AppData/Roaming/gnupg/pubring.kbx' created
Please select what kind of key you want:
(1) RSA and RSA (default)
(2) DSA and Elgamal
(3) DSA (sign only)
@mnadeem
mnadeem / gpg-verify.ps1
Created August 30, 2016 13:53
GPG Verify
C:\Users\Nadeem>gpg --version
gpg (GnuPG) 2.1.15
libgcrypt 1.7.3
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: C:/Users/Nadeem/AppData/Roaming/gnupg
Supported algorithms:
@mnadeem
mnadeem / maven-deploy-plugin.xml
Created August 30, 2016 13:59
Maven Deploy Plugin
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>