This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Script to login as any user in Drupal without password. | |
* Put the script in root directory and use any of these formats. | |
* '/script.php?user=admin' | |
* '/script.php?uid=1' | |
* '/script.php' | |
* | |
* NEVER EVER EVER commit this to publicly accessible instance. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = "Programatic user create" | |
description = "A sample module to create user programaticaly." | |
core = 7.x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get -y install ruby1.9.3 cmake build-essential ruby-ffi curl libibus-1.0-dev libcurl4-openssl-dev libgtk-3-dev | |
cd ~ | |
mkdir varnam | |
cd varnam | |
wget http://download.savannah.gnu.org/releases/varnamproject/libvarnam/source/libvarnam-3.2.5.tar.gz | |
tar -xvf libvarnam-3.2.5.tar.gz | |
cd libvarnam-3.2.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function owl_menu_callback() { | |
$owlcarousel = array( | |
'#theme' => 'owlcarousel', | |
'#items' => array( | |
array('row' => '<img src="http://lorempixel.com/350/200" />'), // You can add any images/HTML here | |
array('row' => '<img src="http://lorempixel.com/351/201" />'), | |
array('row' => '<img src="http://lorempixel.com/352/202" />'), | |
array('row' => '<img src="http://lorempixel.com/353/203" />'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Topic for #fuel-discuss is: FUEL Monthly Meetup June 2014 : https://fedorahosted.org/fuel/wiki/Meetings/201406 | |
* Topic for #fuel-discuss set by rajeshr!rajesh@nat/redhat/x-kgbdvfsjkylcwomc at Wed Jun 11 10:26:45 2014 | |
<aneeshnl> hi | |
<apeter> hi aneeshnl | |
<ankitpatel> hi | |
<stultus> Good Morning :) | |
<ankitpatel> good morning everyone :) | |
<ankitpatel> 2 minutes too | |
<apeter> bsc, haha.. new nick :p | |
<ankitpatel> 1 minute to go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
""" | |
sin.py - program to find the sine of an angle by iteration | |
http://en.wikipedia.org/wiki/Sine#Series_definition | |
""" | |
# Isn't it obivious ? | |
from math import factorial, pi | |