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
#!/usr/bin/env bash | |
for x in *.mp3; do | |
artist=$(id3info "${x}" | awk -F ':' '/TPE1/ {print $2}' | sed 's/ //1') | |
name=$(id3info "${x}" | awk -F ':' '/TIT2/ {print $2}' | sed 's/ //1') | |
album=$(id3info "${x}" | awk -F ':' '/TALB/ {print $2}' | sed 's/ //1') | |
number=$(id3info "${x}" | awk -F ':' '/TRCK/ {printf("%02d", $2)}' | sed 's/ //1') | |
mkdir -p "${artist}/${album}" | |
cp "${x}" "${artist}/${album}/${number} ${name}.mp3" | |
done |
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
#!/usr/bin/env python3 | |
# El DaveC / Nomius de la gente :-) | |
import sys | |
import sqlite3 | |
from Crypto.Cipher import AES | |
from Crypto.Protocol.KDF import PBKDF2 | |
salt = b'saltysalt' |
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
# | |
# /etc/inittab: system runlevel description | |
# | |
+HOSTNAME::henry: | |
+TIMEZONE::UTC: | |
+KEYMAP::us: | |
+NETDEV::wlan0: | |
# Runlevels: |
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
set default=0 | |
set timeout=99 | |
insmod iso9660 | |
insmod udf | |
insmod linux | |
search --file --no-floppy --set root /kwort-version | |
set prefix=($root)/boot/grub |
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
#!/usr/bin/env bash | |
PARTITION_TABLE=${1} | |
error() { | |
tput setaf 1 | |
echo "${1}" | |
tput sgr0 | |
} |
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
nomius@Aquiles:~$ cat rockethttpd_chdir_bugfix.diff | |
Submitted By: David B. Cortarello (Nomius) <dcortarello at gmail dot com> | |
Date: 30-01-2010 | |
Initial Package Version: subversion | |
Description: Fix the chdir bug | |
This patch provides the following bugfixes: | |
* This patch is a security fix. Instead of using chdir, use chroot so requests like http://localhost//etc/passwd (outside the chroot) are treated like 404 instead of getting the file. | |
Index: src/rockethttpd.c | |
=================================================================== |
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
nomius@Aquiles:~$ cat wrong_constant_to_futex.patch | |
Submitted By: David B. Cortarello (Nomius) <dcortarello at gmail dot com> | |
Date: 17-01-2010 | |
Initial Package Version: 2.10.1 | |
Description: The patch was created from the original glibc package | |
This patch provides the following bug solution: | |
* Wrong constants passed to fuxex, causing pthread_mutex fail in certain operations | |
diff -Naur glibc-2.10.1.old/nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S glibc-2.10.1/nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S | |
--- glibc-2.10.1.old/nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S 2010-01-17 17:45:50.000000000 -0300 |
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
/* vim: set sw=4 sts=4 : */ | |
#include <sys/types.h> | |
#include <sys/wait.h> | |
#include <sys/ipc.h> | |
#include <sys/shm.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
int main(int argc, char *argv[]) | |
{ |