Skip to content

Instantly share code, notes, and snippets.

View munim's full-sized avatar

Abdul Munim munim

  • Germany
  • 00:13 (UTC +02:00)
  • X @munim
View GitHub Profile
@munim
munim / youtube-dl-download-pluralsight.md
Last active July 28, 2022 21:19
youtube-dl to download pluralsight videos

Download Plural Sight videos

Software required:

youtube-dl

After installation and putting the youtube-dl in PATH

youtube-dl \

How to debug AEM/CQ5 using Eclipse/IntelliJ

Run AEM/CQ5 instance in debug mode using the following command

java -Xdebug -Xrunjdwp:transport=dt_socket,address=58242,suspend=n,server=y -Xmx1024m -jar .\cq5-author-p4502.jar -nofork

@munim
munim / README.md
Last active May 31, 2016 08:17
Windows script to change network adapter IP to static/DHCP

Change IP address using batch script in Windows 7 and above

Create a batch file, put the below script in and run it as administrator.

Static IP

@echo "Setting static IP."
@netsh interface ip set address "Ethernet0" static 192.168.1.100 255.255.255.0 192.168.1.1
@echo "Setting DNS."
@netsh interface ip set dns "Ethernet0" static 8.8.8.8
@munim
munim / set-ip.md
Last active September 23, 2023 13:46
Set network IP Static/DHCP using Powershell

#How to set network IP Static/DHCP using Powershell in Windows 8 and above

This is a powershell script to set IP address for a network adapter using Powershell and restart the network adapter after it completes. Follow the below steps and detailed information about the parameters below.

Create a ps1 file using the below code

# Author: Munim (me@munim.net)
@munim
munim / README.md
Created October 26, 2016 09:22
AEM CQ5 Search for property exists

Search for property exists in AEM CQ5 JCR

If you want find out that a property exists in JCR, then use the query debug tool with the following query

type=nt:unstructured
path=/content/bt/business
property=formname
property.operation=exists
p.hits=full

p.limit=-1

@munim
munim / README.md
Last active November 25, 2016 15:05
Get jQuery version

How to get jQuery version

The easiest way to get jQuery version after jQuery.fn.version was deprecated is as follows:

jQuery().jquery
@munim
munim / stop_aem_instance.md
Created July 20, 2017 11:12
Best way to stop AEM/CQ5 instance

Best way to stop AEM/CQ5 instance

In many scenarios, we face trouble to stop AEM/CQ5 instances, even after stopping the service, the java instance keeps on running. The best way to stop an AEM instance is through the following command

[priv_user@some-server home_directory]# pid=`fuser -k -TERM 450{2,3}/tcp` && cd /mnt/crx/*/crx-quickstart && time tail -n0 -f --pid $pid logs/error.log && mv -v logs/error.log{,.`date +%F+%R`} && find launchpad/felix -name digraph -ls -delete
@munim
munim / docker_start_stopped_container_in_interactive_mode.md
Last active October 20, 2023 06:51
Start a stopped docker container in bash/shell interactive mode

Start a stopped docker container in bash/shell interactive mode

For instance, you have just pulled a CentOS or Ubuntu image using docker pull centos:latest or docker pull ubuntu:latest.

Your immediate command would be

# docker run -it centos:latest
# docker ps -a
@munim
munim / trial.md
Last active November 30, 2018 11:00 — forked from satish-setty/trial.md
Beyond Compare 4 license for Linux

Beyond Compare 4.x

Licensed to: ASIO Allsoftinone Quantity: 1 user Serial number: 1822-9597 License type: Pro Edition for Linux

First delete away trial mode:

sudo sed -i "s/keexjEP3t4Mue23hrnuPtY4TdcsqNiJL-5174TsUdLmJSIXKfG2NGPwBL6vnRPddT7tH29qpkneX63DO9ECSPE9rzY1zhThHERg8lHM9IBFT+rVuiY823aQJuqzxCKIE1bcDqM4wgW01FH6oCBP1G4ub01xmb4BGSUG6ZrjxWHJyNLyIlGvOhoY2HAYzEtzYGwxFZn2JZ66o4RONkXjX0DF9EzsdUef3UAS+JQ+fCYReLawdjEe6tXCv88GKaaPKWxCeaUL9PejICQgRQOLGOZtZQkLgAelrOtehxz5ANOOqCaJgy2mJLQVLM5SJ9Dli909c5ybvEhVmIC0dc9dWH+/N9KmiLVlKMU7RJqnE+WXEEPI1SgglmfmLc1yVH7dqBb9ehOoKG9UE+HAE1YvH1XX2XVGeEqYUY-Tsk7YBTz0WpSpoYyPgx6Iki5KLtQ5G-aKP9eysnkuOAkrvHU8bLbGtZteGwJarev03PhfCioJL4OSqsmQGEvDbHFEbNl1qJtdwEriR+VNZts9vNNLk7UGfeNwIiqpxjk4Mn09nmSd8FhM4ifvcaIbNCRoMPGl6KU12iseSe+w+1kFsLhX+OhQM8WXcWV10cGqBzQE9OqOLUcg9n0krrR3KrohstS9smTwEx9olyLYppvC0p5i7dAx2deWvM1ZxKNs0BvcXGukR+/g" /usr/lib/beyondcompare/BCompare
@munim
munim / tastaturnavigation-windrive.md
Last active September 29, 2021 11:22
Tastaturnavigation für den WINDRIVE Theory-Trainer

Tastaturnavigation für den WINDRIVE Theory-Trainer

Mit Hilfe dieses Skripts und eines Chrome-Erweiterungs-Plugins können Sie die grundlegende Tastaturnavigation aktivieren, während Sie Probeprüfungen durchführen.

Tastatürkürzel:

Beschreibung Shortcut
Antwort 1 1
Antwort 2 2
Antwort 3 3