Skip to content

Instantly share code, notes, and snippets.

View oritromax's full-sized avatar
💭
Working !

Oritro Ahmed oritromax

💭
Working !
View GitHub Profile
@oritromax
oritromax / imageresize.function.php
Last active October 10, 2015 06:07
A Simple Image Resizer Function Using PHP
<?php
//Simple Image Resizing Script Using PHP- Oritro Ahmed
// [www.oritro.com]
// > Require GD library 2.x
// $image is the image file you want to resize
// $type is the type of image file, this function support image/jpeg, image/gif, image/png
// $dest is the Destination of the Generated image
@oritromax
oritromax / fetch.php
Created September 5, 2012 22:25
A simple Function to Fetch Webpage Title and Description And Excerpt
<?php
// The Use of fetcher.function.php - Oritro Ahmed
//[www.oritro.com]
//Filename: fetcher.php
//Usefull for Link Shortener, link generator, Backlink generator
// A part Of Tankz Easy PHP Use Scripts
$url = 'http://www.oritro.com/';
$content = file_get_contents($url);
@oritromax
oritromax / SmtpClass.php
Created September 29, 2012 22:07
PHP Mail Using SMTP
<?php
class SMTPClient
{
// A function for Setting up SMTP
function SMTPClient ($SmtpServer, $SmtpPort, $SmtpUser, $SmtpPass, $from, $to, $subject, $body)
{
$this->SmtpServer = $SmtpServer;
$this->SmtpUser = base64_encode ($SmtpUser);
$this->SmtpPass = base64_encode ($SmtpPass);
@oritromax
oritromax / db.php
Created November 9, 2012 20:05
PHP Secure Form Project-Oritro Ahmed
<?php
// PHP Simple Secure Form Project- Oritro Ahmed
// 11 November, 2012
// Released Under Mozilla Public license (http://www.mozilla.org/MPL/2.0/)
// We are using some Constant to work easily everywhere
define('DB_HOST', 'localhost'); // Database host
define('DB_USER', 'root'); // Database User
define('DB_PASSWORD', ''); // Database User Password
define('DB_DATABASE', 'secureform'); // Database Name
@oritromax
oritromax / index.html
Created November 12, 2012 09:24
HTML test
<html>
<head>
<title> Test </title>
</head>
<body>
<h1> test </h1>
@oritromax
oritromax / layout.html
Created January 6, 2013 14:04
A Wordpress theme Development Tutorial
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head>
<title>Oritro New theme!</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
body{
background-color:#dc8;
font-size:16px;
margin:0;
@oritromax
oritromax / download.php
Created January 28, 2013 23:39
A simple PHP file Downloader
<?php
// Main Script by: Armand Niculescu ( http://www.richnetapps.com/php-download-script-with-resume-option/)
// Re-Developed by Oritro Ahmed ( http://facebook.com/theoritro)
// This will Stop Showing Any Error MSG
@ini_set('error_reporting', E_ALL & ~ E_NOTICE);
//This will turn off Server Side Compression.
@apache_setenv('no-gzip', 1);
@ini_set('zlib.output_compression', 'Off');
@oritromax
oritromax / function.php
Created March 6, 2013 01:08
Wordpress Tricks-1
<?php
function gist_shortcode($atts) {
return sprintf(
'<script src="https://gist.github.com/%s.js%s"></script>',
$atts['id'],
$atts['file'] ? '?file=' . $atts['file'] : ''
);
} add_shortcode('gist','gist_shortcode');
function
@oritromax
oritromax / wp-tricks-2-1
Created March 6, 2013 01:24
All Wordpress Tricks Related with login page
function custom_login_logo() {
echo '<style type="text/css">h1 a { background: url(http://www.abcd.com/image.png) 50% 50% no-repeat !important; }</style>';
}
add_action('login_head', 'custom_login_logo');

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.