Skip to content

Instantly share code, notes, and snippets.


Abdessabour Moutik moutikabdessabour

View GitHub Profile
x100ex / icu4c.rb
Created September 20, 2020 15:51
patched homebrew formula to install icu4c on macos 10.12.6
View icu4c.rb
class Icu4c < Formula
desc "C/C++ and Java libraries for Unicode and globalization"
homepage ""
url ""
version "67.1"
sha256 "94a80cd6f251a53bd2a997f6f1b5ac6653fe791dfab66e1eb0227740fb86d5dc"
license "ICU"
livecheck do
url ""
nickferrando / imagemagick-ubuntu.txt
Last active June 5, 2023 17:30
Install ImageMagick with JPG, PNG and TIFF Delegates - Ubuntu (20.04)
View imagemagick-ubuntu.txt
#These are the steps required in order to Install ImageMagick with JPG, PNG and TIFF delegates.
sudo apt-get update
#Install Build-Essential in order to configure and make the final Install
sudo apt-get install build-essential
#libjpg62-dev required in order to work with basic JPG files
alejovicu / python3.7.2-selenium-alpine3.8-dockerfile
Last active May 11, 2022 12:35
Docker Selenium Webdriver with Python3 in alpine 3.8
View python3.7.2-selenium-alpine3.8-dockerfile
# Objective: Running selenium python scripts in alpine without grid
FROM python:3.7.2-alpine3.8
RUN pip install selenium
RUN apk add chromium
RUN apk add chromium-chromedriver
ENV CHROME_BIN=/usr/bin/chromium-browser \
parmentf /
Last active June 5, 2023 13:02
Git Commit message Emoji
DanHerbert /
Last active May 12, 2023 07:45
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

READ THIS Very Important Update

This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.

I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.


Installing and configuring dwm on OS X

  1. Install (it's on the OS X install disk or something.)

  2. Install dwm. You have to customize config.h a bit:

    1. Replace { MODKEY|ShiftMask, XK_q, quit, {0} }, with { MODKEY|ControlMask, XK_q, quit, {0} }, to avoid colliding with the Log Out shortcut in the Apple menu.

    If you install dwm from Homebrew, brew install dwm, this is done automatically.