Anardil

A spot of sunlight

Articles by leaf

Dynamic Shell Scripting

Summary We can use declare, eval and text manipulation tools like awk and sed to dynamically redefine shell functions based on their content or name. This allows us to add lines or generate entirely new functions. Introduction Bash and other shell...

AutoCLI

Summary AutoCLI simplifies managing scripts by auto generating option menus, all in bash, without any dependencies. Sub menus, customization, and positional arguments are all supported. See autocli.sh on GitHub for the source and more examples. The...

Apocrypha

The problem When creating applications, it's handy to be able to store data between runs. Maybe you have a server that can restart when your laptop comes out of sleep. Or maybe you have a script that you want to run periodically, so it needs to check...

Practical Coprocesses

Introduction Coprocesses expose a way to run a subshell asychronously, while maintaining full communication through pipes. In a typical script, you can run commands in the background (asychronously) with the & operator. This allows tasks to be worked...

Vimrc

I've read through a lot of vimrc's, borrowing a line here or there over the past 5 years! The best nuggets and my own findings are all distilled here for your perusal. What's the best way to use this? Skim through, find something that sounds...

Probabilistic Policy Violation Detection with IPFWD

Abstract When using a firewall system like IPFW to detect threats, the system can end up doing a lot of packet processing. This can negatively impact performance-sensitive systems such as storage nodes in data centers. This paper describes a practical...

Social Network Mining YouTube Videos

Abstract YouTube videos are categorized into a number of classes such as music, entertainment, sports. This paper will explore how these categories are related, how strongly they are related, and the techniques used to gain this information. Data...