source: http://www.dreamincode.net/forums/topic/78802-martyr2s-mega-project-ideas-list/ Re: Martyr2's Mega Project Ideas List! Post icon Posted 30 December 2008 - 04:23 PM
POPULAR Martyr2’s Mega Project List Created by Martyr2 (DIC Mentor)
Numbers
password | |
123456 | |
12345678 | |
1234 | |
qwerty | |
12345 | |
dragon | |
pussy | |
baseball | |
football |
<?php | |
error_reporting(-1); // reports all errors | |
ini_set("display_errors", "1"); // shows all errors | |
ini_set("log_errors", 1); | |
ini_set("error_log", "/tmp/php-error.log"); | |
?> | |
<?php | |
$conn = mysqli_connect($ht, $ur, $pd); | |
mysqli_select_db($conn, $db); | |
//foreach req, check if the column exists, otherwise create it | |
foreach($_POST as $k => $v){ | |
$key = trim(mysqli_real_escape_string($conn, $k)); |
<?php | |
class MM_Notifications { | |
private $usr_mentor; | |
private $usr_mentee; | |
private $mentor_action; | |
private $email_codes; | |
private $notice_type; | |
private $debug_email; |
<?php | |
// PRINT TAB ALIGNED COLUMNS | |
// %- and % are left and right aligns | |
$mask = "| %-30.30s | %10.10s | %10.10s |\n"; | |
printf($mask, 'Host' , 'Results', 'Share'); | |
printf($mask, $test_host, $total_results, $share_round); | |
source: http://www.dreamincode.net/forums/topic/78802-martyr2s-mega-project-ideas-list/ Re: Martyr2's Mega Project Ideas List! Post icon Posted 30 December 2008 - 04:23 PM
POPULAR Martyr2’s Mega Project List Created by Martyr2 (DIC Mentor)
Numbers
<?php | |
// if it's not a ISO8601 date string, skip it | |
if(stripos($v , "T") === false) continue; | |
$dateval = $v; | |
// create ISO8601 dateTime | |
$date = DateTime::createFromFormat(DateTime::ISO8601, $dateval); | |
// set to user's timezone | |
$date -> setTimeZone($dt_user_timezone); |
<?php | |
//returns a big old hunk of JSON from a non-private IG account page. | |
function scrape_insta($username) { | |
$insta_source = file_get_contents('http://instagram.com/'.$username); | |
$shards = explode('window._sharedData = ', $insta_source); | |
$insta_json = explode(';</script>', $shards[1]); | |
$insta_array = json_decode($insta_json[0], TRUE); | |
return $insta_array; | |
} |
<?php | |
/* | |
* title : simple instagram info fetcher | |
* | |
* author : shahril | |
* receipant : afif zafri | |
* date : 29-dis-2015 | |
*/ |
###### ~/.bash_profile ###### | |
alias a='vim ~/.bash_profile && source ~/.bash_profile' | |
alias gpp='git pull && git push' | |
# FIND PROCESS | |
function p(){ | |
ps aux | grep -i $1 | grep -v grep | |
} |