Skip to content

Instantly share code, notes, and snippets.

View mcortes19's full-sized avatar
🏠
Working from home

Marvin J. Cortés mcortes19

🏠
Working from home
View GitHub Profile
@mcortes19
mcortes19 / dependency_injection.md
Created August 6, 2020 04:02 — forked from ozin7/Controller.php
Drupal 8: Dependency injection in Service, Controller, Plugin.

Service

gurei.services.yml

services:
  gurei.company_manager:
    class: Drupal\gurei\Service\CompanyService
    arguments:
      - '@entity_type.manager'

CompanyService.php

@mcortes19
mcortes19 / custom_pane_panelizer.php
Created January 24, 2020 17:40 — forked from pcambra/custom_pane_panelizer.php
How to add a pane to a node with panelizer programmatically
<?php
// This code can be used in a hook_update_n to add a custom pane to an existing display in panelizer.
// Example variables used in the code below.
$nid = 1;
$pane_machine_name = 'my_example_custom_pane';
$region = 'content';
$position = 0;
@mcortes19
mcortes19 / RADIUS.md
Last active March 27, 2025 13:24
Set up RADIUS server with local, mysql and LDAP configuration

RADIUS SERVER

ROUTER/AP SETTINGS

  • SSID = redes
  • IP = 192.168.1.1/24
  • SECURITY MODE = WPA2 Enterprise
  • RADIUS SERVER = 192.168.1.254
@mcortes19
mcortes19 / Local development tools.md
Last active May 16, 2017 21:02
Tools to improve the local development on Mac

Mac OS X Setup Guide

Mac OS tool image

COMMAND LINE DEVELOPER TOOLS

  • Install Xcode
@mcortes19
mcortes19 / Compress and uncompress.md
Last active August 17, 2017 16:52
Ways to compress and uncompress files and foldes by terminal commands

COMPRESS AND UNCOMPRESS FILES AND FOLDERS BY TERMINAL

Files with extension GZ and ZIP

ZIP - CROSS PLATFORM