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
#!/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() {
@rudSarkar
rudSarkar / chrome-scree-share-fix-mac.md
Created July 3, 2022 19:26
mac Google Chrome can't share screen Fix

use bellow command to revoke the screen capture permission

tccutil reset ScreenCapture com.google.Chrome

Then navigate to System Preferences > Security & Privacy > Screen recording

Click on the + button to add chrome once again /Applications/Google Chrome.app