Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

View mfranzil's full-sized avatar
📚
Studying...

Matteo Franzil mfranzil

📚
Studying...
PhD Student @ University of Trento, Fondazione Bruno Kessler. Photographer and basketball enthusiast.
View GitHub Profile
@mfranzil
mfranzil /tombola.py
CreatedMarch 19, 2025 09:41
Tombola/Bingo generator in LaTeX
#!/usr/bin/env python3
# tombola_generator.py
importrandom
importos
importre
defclean_latex_string(text):
replacements= {
'&':' e ',
@mfranzil
mfranzil /dsstore_bruteforcer.py
CreatedJuly 10, 2024 09:39
Discover a directory structure of a website that forgot .DS_Store files
importos
importqueue
importsubprocess
importrequests
INITIAL_DS_STORE= ...
OUT_FOLDER= ...
BASE_PATH= ...
seen=set()
@mfranzil
mfranzil /orgmode-pre-hook.sh
Last activeJuly 10, 2024 09:40
Compile your Orgmode files before committing to Git.
#!/bin/sh
# Copy this file in .git/hooks/pre-commit.
# Find all the org files in the directory and compile them
echo"Compiling Org files to PDF..."
# Find all Org files
ORG_FILES="$(find. -type f -iname'*.org')"
@mfranzil
mfranzil /generate_k8s_user.sh
Last activeJuly 10, 2024 09:40
Quickly generate Kubernetes users using the CertificateSigningRequest API
#!/bin/bash
KUBEUSER=$1
shift
KUBEGROUPS=$*
echo"Creating user$KUBEUSER with groups$KUBEGROUPS"
openssl genpkey -out${KUBEUSER}.key -algorithm Ed25519
if [[-z$KUBEGROUPS ]];then
@mfranzil
mfranzil /anonymizer.sh
Last activeOctober 17, 2023 16:50
Anonimize repos to be sent for privacy-sensitive contexts and double blind reviews
#!/bin/bash
echo"Current repository:$(git config --get remote.origin.url), at commit$(git rev-parse HEAD), stored in$(pwd)"
echo"Warning. This script will rewrite commit history in the destination repository. This cannot be undone!"
echo"The actions will be extremely destructive! Do not run this script unless you know what you are doing!"
read -p"Press [Enter] to continue or Ctrl+C to abort." -n 1 -r
git config --local user.email"anonymous.scholar@example.com"
git config --local user.name"Anonymous User"
git config --local user.signingkey"VERIFY"
@mfranzil
mfranzil /keybase.md
CreatedJanuary 30, 2023 12:04
keybase.md

I hereby claim:

  • I am mfranzil on github.
  • I am mfranzil (https://keybase.io/mfranzil) on keybase.
  • I have a public key ASAjKqK2bJKzFjc2k35hWhClo6OQqTlL-_gcxCJZExJAQAo

To claim this, I am signing this object:

@mfranzil
mfranzil /generate_draft.py
Last activeSeptember 30, 2022 09:13
Code for generating a draft order for Dunkest
importrandom
importnumpyasnp
people= [...]
original_people=people.copy()
attempts=0
print("Generating results. Please wait...")
@mfranzil
mfranzil /gtx-970-benchmark
Last activeDecember 14, 2021 13:54
Benchmarks for hashcat running on branchhttps://github.com/matrix/hashcat/tree/apple_m1_final
❯ ./hashcat -b -D 2
hashcat (v2.01-8057-g3fd6dac52) starting in benchmark mode
Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.
* Device #1: WARNING! Kernel exec timeout is not disabled.
This may cause "CL_OUT_OF_RESOURCES" or related errors.

[8]ページ先頭

©2009-2025 Movatter.jp