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/sh | |
# getfinfo - Get file information formatted | |
# Copyright (C) 2014 Matous J. Fialka, <http://mjf.cz/> | |
# Released under the terms of The MIT License | |
# Variable GETFINFO_FORMAT can be used to c output | |
# formatting from generic to one of: XML, JSON or shell. | |
export LC_ALL=C |
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/sed -f | |
# shortfacl - Reformat POSIX.1e ACL long form to short form | |
# Copyright (C) 2014 Matous J. Fialka | |
# Released under the terms of The MIT License | |
# Use as `getfacl /path/to/object | shortfacl` | |
# Remove comments | |
s/#.*$// |
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/sh | |
# procmemstat - Show total and average memory usage of processes | |
# Copyright (C) 2012 Matous J. Fialka, <http://mjf.cz/> | |
# Released under the terms of The MIT License | |
# Note: This is just a quick dirty hack... | |
# | |
# Check and parse arguments |
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/sh | |
# z - Dig wrapper | |
# Copyright (C) 2014 Matous J. Fialka, <http://mjf.cz/> | |
# Released under the terms of The MIT License | |
if ! DIG=`which dig` | |
then | |
echo Dig not found. 1>&2 | |
exit 1 |
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
# | |
# <<>> EXTENSIONS <<>> | |
# | |
extensions = ~/.local/libexec/taskd | |
# | |
# <<>> FILES <<>> | |
# | |
log = /tmp/taskd.log | |
pid.file = /tmp/taskd.pid |
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/sh | |
# dec - Decrypt encrypted file | |
# Copyright (C) 2014 Matous J. Fialka, <http://mjf.cz/> | |
# Released under the terms of The MIT License | |
ENC_CIPHALG="${ENC_CIPHALG:-aes-256-cbc}" | |
ENC_FILEEXT="${ENC_FILEEXT:-enc}" | |
if [ $# -ne 1 ] |
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/sh | |
if [ $# -ne 1 ] | |
then | |
echo "Usage: ${0##*/} PID" 1>&2 | |
exit 1 | |
fi | |
cat /proc/$1/maps | |
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/sh | |
# fdups - Finds duplicated files in given path | |
# Copyright (C) 2019 Matouš Jan Fialka, <http://mjf.cz/> | |
# Released under the terms of "The MIT License" | |
FDUPS_SUMPROG="${FDUPS_SUMPROG:-sha512sum}" | |
fdups1() { | |
find "$1" ! -type d -printf '%s\n' | |
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/sh | |
# Record time until host is up | |
# Copyright (C) 2014 Matous J. Fialka, <http://mjf.cz/> | |
# Released under the terms of The MIT License | |
# Depends on the humantime script: | |
# https://gist.github.com/mjf/1079421#file-humantime | |
if [ $# -ne 1 ] |
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
#cloud-config | |
# CoreOS Cloud Configuration YAML Developement File | |
# Copyright (C) 2014 Matous J. Fialka, <http://mjf.cz/> | |
# Released under the terms of The MIT License | |
hostname: <HOSTNAME> | |
users: | |
- name: core |