Skip to content

Instantly share code, notes, and snippets.

View rudSarkar's full-sized avatar
:electron:
Negatively Charged

Rudra Sarkar rudSarkar

:electron:
Negatively Charged
View GitHub Profile
{
"keys": [
{
"alg": "RS256",
"kty": "RSA",
"use": "sig",
"e": "AQAB",
"n": "l0mVxbXIkEzcxc35apZ2TakAc8PSjk7xWsA94zBPq2tWqrFcZjdrG7Fs9gxIFHvYqDCUk4f_WD6EpriemIDxUaMaJkTM7LM279h-kBff4DqlGQmuEZIKnS_Z6Fm2cuoXTIf-NW9J5GVllkawSMStCcqRXcRwh3QisOJV9ZUSXVNK_n6qpZEwoAanw-qpsqKIvpZ3spdZRL1VDpYWs8dDaI6gENBwnZjPOCPWklvkV3Fhk3CPSynGRPF07Nhajgo4k-xR1F3LZFkYXaHrGaXS8WMrDg9fPSC1q36s0N8c4ZX0UaQtGswpR6T6iPO9Tqlm_u_gjM2OKZ9dWN6jOH6xUQ",
"kid": "0bd77b48-a5a2-49e3-9a30-5962f875bfa3"
}
#!/bin/bash
# John 1.9.0 Jumbo-1
apt-get update && apt-get install -y git build-essential libssl-dev zlib1g-dev yasm libgmp-dev libpcap-dev libbz2-dev libgomp1 && git clone https://github.com/magnumripper/JohnTheRipper.git /jtr && rm -rf /jtr/.git && cd /jtr/src && ./configure && make -s clean && make -sj4 && make install && apt-get -y remove --purge git build-essential libssl-dev zlib1g-dev yasm libgmp-dev libpcap-dev libbz2-dev && apt-get -y autoremove && apt-get -y clean && rm -rf /var/lib/apt/lists/*
@rudSarkar
rudSarkar / git_branch_delete.sh
Created June 17, 2024 17:43
delete branch except main
git branch | grep -v 'main' | xargs git branch -d
#!/bin/bash
# Specify the directory containing CR2 files
input_dir="."
# Check if the directory exists
if [ ! -d "$input_dir" ]; then
echo "Directory '$input_dir' does not exist."
exit 1
fi
package main
import "fmt"
func main() {
var name string
var age int
var is_active bool // true false
import java.util.*;
class Edge implements Comparable<Edge> {
int source, destination, weight;
public int compareTo(Edge edge) {
return this.weight - edge.weight;
}
}
import java.util.*;
class Graph {
private int V; // Number of vertices
private List<List<Edge>> adjacencyList;
Graph(int V) {
this.V = V;
adjacencyList = new ArrayList<>(V);
for (int i = 0; i < V; ++i)
@rudSarkar
rudSarkar / convert-heic-to-png.sh
Created May 30, 2023 07:25
Convert HEIC format to PNG using onliner
find . -name "*.HEIC" -exec sh -c 'sips -s format png "$1" --out "$(basename "$1" .HEIC).png"' _ {} \;
@rudSarkar
rudSarkar / main.go
Created May 27, 2023 14:51
snoopy.htb LFI
package main
import (
"archive/zip"
"fmt"
"io"
"net/http"
"net/url"
"os"
)
@rudSarkar
rudSarkar / main.go
Created February 26, 2023 21:26
Read bagel.htb:5000 phil user id_rsa
package main
import (
"fmt"
"log"
"github.com/gorilla/websocket"
)
func main() {