Skip to content

Instantly share code, notes, and snippets.

View numediaweb's full-sized avatar

Abdessamad (Almo) Idrissi numediaweb

View GitHub Profile
@numediaweb
numediaweb / memcached_memcache_php_74_macos_m1.md
Created August 16, 2024 16:56 — forked from AlexanderMatveev/memcached_memcache_php_74_macos_m1.md
Install memcached & memcache on php 7.4 macOS M1

Install memcached & memcache on php 7.4 macOS M1

1) Install memcached

brew install libmemcached
brew install zlib

Find installed locations:

@numediaweb
numediaweb / pre-commit.dist
Last active March 26, 2020 08:34
pre-commit hook to force Symfony coding standards
#!/usr/bin/env bash
#
# The built-in scripts are mostly shell and PERL scripts, but you
# can use any scripting language you like as long as it can be run
# as an executable.
#
# An example hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
<div class="row mb-5">
<div class="col-sm-12 col-lg-6 offset-lg-3">
<div class="video-responsive">
<iframe width="853" height="480" src="https://www.youtube.com/embed/oe24t9ILiN0" frameborder="0"
allowfullscreen=""></iframe>
</div>
</div>
</div>
@numediaweb
numediaweb / functions.php
Last active October 25, 2022 22:46
Filter WordPress admin side navigation menues
function filter_admin_menues() {
// If administrator then do nothing
if (current_user_can('activate_plugins')) return;
// Remove main menus
$main_menus_to_stay = array(
// Dashboard
'index.php',