This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $# -ne 2 ]; then | |
echo "usage: ${0##*/} <source> <target>" | |
echo " clone 'source' to 'target' sharing objects" | |
exit 1 | |
fi | |
src=$1 | |
trg=$2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Versione riveduta e corretta di mannaggia.sh | |
# problemi di mannaggia.sh: | |
# * scarica solo la prima pagina di ogni lettera dell'alfabeto | |
# * usa /dev/urandom per scegliere una lettera casuale (LOL!), quando Bash ha il supporto al random | |
# * inutilmente complesso, il parsing dei tag veniva fatto con CINQUE PIPE, quando basta un solo awk scritto bene | |
# released under GNU-GPLv3 | |
prescegli() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
dev=$1 | |
dev=$(realpath "$dev") | |
dev=$(basename "$dev") | |
sys="/sys/class/block/$dev" | |
if [ -f "$sys/partition" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"flag" | |
"fmt" | |
"os" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/core | |
*.o | |
*.lskel.h | |
vmlinux.h | |
*.pem | |
*.x509 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
[ $# -eq 2 ] || exec echo "Usage: $0 <install.iso> <disk.img>" | |
for k in qemu kvm qemu-kvm; do | |
which $k 2>/dev/null >/dev/null && kvm=$k && break | |
done | |
[ -n "$kvm" ] || exec echo "error: KVM not found!" | |
cores=$(nproc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
[ $# -ne 2 ] && exec echo "Usage: ${0##*/} <input> <output>" | |
src=$1 | |
dst=$2 | |
dir=$(mktemp -d) | |
trap "rm -rf $dir" EXIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* unalign_check - check the CPU behaviour on different alignments | |
* Copyright (C) 2021 Matteo Croce <mcroce@linux.microsoft.com> | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[general] | |
static=yes | |
writeprotect=yes | |
clearglobalvars=no | |
[globals] | |
[outgoing_context] | |
exten => _[+]X.,1,Dial(PJSIP/${EXTEN}@vodafone-out) | |
exten => _X.,1,Dial(PJSIP/${EXTEN}@vodafone-out) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
dev=/dev/nvme0n1p1 | |
mnt=/media | |
run_one() { | |
echo "$2t" | |
fio \ | |
--output="fio-$1-$2t.csv" --output-format=terse \ | |
--directory="$mnt" \ |
NewerOlder