Skip to content

Instantly share code, notes, and snippets.

View ahimsauzi's full-sized avatar

ahimsauzi ahimsauzi

  • Amazon Web Services
  • Los Angeles, CA
View GitHub Profile
@remarkablemark
remarkablemark / Dockerfile
Last active April 24, 2024 13:40
Install node and npm with nvm using Docker.
# set the base image to Debian
# https://hub.docker.com/_/debian/
FROM debian:latest
# replace shell with bash so we can source files
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# update the repository sources list
# and install dependencies
RUN apt-get update \
@mortendk
mortendk / menu--main.html.twig
Created August 5, 2015 22:21
menu with first, last & count classes in twig Drupal8 template
{#
/**
* @file
* Theme override to display a menu.
*
* Available variables:
* - menu_name: The machine name of the menu.
* - items: A nested list of menu items. Each menu item contains:
* - attributes: HTML attributes for the menu item.
* - below: The menu item child items.
@jemond
jemond / example.drush.inc
Last active February 27, 2023 18:45
A custom Drush command to make your Drupal site ready for local development: http://www.thirdandgrove.com/blog/2013/08/custom-drush-command.html
<?php
/**
* @file
* Custom Drush integration.
*/
/**
* Implements hook_drush_command().
*
* @return
@gagarine
gagarine / template.tpl.php
Created July 29, 2012 21:11
Working with drupal theme_menu_tree
<?php
/**
* Theme_menu_tree doesn't provide any context information
* THIS SUCKS
* But you can use hook_block_view_alter to change the theme wrapper
* OUF!
*/
function MYTHEME_menu_tree(&$variables) {