Skip to content

Instantly share code, notes, and snippets.

View arturu's full-sized avatar
🎵

Pietro Arturo Panetta arturu

🎵
View GitHub Profile
@AnnoyingTechnology
AnnoyingTechnology / download_filemaker_server_19_20_lts_ubuntu.md
Last active April 12, 2024 12:40
Download Filemaker 19.5 Server Ubuntu 18LTS
@sunapi386
sunapi386 / mount_encrypt_drive.md
Created March 23, 2019 00:51
How to mount encrypted drive with same volume group name

Background/Setup

  • I have two physical 1TB disks with identical setup.
  • Both are encrypted.
  • I unlocked and booted off one of them.
  • The other disk is still locked at this point.
  • I am using fish shell.

1. Identify which disk you want to unlock

@mtrimarchi
mtrimarchi / voip.py
Created December 5, 2018 12:51
Python Script VoIP TIM
# Credenziali voip TIM + Proxy IP
import sys
import random
import json
try:
import requests
except ImportError:
print ("ERRORE: Il modulo \"requests\" deve essere installato. Eseguire -> pip install requests")
raise SystemExit(0)
@teknoraver
teknoraver / getmaps.sh
Last active August 1, 2018 15:37
create map track video from Exif tags
#!/bin/sh
# getmap.sh - download static maps from Google Maps
# Copyright (C) 2018 Matteo Croce <mcroce@redhat.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@thejimbirch
thejimbirch / paragraph--carousel.html.twig
Created October 21, 2016 17:54
Drupal 8 Template for Bootstrap Paragraphs customized for Carousel.
@raphaellarrinaga
raphaellarrinaga / drupal_8_twig_cheatsheet.md
Last active July 20, 2023 21:21
[Drupal 8 Twig cheatsheet] #tags: drupal8, twig, cheatsheet

Drupal 8 Twig cheatsheet

Please note I created that sheet as a personal side note/draft and not everything is fully tested. There could be errors or better things to do. So if you spot something wrong or something that can be improved, feel free to comment below and I will do the changes.

Getting Drupal 8 field values in Twig

Image path: {{ file_url(content.field_name['#items'].entity.uri.value) }}