Skip to content

Instantly share code, notes, and snippets.

View StefanLiebenberg's full-sized avatar

Stefan Liebenberg StefanLiebenberg

View GitHub Profile
pacman -Sy --noconfirm && pacman -Sy archlinux-keyring --noconfirm && pacman -Su --noconfirm && pacman-db-upgrade && trust extract-compat && pacman -Scc --noconfirm
echo -e "\n[archlinuxfr]\nSigLevel = Never\nServer = http://repo.archlinux.fr/\$arch" >> /etc/pacman.conf && pacman -Sy yaourt --noconfirm
@StefanLiebenberg
StefanLiebenberg / dump.sh
Created December 30, 2016 10:23
Bash script to dump filesystem with urandom data.
#/bin/bash
i=0;
while [ "$(df -P . | awk 'NR==2 {print $4}')" -gt 0 ]; do
i=$((i+1));
file=temp$i.dump;
echo writing $file;
if [ ! -e $file ]; then
dd if=/dev/urandom of=$file bs=1MB count=1024;
fi;
@Soy.Method("Name")
public getName() {
return name
}