Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Vishnu vishnu1991

🎯
Focusing
View GitHub Profile
@ramantehlan
ramantehlan / README-Fancy.md
Last active Jul 22, 2021
README template I use for most of my projects.
View README-Fancy.md

Introduction

  • Add your project logo.
  • Write a short introduction to the project.
  • If you are using badges, add them here.

📒 Index

@sharu725
sharu725 / subscribe-form.html
Last active Jul 6, 2021
Jekyll Subscribe Form using Mailchimp
View subscribe-form.html
<!--
Before implementing this jekyll snippet make sure
1. you have signed up with Mailchimp.
2. you have created a list in Mailchimp.
3. you have defined the list in _config.yml,
for ex: "mailchimp-list: //redgadgets.us10.list-manage.com/subscribe/post?u=210acce5db69d3d4a04b0e25d&amp;id=08c6708f40"
-->
<form action="{{site.mailchimp-list}}" method="post" name="mc-embedded-subscribe-form" class="wj-contact-form validate" target="_blank" novalidate>
<div class="mc-field-group">
@numberwhun
numberwhun / Penetration testing sample test cases
Created Jul 2, 2016
Penetration testing sample test cases
View Penetration testing sample test cases
Penetration testing sample test cases (test scenarios):
Remember this is not functional testing. In Pentest your goal is to find security holes in the system. Below are some generic test cases and not necessarily applicable for all applications.
1) Check if web application is able to identify spam attacks on contact forms used in the website.
2) Proxy server – Check if network traffic is monitored by proxy appliances. Proxy server make it difficult for hackers to get internal details of the network thus protecting the system from external attacks.
3) Spam email filters – Verify if incoming and outgoing email traffic is filtered and unsolicited emails are blocked. Many email clients come with in-build spam filters which needs to be configured as per your needs. These configuration rules can be applied on email headers, subject or body.
4) Firewall – Make sure entire network or computers are protected with Firewall. Firewall can be a software or hardware to block unauthorized access to system. Firewall can p
@visitdigital
visitdigital / webhook.php
Last active Aug 26, 2021
Very Simple Facebook Chat Bot PHP Webhook Script Example
View webhook.php
<?php
$challenge = $_REQUEST['hub_challenge'];
$verify_token = $_REQUEST['hub_verify_token'];
// Set this Verify Token Value on your Facebook App
if ($verify_token === 'testtoken') {
echo $challenge;
}
$input = json_decode(file_get_contents('php://input'), true);
View gist:851ea9c78f5bde4fef12e41492ce066a
/*
Copyright 2011 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@AbhishekGhosh
AbhishekGhosh / mailportcheck.php
Created Feb 27, 2016
Check Port 25, 465, 587 whether open via PHP
View mailportcheck.php
<?php
// 5 is the timeout in seconds
// 25 is port, other ports you may check are 465 and 587
$fp = fsockopen('127.0.0.1', 25, $errno, $errstr, 5);
if (!$fp) {
} else {
fclose($fp);
}
?>
View index.php
<?php
require("./vendor/autoload.php");
define('BOT_TOKEN', 'token');
define('API_URL', 'https://api.telegram.org/bot'.BOT_TOKEN.'/');
function apiRequestWebhook($method, $parameters) {
if (!is_string($method)) {
error_log("Method name must be a string\n");
View quotes.json
[
{
"author": "Abraham Lincoln",
"quote": "Things may come to those who wait, but only the things left by those who hustle.",
"image": "http://upload.wikimedia.org/wikipedia/commons/1/1b/Abraham_Lincoln_November_1863.jpg"
},
{
"author": "Adam Smith",
"quote": "The great secret of education is to direct vanity to proper objects.",
@battis
battis / emoji.php
Last active Oct 5, 2021
Trying to store/retrieve/display Unicode emoji in a MySQL database
View emoji.php
<?php
// MySQL schema
/*
CREATE TABLE `test` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`text` text,
`blob` blob,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
@dgp
dgp / youtube api video category id list
Created Jun 11, 2015
youtube api video category id list
View youtube api video category id list
2 - Autos & Vehicles
1 - Film & Animation
10 - Music
15 - Pets & Animals
17 - Sports
18 - Short Movies
19 - Travel & Events
20 - Gaming
21 - Videoblogging
22 - People & Blogs