Skip to content

Instantly share code, notes, and snippets.

View shrujandev's full-sized avatar
🖥️
College

Shrujan shrujandev

🖥️
College
View GitHub Profile
@shrujandev
shrujandev / GoogleDorking.md
Created April 22, 2023 11:31 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@shrujandev
shrujandev / blockchain commands.txt
Last active February 14, 2023 06:55
These are the commands that are used in blockchain handson on go-eth
/home/seed/shrujandev/bc/go-ethereum/build/bin/geth --datadir ~/ethereum/net3/ init genisis3.json
/home/seed/shrujandev/bc/go-ethereum/build/bin/geth --datadir ~/ethereum/net3/ --networkid 3 console #this opens a console
after getting terminal
> personal.newAccount()
> eth.accounts
> eth.blockNumber
> miner.start()
> miner.stop()
@shrujandev
shrujandev / Microsoft.PowerShell_profile.ps1
Last active October 1, 2022 15:31
PowerShell Profile
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
Import-Module -Name Terminal-Icons
set-alias desktop "Desktop.ps1"
@shrujandev
shrujandev / ohmyposhv3-v2.json
Created June 13, 2022 12:33
ohmyposh json file for terminal
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#ff479c",
"foreground": "#ffffff",
"leading_diamond": "\ue0b6",
@shrujandev
shrujandev / settings.json
Created June 13, 2022 12:31
Windows Terminal settings after wsl install
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command": "paste",
"keys": "ctrl+v"
},
{
@shrujandev
shrujandev / findPath.c
Last active November 19, 2021 03:42
Path finding Code for Rat in a Maze
void findPath(Head * ptr, int endI, int endJ, FILE * output) {
Stack * stack; //struct containg a node and pointer to the same type
int condition = 0;
stack = (Stack * ) malloc(sizeof(Stack)); //Mallocing the stack
stack -> head = NULL;
Node * move; //This pointer is the one that moves and finds path
move = ptr -> head;
pushElement(stack, move);
while (condition == 0) {
if (move -> i < endI && move -> j < endJ) {