Skip to content

Instantly share code, notes, and snippets.

View i-tabu's full-sized avatar
😎

Tabu i-tabu

😎
View GitHub Profile
@i-tabu
i-tabu / download.php
Last active January 31, 2024 13:46
Listclean PHP file download example
<?php
$list_id = 37485;
$type = 'dirty';//it can be 'clean' OR 'unknown'
$url = 'https://api.listclean.xyz/v1/downloads/' . $list_id . '/' . $type . '?X-Auth-Token=' . YOUR_API_KEY;
$filename = 'download_dirty.csv';
if (file_put_contents($filename, file_get_contents($url))) {
<?php
try{
$url = "https://api.listclean.xyz/v1/";
$endpoint = 'verify/email/';
$api_key = YOUR_API_KEY;
var nodemailer = require('nodemailer');
//below var smtpTransport not required for Nodemailer version equal or below v0.7.1
var smtpTransport = require("nodemailer-smtp-transport");
// Create a SMTP transport object
var transport = nodemailer.createTransport(smtpTransport( {
host: "smtp.pepipost.com",
port: 2525,
auth: {
user: "yoursmtpusername",
@i-tabu
i-tabu / tmux.md
Created September 6, 2016 17:25 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

<?php
/**
CREATE TABLE `invitees` (
`email` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`sent` tinyint(1) NOT NULL DEFAULT '0',
`remarks` text NOT NULL,
`group` varchar(15) DEFAULT NULL,
`lastname` varchar(255) DEFAULT NULL,
@i-tabu
i-tabu / ip_auth.php
Last active June 27, 2016 05:19
With the help of this static class, one can authenticate ip by providing, one or more allowed ips, ip pattern or ip CIDR.
<?php
/**
Usage:
IpAuth::doAuth(array(
'xxx.xxx.xxx.* ',
'yyy.yyy.yyy.* ',
'aaa.bbb.ccc.0/19',
'a.b.c.d',
));
@i-tabu
i-tabu / Pepipost_API_using_mandrill_SDK.php
Created April 26, 2016 16:34
Pepipost_API_using_mandrill_SDK
<?php
/**
* Steps to install Mandrill SDK
* curl -s http://getcomposer.org/installer | php
* php composer.phar require mandrill/mandrill
* Edit
* vendor/mandrill/mandrill/src/Mandrill.php
* //public $root = 'https://mandrillapp.com/api/1.0';
* public $root = 'https://api.pepipost.com/api/1.0';
*/
---
swagger: "2.0"
info:
description: "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters."
version: "1.0.0"
title: "Swagger Petstore"
termsOfService: "http://swagger.io/terms/"
contact:
email: "[email protected]"
license:
@i-tabu
i-tabu / Pepipost_sample_json_call_with_cc_bcc.json.txt
Last active March 18, 2016 12:43
Sample send call with CC & BCC
https://api.pepipost.com/api/mail.send.json?
&api_key=yourapikey
&to[][email protected]
&toname[]=Destination
&[email protected]
&ccname=CCDestination
&[email protected]
&bccname=BCCDestination
&subject=Example_Subject
&text=testingtextbody
@i-tabu
i-tabu / Pepipost_sample_output_error.json
Created March 18, 2016 12:34
Pepipost - sample of error output
{"message":"ERROR","errorcode": "0" ,"errormessage":""}