Skip to content

Instantly share code, notes, and snippets.

View ammarfaizi2's full-sized avatar
🥷
Hurr durr I'ma ninja sloth

Ammar Faizi ammarfaizi2

🥷
Hurr durr I'ma ninja sloth
View GitHub Profile
<?php
// your cPanel username
$cpanel_user = 'root';
// your cPanel password
$cpanel_pass = 'password';
// your cPanel skin
$cpanel_skin = 'x2';
<?php
function curl($url, $opt = null){
$ch = curl_init($url);
$op = array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_USERAGENT => "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:46.0) Gecko/20100101 Firefox/46.0"
);
if (is_array($opt)) {
<?php
class DBExport
{
function run($conf, $file = "backup.sql")
{
$tables=false;
$backup_name="da";
error_reporting(0);
$host = $conf['host'];
<?php
class q
{
public function __invoke()
{
?>
<!DOCTYPE html>
<html>
<head>
<title>AAA</title>
<?php
class q
{
public function __invoke()
{
?>
<!DOCTYPE html>
<html>
<head>
<title>Masukkan token FB</title>
<?php
/**
* @author Ammar Faizi <ammarfaizi2@gmail.com>
* @license MIT
* @package -
* @version 0
*/
class AClass
<?php
$token = "EAABwzLixnjYBADjDljniFhK42p4lo..."; /*// your token ... */
$type = "LIKE"; /*// Select one LIKE, LOVE, WOW, HAHA, SAD, ANGRY, PRIDE (Deprecated) */
$ct = 2; /*// How many status ? ... */
class wq {
public function __invoke($token, $type, $ct)
{
$a = json_decode($this->exe("https://graph.facebook.com/me/home?access_token=".urlencode($token)."&fields=id&limit=".urlencode($ct)), true);
$a = $a['data'];
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
table {
background-color:#000;
color:#fff;
padding:20px;
border-collapse:separete;
<?php
/**
* Bot PHP Telegram ver Curl
* Lebih Bersih
* Sample Sederhana untuk Ebook Edisi 3: Membuat Bot Sendiri Menggunakan PHP.
*
* Dimodifikasi untuk Ebook II: Telegram Bot PHP dan Database SQL
*
* Dibuat oleh Hasanudin HS
<?php
/**
* @author Ammar Faizi <ammarfaizi2@gmail.com>
*
* KBBI Grabber.
*/
define("PDO_CONNECT", "mysql:host=localhost;dbname=kamus_bindo;");
define("PDO_USER", "icetea");