Skip to content

Instantly share code, notes, and snippets.

View a-mishra's full-sized avatar
🏠
Working from home

Ashutosh Mishra a-mishra

🏠
Working from home
View GitHub Profile
// script.js
document.addEventListener('DOMContentLoaded', function () {
const splashDialog = document.createElement('dialog');
splashDialog.id = 'splashDialog';
// Add your splash content (logo and video) inside the dialog
splashDialog.innerHTML = `
<h1>Your Logo</h1>
<video autoplay muted loop>
<source src="https://devguide.payu.in/website-assets/uploads/2024/08/V2_PayU_launch_film_600x300.mp4" type="video/mp4">
@a-mishra
a-mishra / docker-compose.yml
Created December 26, 2021 12:05
to create a blank of wordress
version: '3'
services:
# Database
db:
image: mysql:5.7
volumes:
- ./db_data:/var/lib/mysql
restart: always
environment:
<?php
//-- FUNCTIONS --------------------------------------------------------------------------
/**This Metod will be used to call API with POST method */
function callAPIPOST($url, $payload = "{}", $headers = array(), $logIdentifier = '') {
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => $url,
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@a-mishra
a-mishra / form.php
Last active September 16, 2018 04:33
form with basic validations
<?php
//form.php -- test form
$name = $email = $website = $comment = $gender = $data = "";
$err_name = $err_email = $err_website = $err_comment = $err_gender = "";
$err_data = false;
?>
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST' /*&& $_POST['submit'] != NULL*/) {
// code...
@a-mishra
a-mishra / git_cheat-sheet.md
Created January 5, 2018 18:50 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet
@a-mishra
a-mishra / LightShow.ino
Created October 16, 2017 13:27
Lightshow is an arduino program to switch on/off lights in a sequential manner.
#include <SoftwareSerial.h>
SoftwareSerial BTSerial(10,11); //Rx|Tx
String instream;
int playSeq = 1;
int pause = 1000;
int tempRow = 6;
boolean Seq1[6][4] = {
{0,0,0,1},
#include <stdio.h>
#include <stdlib.h>
void shellSort(int *arr, int n)
{
int gap;
for (gap = n/2; gap > 0; gap /= 2)
{
int i;
for (i = gap; i < n; i += 1)
@a-mishra
a-mishra / shodan_wps_example.py
Created November 30, 2016 06:30 — forked from achillean/shodan_wps_example.py
Shodan WPS Example
# Import the class
from shodan.wps import GoogleLocation
# Setup the object
wps_client = GoogleLocation()
# Locate the physical address of the MAC/ BSSID
address = wps_client.locate('00:1D:7E:F0:A2:B0')
@a-mishra
a-mishra / kali_wps.txt
Created November 30, 2016 06:25 — forked from CHEF-KOCH/kali_wps.txt
KALI WPS test
ifconfig wlan0 down
iwconfig wlan0 mode monitor
ifconfig wlan0 up
airodump-ng wlan0
wash -i wlan0 -C | grep <SSID>
reaver -i wlan0 -b <your-MAC> -K 1 -w -vv
Research:
* http://docs.kali.org/downloading/kali-linux-live-usb-install
* http://sourceforge.net/projects/win32diskimager/