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 | |
// simple usage.. | |
echo get_wiki_summary_ms('php'); | |
/** | |
* Error Code :- | |
* 3 - search x dijumpai.. | |
* 4 - php gagal nk dptkan content dari wikipedia page.. | |
*/ |
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 | |
echo tahukah_anda(); | |
function tahukah_anda(){ | |
$rd = rand(1000,7000); | |
if($rd >= 1000 && $rd <= 2000){ | |
$year = '/Arkib/2008'; | |
}elseif($rd >= 2000 && $rd <= 3000){ | |
$year = '/Arkib/2009'; |
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 | |
echo twentyfourminute('2000', '2200'); // input in string | |
function twentyfourminute($first, $end){ | |
$total = 0; | |
if($first[0] == '0') $first = substr($first, 1); | |
if($end[0] == '0') $end = substr($end, 1); | |
if((intval($first) % 100) != 0){ | |
$total += 60 - (intval($first) % 100); |
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 | |
echo "\n Bulk File Renamer @ Shahril"; | |
$help_text = " | |
\r {$argv[0]} --dir C:\Music --pattern \"/\d{2} \-/\" --rename \"Change\" | |
\r Options :- | |
\r --dir <directory> : Directory of bulk file. | |
\r --pattern <regex> : Regex pattern to match. |
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 | |
hex_viewer('./test_file', 8); | |
function hex_viewer($File, $Length = 16) { | |
$handle = @fopen($File, 'r'); | |
if(!$handle) { | |
return 0; |
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 | |
// require getid3 | |
require_once('../getid3/getid3.php'); | |
$getID3 = new getID3; | |
echo "\n MP3 File Renamer @ Shahril"; | |
$help_text = " |
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
#======================================================================== | |
# Conky-Serdar | |
#---------------------------------------------------------------------- | |
#sudo apt-get install conky | |
#extract the zip file and move files to .conky in your home folder | |
#---------------------------------------------------------------------- | |
#Run(Terminal): | |
# conky -c ~/.conky/conkyrc | |
#---------------------------------------------------------------------- | |
#Autostart(Openbox): |
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
/* | |
here is solution for reverseme #4 php challenge | |
written using C, cuz wut? cuz im boringgg at dat time | |
here is the link for mentioned challenge : http://w3.tbd.my/thread-15160-post-175788.html#pid175788 | |
byehhh... | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> |
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
// Floating Point to IEEE 754 32-bit Converter | |
// this was written when i'm started to learn C | |
// code look suck, well, this shit is from 2 years ago :) (ahh unforgotten memories) | |
// hope you can learn somethings from this code | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <stdbool.h> // to use bool (c99 standard) |
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
// set of useful functions for manipulation integer in low level binary | |
// this was written when i'm started to learn C | |
// code look suck, well, this shit is from 2 years ago :) (ahh unforgotten memories) | |
// hope you can learn somethings from this code | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <stdint.h> |
OlderNewer