Skip to content

Instantly share code, notes, and snippets.

View fichtner's full-sized avatar

Franco Fichtner fichtner

View GitHub Profile
@fichtner
fichtner / cleanfile
Last active August 29, 2015 14:06
Linux Kernel's cleanfile with additional newline fix at EOF
#!/usr/bin/perl -w
#
# Clean a text file -- or directory of text files -- of stealth whitespace.
# WARNING: this can be a highly destructive operation. Use with caution.
#
use bytes;
use File::Basename;
# Default options
@fichtner
fichtner / mkdep.in
Created January 21, 2015 14:10
mkdep script when otherwise not available
#!/bin/sh -
##
## Modified to handle -vpath <path> option by Michael Graff, ISC.
## The purpose of this is to allow this script to run outside of the
## source directory, for instance when running configure with
## ../bind9-mainline/configure
## and still have "make depend" work.
##