Skip to content

Instantly share code, notes, and snippets.

@libcrack
libcrack / github-clone-org-pwn.sh
Created September 2, 2025 13:13
Clone all organization repos, scan secrets with Gitleaks and analyze workflows & actions with ADES and poutine
#!/usr/bin/env bash
# devnull@localhost
#
# Created:
# Wed Oct 23 05:11:29 CEST 2024
#
# Updated:
#  Tue Sep 2 14:37:50 CEST 2025
#
# --source : show only non-forks
#!/usr/bin/env python3.11
# coding: utf-8
# Sun May 26 20:31:43 CEST 2024
"""
pip3.11 install openai
pip3.11 install langchain
pip3.11 install langchain-community
pip3.11 install langchain-openai
pip3.11 install chromadb
#!/usr/bin/env python3
from dotenv import load_dotenv
from langchain.document_loaders import PyPDFLoader
from langchain.llms import OpenAI
from langchain.chains.summarize import load_summarize_chain
from langchain.text_splitter import CharacterTextSplitter
import textwrap
import os
import fnmatch
#!/usr/bin/env python3
from dotenv import load_dotenv
from langchain.document_loaders import PyPDFLoader
#from langchain.document_loaders import PDFMinerLoader
#from langchain.document_loaders import Docx2txtLoader
from langchain.llms import OpenAI
from langchain.chains.summarize import load_summarize_chain
from langchain.text_splitter import CharacterTextSplitter
from langchain.prompts import PromptTemplate
@libcrack
libcrack / u-boot-arm-crosscompilation.md
Created June 1, 2024 17:28
U-Boot ARM Cross-compilation for Qemu

U-Boot ARM Cross-compilation

First clone the U-Boot source code:

git clone https://github.com/ARM-software/u-boot/

Install compilation dependencies:

@libcrack
libcrack / timemachine.sh
Created May 17, 2024 12:00
macOS timemachine bash helper functions
# Fri May 17 13:52:40 CEST 2024
# [email protected]
#
# timemachine helper functions:
# timemachine-notify
# timemachine-notify-loop
# timemachine-speedup
# timemachine-log
# timemachine-logstream
# timemachine-log-show
@libcrack
libcrack / minicom-bin-xfr.sh
Created May 12, 2024 15:33
Minicom file transfer helper
#!/bin/sh
INFILE=/dev/null
OUTFILE=/dev/null
if [ ${#} -lt 1 ]; then
echo "Usage: ${0} -i infile -o outfile"
exit 1
fi
@libcrack
libcrack / openvpn_clients_update.php
Created May 12, 2024 14:35
PHP script to update auth details for specific vpn clients pfSense boxes
#!/usr/local/bin/php-cgi -f
# [email protected]
# Sun Nov 24 04:22:26 CET 2019
<?php
require_once("globals.inc");
require_once("filter.inc");
require_once("util.inc");
require_once("config.inc");
require_once("service-utils.inc");
@libcrack
libcrack / zerocopy.sh
Created May 12, 2024 14:28
Script to enable/disable zerocopy in FreeBSD/pfSense boxes
#!/bin/sh
# [email protected]
# Mon Sep 9 21:30:51 CEST 2019
case $1 in
enable)
echo "[*] Enabling zerocopy"
sysctl net.bpf.zerocopy_enable=1
exit $?
;;
@libcrack
libcrack / cputemp.sh
Created May 12, 2024 14:25
Script to read CPU temperature in FreeBSD/pfSense boxes
#!/bin/sh
# [email protected]
# Mon Sep 9 21:30:51 CEST 2019
#
# Title : cputemp
# Description: Prints the average CPU core temperature
# Author : linuxitux
# Date : 12-01-2016
# Usage : ./cputemp
# Notes : kldload coretemp