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 | |
/** | |
* Delete directory with content in it | |
* @author Pilot | |
* @param string $directory Directory to delete | |
*/ | |
function del_dir($directory) { | |
$content = scandir($directory); | |
unset($content[0], $content[1]); |
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 | |
/** | |
* Create thumbnail from image file. | |
* <p>Supported format ".jpg", ".jpeg", ".png", ".gif"</p> | |
* @param string $directory | |
* Path to source directory | |
* @param string $image | |
* name of image file including extention | |
* @param string $destination | |
* path to where thumb image will be saved |
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
<html> | |
<head> | |
<title>Socket Chat</title> | |
<style type="text/css"> | |
#input { | |
width: 200px; | |
} | |
#messages { | |
position: fixed; | |
top: 40px; |
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
[user] | |
name = "" | |
email = "" | |
[alias] | |
co = checkout | |
br = branch | |
ca = commit -am | |
st = status | |
lg = log --oneline --all --graph --decorate | |
al = "!gitk --all&" |
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 | |
$doc = new DOMDocument('1.0'); | |
$doc->formatOutput = true; | |
$doc->preserveWhiteSpace = false; | |
@$doc->load('sitemap.xml') or die('failed to load file'); //load xml file | |
$t1 = $doc->createElement('url'); | |
$loc = $doc->createElement('loc', "http://www." . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); | |
$t1->appendChild($loc); |
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 | |
/* | |
* Copy package options from below link to option.html | |
* http://203.147.88.14/24online/webpages/actualclientrenewal.jsp | |
*/ | |
$data = file_get_contents("options.html"); | |
// echo $data; | |
$pattrnA = "/VALUE =\"(.+)\"/"; | |
preg_match_all($pattrnA, $data, $ids); |
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 | |
#ishan dot karve at gmail dot com | |
#Script to emulate HTTP Client login method for 24Online | |
#Oct 2012, Jamnagar, Gujarat | |
#ver 0.2 alpha | |
#Per User Client | |
#Change variables below to reflect ur setup | |
#Change Log | |
# Better program loop | |
# Coloured debug |
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/env python | |
from ctypes import windll, Structure, c_ulong, byref | |
class get_maus_pp(Structure): | |
_fields_ = [("x", c_ulong), ("y", c_ulong)] | |
mpp = get_maus_pp() | |
while True: |
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 | |
/** | |
* Woocommerce - count specific product quantity bought by customer in all orders | |
* | |
* @param (int) $product_id | |
* @return int|bool | |
* @author devpilot | |
**/ | |
function product_qty_bought($product_id){ |
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 | |
/** | |
* @package bc_exchange | |
* @version 1.2 | |
*/ | |
/* | |
Plugin Name: BC Exchange | |
Plugin URI: https://github.com/devpilot/ | |
Description: Get BTC Exchange rate from <a href="https://blockchain.info/">Blockchain</a> | |
Author: DevPilot |
OlderNewer