Skip to content

Instantly share code, notes, and snippets.

View mzedeler's full-sized avatar

Michael Zedeler mzedeler

  • BestBrains
  • Copenhagen, Denmark
View GitHub Profile
@mzedeler
mzedeler / .bashrc_ssh
Last active March 11, 2020 19:02 — forked from bluegraybox/.bashrc_ssh
bashrc snippet for initializing ssh agent and adding ssh key
#!/bin/bash
# Set up ssh-agent
SSH_ENV="$HOME/.ssh/environment"
function start_agent {
echo "Initializing new SSH agent..."
touch $SSH_ENV
chmod 600 "${SSH_ENV}"
/usr/bin/ssh-agent | sed 's/^echo/#echo/' >> "${SSH_ENV}"
$ brew install selenium-server-standalone chromedriver
$ git clone git@github.com:theintern/intern.git
$ cd intern
$ npm install --production
$ ln -s .. node_modules/intern
$ curl https://gist.github.com/neonstalwart/6630466/raw/f0e4e4efbefa40c746f7c68e2bb4fa0dd5215047/selftest.local.intern.js > tests/selftest.local.intern.js
$ java -jar /usr/local/opt/selenium-server-standalone/selenium-server-standalone-2.35.0.jar -p 4444 &
$ node node_modules/intern/runner.js config=tests/selftest.local.intern
nc helsinki.solfisk.dk 8080 | perl -MTime::HiRes=time -ne '$|++; $start = time; read STDIN, $dummy, 1024*100; print time - $start, "\n"' | tee network-timing.txt
@mzedeler
mzedeler / gen.sh
Last active May 18, 2018 22:53
Autoconfiguration of Nagios.
#!/bin/sh
nmap 192.168.0-4.1-255 -sT -O -oG nmap.out
nbi2.pl nmap.out
@mzedeler
mzedeler / test-script-comments.md
Created November 1, 2012 10:56
Comments on LYT/doc/test-script.md

Test schedule for LYT

Login:

- 1: Log on using correct username + password

- 2: Log on using correct username + incorrect password without illegal 
  characters
  • 3: Log on using incorrect username without illegal characters + correct
@mzedeler
mzedeler / burndown.pl
Created March 21, 2011 10:38
Extracts a burndown report from a local bugzilla installation.
#!/usr/bin/perl
# Bugzilla burndown data extraction script.
# Author: Michael Zedeler.
# License: this script is licensed under the same license as perl itself.
# Version: 1.1
# Source: https://gist.github.com/879278
use strict;
use warnings;
@mzedeler
mzedeler / gh-deploy.pl
Created November 21, 2010 15:34
gh-deploy.pl
#!/usr/bin/env perl
# This script is free software; you can redistribute it and/or modify it under the same terms
# as Perl 5.10.0. For more details, see http://dev.perl.org/licenses/.
package github_downloader;
use Moose;
with 'MooseX::Getopt';
use YAML::Any;
#!/usr/bin/env perl
#
# Git prompt helper
#
# Make your bash prompt with current branch and a dirty flag if
# you have uncommitted stuff.
#
# Author: Michael Zedeler <michael@zedeler.dk>
#
# How to use:
#!/usr/bin/env perl
# 20100517 Michael Zedeler
# This pre-commit hook script runs perlcritic against any file
# recognized as being perl (using file name and file content heuristics).
# Files resulting in critic violations at the level returned by
# git config perlcritic.level are rejected.
#
# Use --no-verify to override.