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
#!/usr/local/bin/perl | |
use strict; | |
use warnings; | |
use Proc::ProcessTable; | |
my $table = Proc::ProcessTable->new; | |
for my $process (@{$table->table}) { | |
# skip root processes |
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
#!/usr/bin/env python | |
"""\ | |
A command-line utility that can (re)send all messages in an mbox file | |
to a specific email address, with options for controlling the rate at | |
which they are sent, etc. | |
""" | |
# I got this script from Robin Dunn a few years ago, see | |
# https://github.com/wojdyr/fityk/wiki/MigrationToGoogleGroups |
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
# Example inittab entry (/etc/inittab) | |
# this will create a daemonized process which init will watch and respawn as needed | |
1001::respawn:/usr/bin/perl /usr/local/bin/kill-large-processes.pl |
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
#!/usr/bin/env python | |
import sys | |
import re | |
def convert(name): | |
s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', name) | |
s2 = re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).upper() | |
return re.sub('[./_]+', '_', s2) |
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
var linkCheck = require('link-check'); | |
var jetpack = require('fs-jetpack'); | |
var jsdom = require('jsdom'); | |
function htmlLinkCheck (file) { | |
jsdom.env(file.text, (err, window) => { | |
if (err) | |
throw err | |
Array.from(window.document.getElementsByTagName('a')).forEach(el => { |