Skip to content

Instantly share code, notes, and snippets.

View vasanthk's full-sized avatar

Vasanth Krishnamoorthy vasanthk

View GitHub Profile
@vasanthk
vasanthk / gist:8346114
Last active January 2, 2016 18:49
IE in Ubuntu
http://askubuntu.com/questions/190425/how-to-install-internet-explorer-multiple-versions
Update your PlayonLinux in Ubuntu:
wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_precise.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux
@vasanthk
vasanthk / directory.inc
Created November 19, 2013 22:55
Huge Inserts
// Fields by type
$int_fields = [
'permanent' => check_plain( $form_state['values']['additional']['permanent_directory'] ),
'app_id' => $app_info->id,
'level_1_field_id' => check_plain( $form_state['values']['level1']['level1_field'] ),
'level_2_field_id' => check_plain( $form_state['values']['level2']['level2_field'] )
];
$string_fields = [
'permanent_empty_template' => $form_state['values']['additional']['permanent_empty_template'],
'name' => check_plain( strtolower($form_state['values']['level1']['name']) )