Skip to content

Instantly share code, notes, and snippets.

@bldewolf
bldewolf / radvd-update.pl
Last active August 29, 2015 13:58
dibbler-client/radvd integrator
#!/usr/bin/perl
use warnings;
use strict;
use File::Compare;
open(my $dib, "/etc/dibbler/radvd.conf") or die "Failed to open dibbler config: $!";
my $int; # current interface
@bldewolf
bldewolf / man-gler.pl
Last active August 29, 2015 13:58
Script that mangles input by replacing words with "equivalents" found via dictd/moby-thesaurus
#!/usr/bin/perl
use strict;
use warnings;
use IO::Socket;
my %options;
my %words;
my $sock;
@bldewolf
bldewolf / dumbconn.pl
Last active August 29, 2015 14:00
State table exploder
#!/usr/bin/perl
#
# Tired of your firewall working? Want to have new connections mysteriously
# rejected? Look no further! Use this handy script to flood your iptables
# nf_conntrack table with useless entries!
#
# Originally used to verify nf_conntrack_max settings. Empirically determined
# that 1 million states ~= 500MB.
@bldewolf
bldewolf / local.network
Created May 14, 2014 01:19
systemd networkd config example
[Match]
Name=eth0
Host=thishostduh
[Network]
DHCP=true
[DHCPv4]
UseMTU=false
UseHostname=false
@bldewolf
bldewolf / netdisco_depgraph.pl
Created June 26, 2014 23:54
Netdisco 1.x to Nagios config with dependencies generator
#!/usr/bin/perl
#
use warnings;
use strict;
use lib "/var/lib/netdisco";
use netdisco qw/:all/;
config("/var/lib/netdisco/netdisco.conf");
@bldewolf
bldewolf / colorprompts.sh
Last active August 29, 2015 14:13
256 color per-host foreground color picker
#!/bin/bash
# source me, I'm a shell script!
function _foreground_calc {
# reject these colors for being too dark
local reject=([0]=a [16]=a [17]=a [18]=a [19]=a [232]=a [233]=a [234]=a [235]=a [236]=a [237]=a [238]=a)
echo "$1" | shasum | while read -n2 num; do
local num=$((16#$num))
if [ -z "${reject[$num]}" ]; then
$HTTP["host"] == "stats.vhost" {
alias.url += (
"/icingaweb2" => "/usr/share/icingaweb2/public",
)
url.rewrite-if-not-file += ( "/icingaweb2[^?]*(\?.*)" => "/icingaweb2/index.php$1" )
url.rewrite-if-not-file += ( "/icingaweb2" => "/icingaweb2/index.php" )
fastcgi.server += ( "/icingaweb2/index.php" =>
((
galaxy.dependencies.optional: no config file found
The Galaxy client has not yet been built and will be built now.
Installing node into /opt/galaxy/galaxy-release_18.09/.venv with nodeenv.
* Install prebuilt node (9.11.1) ..... done.
* Appending data to /opt/galaxy/galaxy-release_18.09/.venv/bin/activate
* Appending data to /opt/galaxy/galaxy-release_18.09/.venv/bin/activate.fish
Installing yarn into /opt/galaxy/galaxy-release_18.09/.venv with npm.
/opt/galaxy/galaxy-release_18.09/.venv/bin/yarn -> /opt/galaxy/galaxy-release_18.09/.venv/lib/node_modules/yarn/bin/yarn.js
/opt/galaxy/galaxy-release_18.09/.venv/bin/yarnpkg -> /opt/galaxy/galaxy-release_18.09/.venv/lib/node_modules/yarn/bin/yarn.js
+ yarn@1.12.3