Skip to content

Instantly share code, notes, and snippets.

View 0xdeadbeer's full-sized avatar

Kevin J. 0xdeadbeer

View GitHub Profile
@0xdeadbeer
0xdeadbeer / indexofes-minimal.tree
Created February 4, 2024 19:50
[MINIMAL] Tree of index-of.es website snapshot (Feb 15/16 2022) - 0xdeadbeer
$ tree -L 2 -d
.
├── Android
├── Art-Gallery
│   ├── A
│   ├── B
│   ├── C
│   ├── D
│   ├── E
@0xdeadbeer
0xdeadbeer / client.c
Created February 19, 2024 21:02
Example OpenSSL Server + Client code to exchange data
#include <stdlib.h>
#include <unistd.h>
#include <openssl/ssl.h>
#include <openssl/bio.h>
#include <openssl/err.h>
#define HOST_ADDR "localhost:4433"
#define MSG_SIZE 512
int main(void) {
@0xdeadbeer
0xdeadbeer / packages
Created April 7, 2024 18:51
Pacman packages for compiling keepassxreboot/keepassxc
cmake
make
gcc
asciidoctor
botan
qt5-base
qt5-svg
qt5-translations
qt5-tools
minizip
@0xdeadbeer
0xdeadbeer / files
Created February 25, 2025 16:56
index-of.es file list
This file has been truncated, but you can view the full file.
> cd index-of.es/
> find . -type f
./Hack/Network Security Know It All.pdf
./Hack/7Deadliest Social Network Attacks.pdf
./Hack/7Deadliest Web Application.pdf
./Hack/7Deadliest Wireless Technologies Attacks.pdf
./Hack/A-LIST Publishing - Hacker Disassembling Uncovered.chm
./Hack/Actualtests Certified Ethical Hacker CEH 312-50 568Q 2008.10.07.pdf
./Hack/Adavanced Postgre SQL injection.pdf
./Hack/Addison Wesley - Defend I.T. Security by Example.chm
@0xdeadbeer
0xdeadbeer / snake_case_rename.sh
Created May 4, 2025 11:20
Rename from yt-dlp ugly naming convention to snake_case
#!/usr/bin/bash
for file in ./*.mp3
do
new_file=$(echo "$file" | sed 's/\.\///g' | sed 's/\[[^]]*\]//g' | sed 's/([^)]*)//g' | sed 's/\.[^.]*$//g' | sed 's/[^a-zA-Z :]//g' | awk '{$1=$1;print}' | sed 's/ /_/g' | tr '[:upper:]' '[:lower:]' | sed 's/$/.mp3/g')
echo "old file name: '$file'"
echo "new file name: '$new_file'"
echo ""
mv "$file" "$new_file"