Skip to content

Instantly share code, notes, and snippets.

View itsbalamurali's full-sized avatar
🎯
Focusing

Balamurali Pandranki itsbalamurali

🎯
Focusing
View GitHub Profile
<?php
date_default_timezone_set('Europe/London'); // Set this to your local timezone - http://www.php.net/manual/en/timezones.php
/**
* The root directory where the repos live.
*
* @var string
*/
$root_dir = '/your/root/dir/';
@itsbalamurali
itsbalamurali / ascii.txt
Last active March 25, 2025 06:27
ASCII Art ;)
_ __ _ __ __ __
| | / /___ _____ __ _____ / | / /__ / /__ ______ _____/ /_______
| | / / __ `/ __ `/ | / / _ \ / |/ / _ \/ __/ | /| / / __ \/ ___/ //_/ ___/
| |/ / /_/ / /_/ /| |/ / __/ / /| / __/ /_ | |/ |/ / /_/ / / / ,< (__ )
|___/\__,_/\__,_/ |___/\___/ /_/ |_/\___/\__/ |__/|__/\____/_/ /_/|_/____/
______ ______ __ __
/_ __/__ ____ _____ ___ / ____/___ / /_ ___ ________ ____ ____/ /___
/ / / _ \/ __ `/ __ `__ \ / / / __ \/ __ \/ _ \/ ___/ _ \/ __ \/ __ /_ /
/ / / __/ /_/ / / / / / / / /___/ /_/ / / / / __/ / / __/ / / / /_/ / / /_
@itsbalamurali
itsbalamurali / output
Created January 9, 2014 07:23
DBD::Oracle Successfull compile out put
[root@freelancer DBD-Oracle-1.68]# perl Makefile.PL
Multiple copies of Driver.xst found in: /usr/local/lib64/perl5/auto/DBI/ /usr/lib64/perl5/auto/DBI/ at Makefile.PL line 39
Using DBI 1.63 (for perl 5.010001 on x86_64-linux-thread-multi) installed in /usr/local/lib64/perl5/auto/DBI/
Configuring DBD::Oracle for perl 5.010001 on linux (x86_64-linux-thread-multi)
Remember to actually *READ* the README file! Especially if you have any problems.
Installing on a linux, Ver#2.6
Using Oracle in /usr/lib/oracle/11.2/client64
@itsbalamurali
itsbalamurali / base.rb
Created December 31, 2013 08:25 — forked from bensie/base.rb
require "sinatra/base"
require "sinatra/namespace"
require "multi_json"
require "api/authentication"
require "api/error_handling"
require "api/pagination"
module Api
class Base < ::Sinatra::Base
wget https://github.com/downloads/github/hubot/hubot-1.1.9.tar.gz
tar zxvf hubot-*.tar.gz
cd hubot
vim Procfile
app: bin/hubot -a gtalk -n Hubot
vim bin/hubot
#npm install
#heroku logs will be more silence the error if remove the npm install from bin/hubot
git init
/*
* L.TileLayer is used for standard xyz-numbered tile layers.
*/
L.Google = L.Class.extend({
includes: L.Mixin.Events,
options: {
minZoom: 0,
maxZoom: 18,
tileSize: 256,
ifconfig wlan0 up
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*/([a-zA-Z0-9_-]+)|([a-zA-Z0-9_-]+))$ ./profile.php?username=$1 [L]
@itsbalamurali
itsbalamurali / getip.php
Created November 23, 2013 07:29
Get Users IP Address Accounts for proxies:
<?php
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
$ip=$_SERVER['HTTP_CLIENT_IP'];
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip=$_SERVER['REMOTE_ADDR'];
}
?>