This file contains hidden or 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 | |
/** | |
* 1. create project at https://console.developers.google.com/project | |
* 2. enable 'Analytics API' under 'APIs & auth' / APIs | |
* 3. create 'NEW CLIENT ID' (OAuth client) under 'APIs & auth' / Credentials | |
* i. select 'Service account' | |
* ii. save generated key file to 'key.p12' | |
* iii. remember CLIENT ID | |
* 4. under GA account add 'Read & Analyze' access to newly generated email (access to GA Account not Property nor View) |
This file contains hidden or 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 | |
/** | |
* This is a simple script to invite users to your slack | |
* Replace the subdomain and token in the variables below. | |
* Upload a logo called "logo.png" to the same directory for your group | |
* Upload a logo called "slack.png" to the same directory for slack | |
*/ | |
define('SUBDOMAIN','{YOUR SUBDOMAIN HERE}'); | |
define('TOKEN','{YOUR API TOKEN HERE}'); | |
?> |
This file contains hidden or 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>Grill</title> | |
<style> | |
body { | |
background: #f7f7f7; | |
width: 500px; | |
margin: 0 auto; | |
font-family: Arial, Helvetica, sans-serif; | |
font-size: 1.1em; |
This file contains hidden or 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 | |
/** | |
* PHP IRC Server - PHelPsIRCd | |
* Why? Why not! | |
* @author Ben Phelps | |
* @version 2 | |
* @copyright BenPhelps.me, 15 June, 2011 | |
* @package PHelPsIRCd |
This file contains hidden or 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 | |
// Uses https://github.com/Navarr/Sockets | |
use Navarr\Socket\Socket; | |
use Navarr\Socket\Server; | |
class WebServer extends Server | |
{ | |
protected $clientMap; |
This file contains hidden or 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 | |
// Let's define some important variables! | |
$logfile = "/var/log/dns_logger"; | |
$gateway = "10.1.1.40"; | |
$date_format = "n/j/Y H:i:s"; | |
// We are now going to start a UDP Socket Server | |
// This is going to listen on port 53, DNS | |
$socket = stream_socket_server("udp://$gateway:53", $errno, $errstr, STREAM_SERVER_BIND); |
This file contains hidden or 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 | |
/** | |
* DNS Server Class | |
* | |
* @author Jonathan Creasy <[email protected]> | |
* @version 0.1.0 | |
* @package Dns | |
* @subpackage Server | |
* @url http://www.phpclasses.org/browse/file/18217.html | |
* This code is released into the public domain. Feel free to use it and distribute it however you wish. |
This file contains hidden or 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_once('attachment.class.php'); | |
/** | |
* Fast Mime Mail parser Class using PHP's MailParse Extension | |
* @author [email protected] | |
* @url http://www.fijiwebdesign.com/ | |
* @license http://creativecommons.org/licenses/by-sa/3.0/us/ | |
* @version $Id$ |
This file contains hidden or 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 | |
/* | |
BOT PENGANTAR | |
Materi EBOOK: Membuat Sendiri Bot Telegram dengan PHP | |
Ebook live http://telegram.banghasan.com/ | |
oleh: bang Hasan HS |
This file contains hidden or 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 | |
/** | |
* Bot PHP Telegram ver Curl | |
* Lebih Bersih | |
* Sample Sederhana untuk Ebook Edisi 3: Membuat Bot Sendiri Menggunakan PHP | |
* | |
* Dibuat oleh Hasanudin HS | |
* @hasanudinhs di Telegram dan Twitter | |
* Ebook live http://telegram.banghasan.com/ |