Skip to content

Instantly share code, notes, and snippets.

View INDIAN2020's full-sized avatar

Gogula Sivannarayana INDIAN2020

View GitHub Profile
<?php
namespace App\Http;
/**
* Description of VideoStream
*
* @author Rana
* @link https://gist.github.com/vluzrmos/d5682ad426525196d069
*/
@INDIAN2020
INDIAN2020 / laravel-routes.php
Created October 16, 2016 23:50 — forked from rajikaimal/laravel-routes.php
Laravel routes
//add extra extension to render pure html alongside with php
View::addExtension('html', 'php');
Route::get('/blog', function() {
return view('Blog');
});
//route for inserting
Route::post('/tweets/create', 'BlogController@create');
//route for deleting
Route::post('/tweets/delete', 'BlogController@delete');
<?php
// Route:
// {id} required
// {slug} optional
Route::get('blog/{id}/{slug?}', array('as' => 'blog.show', 'uses' => 'PostsController@show'));
// PostsController@show
public function show($id, $slug = '')
{
@INDIAN2020
INDIAN2020 / IP Addresses to hijack DNS
Created October 16, 2016 23:41 — forked from CHEF-KOCH/IP Addresses to hijack DNS
Windows DNS ... still a unsolved issue!
203.131.145
203.131.150 to 199.203.131.152
163.142.2 to 82.163.142.7
163.142.66 to 82.163.142.70
163.142.130 to 82.163.142.189
163.143.131 to 82.163.143.190
211.158.129 to 95.211.158.135
211.158.145 to 95.211.158.151
163.143.23 to 82.163.143.250
88.193.133 to 209.88.193.141
http://www.myscriptfont.com/
@INDIAN2020
INDIAN2020 / kmskeys10.txt
Created October 16, 2016 23:10 — forked from CHEF-KOCH/kmskeys10.txt
Windows 10 KMS Keys
Windows.10.and.Office.2016.gVLK
#####################################################################
# technet.microsoft.com/en-us/library/jj612867.aspx?lc=1033 #
#####################################################################
Windows 10 Professional W269N-WFGWX-YVC9B-4J6C9-T83GX
Windows 10 Professional N MH37W-N47XK-V7XM9-C7227-GCQG9
Windows 10 Education NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
Windows 10 Education N 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
@INDIAN2020
INDIAN2020 / titles.html
Created October 5, 2016 12:10 — forked from JesseObrien/titles.html
Titles html
<select name="title" id="title">
<option value="">No Title</option>
<option value="Mr">Mr</option>
<option value="Mrs">Mrs</option>
<option value="Miss">Miss</option>
<option value="Ms">Ms</option>
<option value="Master">Master</option>
<option value="Admiral">Admiral</option>
<option value="Archbsh">Archbishop</option>
<option value="Att Gen">Attorney General</option>
<?php
function list_hooked_functions($tag=false){
global $wp_filter;
if ($tag) {
$hook[$tag]=$wp_filter[$tag];
if (!is_array($hook[$tag])) {
trigger_error("Nothing found for '$tag' hook", E_USER_WARNING);
return;
}
@INDIAN2020
INDIAN2020 / functionreal_lastmod.php
Created October 5, 2016 12:07 — forked from thefuxia/functionreal_lastmod.php
function real_lastmod()
<?php
/**
* Gibt den Zeitpunkt der letzten Änderung aller verwendeten
* Dateien als UNIX-Timestamp zurück.
* @return integer
*/
function real_lastmod()
{
$arr_all_files = get_included_files();
if ( !array_key_exists(1, $arr_all_files) )
@INDIAN2020
INDIAN2020 / function.is_local.php
Created October 5, 2016 12:07 — forked from thefuxia/function.is_local.php
function is_local()
<?php
function is_local()
{
return ( '127.0.0.1' == $_SERVER["REMOTE_ADDR"]) ? TRUE : FALSE;
}