Skip to content

Instantly share code, notes, and snippets.

View JayKandari's full-sized avatar
:octocat:

Jaideep Singh Kandari JayKandari

:octocat:
View GitHub Profile
@JayKandari
JayKandari / gist:82ec7f3d96d191554d46c9cac8eb5eb1
Created March 4, 2021 09:11
Drush pm:list filter - Using regular expression to filter specific modules to show in `drush pml` command.
drush pml --filter='name~=#(mymodule1|mymodule2|mymodule3)#i'
# Output:
# -------------- ------------------------------------------- ---------- ---------
# Package Name Status Version
# -------------- ------------------------------------------- ---------- ---------
# My package My Module (mymodule1) Disabled
# Another pack Another module (mymodule2) Enabled
# My package My Module (mymodule3) Disabled
@JayKandari
JayKandari / link-message.php
Created November 4, 2020 08:21
Drupal 8 - Create a Link inside Drupal message

Keybase proof

I hereby claim:

  • I am jaykandari on github.
  • I am jaykandari (https://keybase.io/jaykandari) on keybase.
  • I have a public key ASAnD9WGXEFLdtnlhMB4rqpbCq1ftlVR8XJ5xGixwMaXWgo

To claim this, I am signing this object:

@JayKandari
JayKandari / howto.md
Created February 26, 2016 15:50 — forked from leomelzer/howto.md
Installing ImageMagick & Ghostscript on Ubuntu
  1. You have Ghostscript installed, right? Otherwise sudo apt-get install ghostscript
  2. This is important and installs the headers (iapi.h etc) which are required but don't come with the default Ghostscript package: sudo apt-get install libgs-dev
  3. I also needed sudo apt-get install gs-esp
  4. For me the pre compiled version of ImageMagick never accepted Ghostscript, so let's remove it: sudo apt-get --purge remove imagemagick
  5. Get the source of ImageMagick, untar it, cd ImageMagick-xx
  6. ./configure --with-gslib=yes [and what else you need]
  7. Confirm in the output near the bottom gslib yes yes and not gslib yes no
  8. make
  9. make install
  10. Run convert -list configure | grep DELEGATES => DELEGATES bzlib djvu freetype gs jpeg jng jp2 lcms png tiff x11 xml zlib