Skip to content

Instantly share code, notes, and snippets.

View AmigoDheena's full-sized avatar
🏠
Working from home

Dheenadhayalan AmigoDheena

🏠
Working from home
View GitHub Profile
@AmigoDheena
AmigoDheena / page-title.php
Created March 29, 2022 12:45
Use URL as the page tile
<?php
$page_array = explode('/', $_SERVER['REQUEST_URI']) ;
$page = end($page_array);
$page = substr($page, 0, strpos($page, "."));
$page = str_replace("-", " ", $page);
echo ucwords($page);
?>
@AmigoDheena
AmigoDheena / active-menu.php
Created September 2, 2021 10:02
PHP Active Menu Hightliter
<?php
function active($currect_page){
$url_array = explode('/', $_SERVER['REQUEST_URI']) ;
$url = end($url_array);
if($currect_page == $url){
echo 'active'; //class name in css
}
}
?>
@AmigoDheena
AmigoDheena / css-media-queries-cheat-sheet.css
Created June 14, 2021 15:53 — forked from bartholomej/css-media-queries-cheat-sheet.css
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }
@AmigoDheena
AmigoDheena / responsive.html
Created May 29, 2021 11:32
Screen sizes and break points for responsive design
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Media Query</title>
<style>
h1{
display: none;
}
@AmigoDheena
AmigoDheena / saved-wifi-password.md
Last active November 25, 2019 06:06
Get the saved WIFI password from command prompt

Get the saved wifi password from command prompt

$ netsh wlan show profiles
$ netsh wlan show profile NAME key=clear

You can find the password in here

Security settings -> Key content : PASSWORD

@AmigoDheena
AmigoDheena / Metasploit-basics.md
Created September 29, 2019 16:33
Get contact list from android by using Metasploit

Metasploit

N|Solid

Installation

Download Metasploit from here Make sure trun off your Antivirus and Firewall before run installation After that go to the installation directory and run the below commands

@AmigoDheena
AmigoDheena / stego.py
Created September 5, 2019 09:25 — forked from SharadKumar97/stego.py
This script will hide any text behind any file.
# This script hide's text behind any media file like jpg file, mp3 file ecetera.
# This script accepts two parameter for hiding text and one parameter for finding text.
# Please install steganography python library by - pip install steganography
# This script is compatible with python 2.7
from __future__ import absolute_import,unicode_literals
import argparse
from steganography.steganography import Steganography
parser=argparse.ArgumentParser()
parser.add_argument("--carrier",help="Give path of carrier file which will contain our text.")
@AmigoDheena
AmigoDheena / async-and-conditional-css-loading.html
Last active June 29, 2019 06:04 — forked from matt-bailey/async-and-conditional-css-loading.html
A simple script (based on one by Google) for loading CSS files asynchronously and conditionally based on body tag classes
<html>
<head>
<!-- Inlined critical styles -->
<style>.blue{color:blue;}</style>
<!-- CSS loader -->
<script>
/* ==========================================================================
Load CSS asynchronously and conditionally after initial painting
@AmigoDheena
AmigoDheena / request_blocker.js
Created June 15, 2019 05:14
Puppeteer request blocker
await page.setRequestInterception(true);
//Request Blocker
page.on('request', (req) => {
if(req.resourceType() == 'stylesheet' || req.resourceType() == 'font' || req.resourceType() == 'image' || req.resourceType() == 'script'){
req.abort();
}
else {
req.continue();
}
@AmigoDheena
AmigoDheena / info.php
Created June 7, 2019 09:56
phpinfo();
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);
?>