Skip to content

Instantly share code, notes, and snippets.

View anishsheela's full-sized avatar

Anish Sheela anishsheela

  • Kerala, India
  • 19:03 (UTC +05:30)
View GitHub Profile
@anishsheela
anishsheela / drupal-login.php
Created August 18, 2016 09:59
Drupal script to login without password
<?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.
@anishsheela
anishsheela / user_create.info
Last active February 29, 2016 10:11
Programatically create user in Drupal 7
name = "Programatic user create"
description = "A sample module to create user programaticaly."
core = 7.x
@anishsheela
anishsheela / varnam_install.sh
Created February 3, 2016 11:28
Varnam Project Install Script for ubuntu & debian (without corpus)
#!/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
@anishsheela
anishsheela / drupal_owl_carousel.php
Last active August 29, 2015 14:23
Drupal Owl Carousel using theme function or render array
@anishsheela
anishsheela / fuel-monthly-irc-june-2014
Last active August 29, 2015 14:02
IRC Log for Fuel Monthly meeting - June 2014
* 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
@anishsheela
anishsheela / sin.py
Created March 24, 2013 16:03
sin.py - program to find the sine of an angle by iteration http://en.wikipedia.org/wiki/Sine#Series_definition
#!/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