Skip to content

Instantly share code, notes, and snippets.

View toleillo's full-sized avatar

Juan Pastor toleillo

View GitHub Profile
@magnetikonline
magnetikonline / README.md
Last active March 14, 2024 22:48
IE 7/8/9/10/11 Virtual machines from Microsoft - Linux w/VirtualBox installation notes.
@jedihe
jedihe / modernIE-downloader.sh
Created July 13, 2013 14:50
Download all VirtualBox VMs from modern IE, for use on a Linux host.
#!/bin/bash
### IE7 - Vista
mkdir -p ~/modernIE-vms/ie7vista
cd ~/modernIE-vms/ie7vista
wget http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/Linux/IE7_Vista/IE7.Vista.For.LinuxVirtualBox.part1.sfx
wget http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/Linux/IE7_Vista/IE7.Vista.For.LinuxVirtualBox.part2.rar
wget http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/Linux/IE7_Vista/IE7.Vista.For.LinuxVirtualBox.part3.rar
wget http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/Linux/IE7_Vista/IE7.Vista.For.LinuxVirtualBox.part4.rar
wget http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/Linux/IE7_Vista/IE7.Vista.For.LinuxVirtualBox.part5.rar
@rmatil
rmatil / gist:8d21620c11039a442964
Created March 25, 2015 13:39
Connect MySQL database in Vagrant VM from Host machine

Connecting to Vagrant VM MySQL database from host

This gist shows how to connect to your vagrant MySQL database from the host machine.

Change Address Binding from MySQL

  • Connect to vagrant using vagrant ssh
  • Edit file /etc/mysql/my.cnf:
    • Change parameter bind-address to 0.0.0.0 to allow all incoming connection attempts
@leahtard
leahtard / node.twig.html
Last active June 9, 2022 18:32
Get file url in node for Drupal 8 twig template
{# Get URL of single file field #}
{{ node.field_file.entity.uri.value }}
{# Get URL of multi file field #}
{{ node.field_file['#items'].entity.uri.value }}
{# Trun into link #}
{{ file_url(node.field_file.entity.uri.value) }}
{# Check if there is at least one value #}