Skip to content

Instantly share code, notes, and snippets.

View rodrigoaguilera's full-sized avatar
🚴‍♂️
Always learning

Rodrigo rodrigoaguilera

🚴‍♂️
Always learning
View GitHub Profile
@leymannx
leymannx / Drupal8HorizontalTabs.php
Last active February 16, 2024 10:10
How to create horizontal tabs programmatically in Drupal 8, requires Field Group module
<?php
// How to create horizontal tabs programmatically in Drupal 8, requires Field Group module
$form = array();
$form['my_field'] = array(
'#type' => 'horizontal_tabs',
'#tree' => TRUE,
'#prefix' => '<div id="unique-wrapper">',
'#suffix' => '</div>',
);
$items = array(
@Miouge1
Miouge1 / isdct-update.sh
Created July 14, 2016 13:54
Update all Intel DC SSD firmware on Debian/Ubuntu
#!/bin/sh
apt-get install unzip
apt-get -y install alien
mkdir isdct
cd isdct
wget https://downloadmirror.intel.com/23931/eng/DataCenterTool_3_0_0_Linux.zip
unzip DataCenterTool_3_0_0_Linux.zip
alien --to-deb isdct-3.0.0.400-15.x86_64.rpm
dpkg -i isdct_3.0.0.400-16_amd64.deb