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 | |
NBATCH=3 | |
NPARALLEL=5 | |
(apt-get -y --print-uris $@ | egrep -o -e "http://[^\']+" | xargs -r -l${NBATCH} -P${NPARALLEL} wget -nv -P "/var/cache/apt/archives/") && apt-get $@ |
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 | |
SUBDIR=$1 | |
if [ "$SUBDIR" = "" ]; then | |
echo "You have to enter a subdir as first arg" | |
exit -1 | |
fi | |
if [ ! -e $SUBDIR ]; then | |
echo "$SUBDIR must exist. Are you in the repo root?" |
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 ruby | |
# Delete files from Gmail All Mail folder | |
# Needs proper Gmail account configuration | |
# | |
# ---------------------------------------------------------------------------- | |
# "THE BEER-WARE LICENSE" (commit 34973274ccef6ab4dfaaf86599792fa9c3fe4689): | |
# <[email protected]> wrote this file. As long as you retain this notice you | |
# can do whatever you want with this stuff. If we meet some day, and you think | |
# this stuff is worth it, you can buy me a beer in return Pablo Lorenzzoni | |
# ---------------------------------------------------------------------------- |
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 | |
# Simple MJPEG Server | |
# ---------------------------------------------------------------------------- | |
# "THE BEER-WARE LICENSE" (commit 34973274ccef6ab4dfaaf86599792fa9c3fe4689): | |
# <[email protected]> wrote this file. As long as you retain this notice you | |
# can do whatever you want with this stuff. If we meet some day, and you think | |
# this stuff is worth it, you can buy me a beer in return Pablo Lorenzzoni | |
# ---------------------------------------------------------------------------- | |
# MJPEG Stream frame |
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 python2 | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected]) | |
# The author disclaims copyright to this source code. | |
import sys | |
import struct | |
import socket | |
import time | |
import select |
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 | |
# Configs | |
VSYSTEM=qemu # Either 'qemu' or 'kvm' | |
INCLUDES='less,vim,sudo,openssh-server,acpid' | |
MIRROR="http://ftp.br.debian.org/debian" | |
ARCH=686 | |
clean_debian() { | |
[ "$MNT_DIR" != "" ] && chroot $MNT_DIR umount /proc/ /sys/ /dev/ /boot/ |
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
' SantaTrans | |
' Transformations for a standardized Santa Casa PACS reports | |
' Really just a bunch of snippets put together | |
' ----------------------------------------------------------------------------- | |
' "THE BEER-WARE LICENSE" (commit 34973274ccef6ab4dfaaf86599792fa9c3fe4689): | |
' <[email protected]> wrote this file. As long as you retain this notice you | |
' can do whatever you want with this stuff. If we meet some day, and you think | |
' this stuff is worth it, you can buy me a beer in return. Pablo Lorenzzoni | |
' ----------------------------------------------------------------------------- |
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
spectra@harad:~$ wget -q -O /dev/stdout http://fisl.softwarelivre.org/10/papers/pub/ | perl -lne '$i++ while m/=.tech_track_[0-9]+/g;END{print $i}' | |
204 | |
spectra@harad:~$ wget -q -O /dev/stdout http://fisl.softwarelivre.org/10/papers/pub/ | perl -lne '$i++ while m/=.non_tech_track_[0-9]+/g;END{print $i}' | |
175 | |
spectra@harad:~$ |