Skip to content

Instantly share code, notes, and snippets.

View ridho1991's full-sized avatar
🏠
Working from home

Mutasim Ridlo, S.Kom ridho1991

🏠
Working from home
View GitHub Profile
@ridho1991
ridho1991 / httpd-vhosts.conf
Created April 17, 2016 00:22
Custom Virtual Host untuk local domain
# Virtual Hosts
#
# Required modules: mod_log_config
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
@ridho1991
ridho1991 / api.php
Created March 13, 2015 03:00
Bing Keyword Suggest
<?php
function bing_suggest($query) {
$geturl = file_get_contents ( utf8_encode ( "http://api.bing.com/osjson.aspx?query=" . $query . "" ) );
$keywords = json_decode ( $geturl, 1 );
$suggest=array();
if(isset($keywords[0])) {
$z = 1;
foreach($keywords[1] as $keys) {
$suggest [] = $keys;
$z++;
@ridho1991
ridho1991 / api.php
Created March 10, 2015 12:32
Google Keyword Suggest
<?php
function google_suggest($query) {
$xml = simplexml_load_file ( utf8_encode ( "http://www.google.com/complete/search?output=toolbar&hl=en&q=" . $query . "" ) );
$suggest=array();
if (@$xml) {
foreach ( $xml->children () as $child ) {
foreach ( $child->suggestion->attributes () as $data ) {
$suggest [] = $data;
}
}
@ridho1991
ridho1991 / googletrends.php
Created March 10, 2015 02:05
Grab Google Trends Seluruh Negara
<html>
<head>
<title>All Countries</title>
<meta charset="UTF-8">
</head>
<body>
<?php
require_once('includes.php');
require_once('countries.php');
ini_set('max_execution_time', 0);
@ridho1991
ridho1991 / googletrend.php
Created March 10, 2015 02:04
Grab Google Trends Negara Tertentu
<html>
<head>
<title><?php echo $_GET['name'];;?></title>
<meta charset="UTF-8">
</head>
<body>
<?php
require_once('includes.php');
ini_set('max_execution_time', 0);
ini_set('memory_limit', '999M');
@ridho1991
ridho1991 / includes.php
Created March 10, 2015 02:03
API Google Trends
<?php
function fetch_trends($country_code)
{
$trendsurl = "http://www.google.com/trends/hottrends/atom/hourly?pn=".$country_code."";
$c = curl_init($trendsurl);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
$responsedata = curl_exec($c);
curl_close($c);
return parse_trend_feed( $responsedata );
}
@ridho1991
ridho1991 / countries.php
Created March 10, 2015 02:02
Data Countries
<?php
$country_code=array('p30','p8','p44','p41','p18','p13','p38','p32','p43','p49','p29','p50','p16','p15','p48','p10','p45','p3','p19','p6','p27','p4','p37','p34','p21','p17','p52','p51','p25','p31','p47','p39','p14','p36','p5','p40','p23','p26','p42','p46','p12','p33','p24','p35','p9','p1','p28');
$country_name=array(
'Argentina','Australia','Austria','Belgium','Brazil','Canada','Chile','Colombia','Czech Republic','Denmark','Egypt','Finland','France','Germany','Greece','Hong Kong','Hungary','India','Indonesia','Israel','Italy','Japan','Kenya','Malaysia','Mexico','Netherlands','Nigeria','Norway','Philippines','Poland','Portugal','Romania','Russia','Saudi Arabia','Singapore','South Africa','South Korea','Spain','Sweden','Switzerland','Taiwan','Thailand','Turkey','Ukraine','United Kingdom','United States','Vietnam');
?>
@ridho1991
ridho1991 / index.php
Created March 10, 2015 01:44
Home Page Grab Google Trends
<html>
<head>
<meta charset="UTF-8">
<title>Grab Google Trends</title>
</head>
<body>
<?php
require_once('countries.php');
echo '<ol>';
masuk ke Cpanel masing" upload file .APK Video Engine For android di directory domain
kaya SC di bawah ini
http://prntscr.com/5e1lyy
buka file Mobile_Detect.php yang ada pada Youtube Downloader/MobileDetect/Mobile_Detect.php yang sudah agan download di member area dojo,
atau bisa agan copy yg ini