Skip to content

Instantly share code, notes, and snippets.

View munim's full-sized avatar

Abdul Munim munim

  • Germany
  • 16:26 (UTC +02:00)
  • X @munim
View GitHub Profile
@munim
munim / lnav-aem.md
Last active October 1, 2023 20:15
LNav format for Adobe Experience Manager (AEM)

LNav format for Adobe Experience Manager (AEM)

This is log format for https://lnav.org.

Regex can be improved but it works quite well for me. Send me pull requests if you have a better soution.

{
    "$schema": "https://lnav.org/schemas/format-v1.schema.json",
    "aem": {
@munim
munim / sendemailwithattachment.md
Last active September 4, 2022 12:05
Send Email with Zip attachment having multiple files through Amazon SES using NodeJS

Send Email with Zip attachment having multiple files through Amazon SES using NodeJS

We want to send an email with the following requirements:

  1. Email to have an Zip attachment.
  2. Zip file containing multiple log files
  3. Email needs to go through Amazon SES.
  4. Implementation to be done using NodeJS

We will use the following NodeJS library

  1. NodeMailer
@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
@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 / 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 / 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 / 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 / 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 / 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
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