This file contains hidden or 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 -eu | |
find . -type f | gawk '/_thumb.*\.jpg/ {print}' | tr '\n' '\0' | xargs -0 rm | |
find . -type f -name '*.jpg' | \ | |
gawk '{ | |
match($0, /@([0-9]+)-([0-9]+)-([0-9]+)_([0-9]+)-([0-9]+)-([0-9]+)\.jpg/, arr) | |
print "touch -d", arr[3] "-" arr[2] "-" arr[1] "T" arr[4] ":" arr[5] ":" arr[6], $0 | |
}' | bash - |
This file contains hidden or 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 -eu | |
# µlfs runtime module minimization | |
IMG=hdd.img | |
# Check (due to bash -e) | |
which zerofree | |
# Mount the image | |
LOOP="$(sudo losetup --partscan --show --find $IMG)" |
This file contains hidden or 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 -eu | |
# µlfs | |
IMGSZ=128M | |
KERNEL_VARIANT=linux-virt | |
KERNEL_FILE=vmlinuz-virt | |
# ----- IMG FILE ----- | |
# Generate img file | |
IMG=hdd.img |
This file contains hidden or 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
This is рython2.7 | |
Contents start here: | |
#!/usr/bin/env python2.7 | |
# -*- encoding: utf-8 -*- | |
import sys, hashlib, base64, os | |
if __name__ == '__main__': | |
with open(sys.argv[1], 'rb') as f: |
This file contains hidden or 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
# Source: http://www.asciiworld.com/-Death-Co-.html | |
skull = ' uuuuuuu\n uu$$$$$$$$$$$uu\n uu$$$$$$$$$$$$$$$$$uu\n u$$$$$$$$$$$$$$$$$$$$$u\n u$$$$$$$$$$$$$$$$$$$$$$$u\n u$$$$$$$$$$$$$$$$$$$$$$$$$u\n u$$$$$$$$$$$$$$$$$$$$$$$$$u\n u$$$$$$" "$$$" "$$$$$$u\n "$$$$" u$u $$$$"\n $$$u u$u u$$$\n $$$u u$$$u u$$$\n "$$$$uu$$$ $$$uu$$$$"\n "$$$$$$$" "$$$$$$$"\n u$$$$$$$u$$$$$$$u\n u$"$"$"$"$"$"$u\n uuu $$u$ $ $ $ $u$$ uuu\n u$$$$ $$$$$u$u$u$$$ u$$$$\n $$$$$uu "$$$$$$$$$" uu$$$$$$\nu$$$$$$$$$$$uu """"" uuuu$$$$$$$$$$\n$$$$"""$$$$$$$$$$uuu uu$$$$$$$$$"""$$$"\n """ ""$$$$$$$$$$$uu ""$"""\n uuuu ""$$$$$$$$$$uuu\n u$$$uuu$$$$$$$$$uu ""$$$$$$$$$$$uuu$$$\n $$$$$$$$$$"""" ""$$$$$$$$$$$"\n "$$$$$" ""$$$$""\n $$$" $$$$"\n' | |
def printSkull(): |