Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Zedeler mzedeler

  • BestBrains
  • Copenhagen, Denmark
View GitHub Profile
View client.sh
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
View local-selenium.md
$ 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
View pre-commit.pl
#!/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.
View git-prompt-helper
#!/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:
View 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;
@mzedeler
mzedeler / burndown.pl
Created Mar 21, 2011
Extracts a burndown report from a local bugzilla installation.
View burndown.pl
#!/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 / test-script-comments.md
Created Nov 1, 2012
Comments on LYT/doc/test-script.md
View test-script-comments.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 / gen.sh
Last active May 18, 2018
Autoconfiguration of Nagios.
View gen.sh
#!/bin/sh
nmap 192.168.0-4.1-255 -sT -O -oG nmap.out
nbi2.pl nmap.out
@mzedeler
mzedeler / .bashrc_ssh
Last active Mar 11, 2020 — forked from bluegraybox/.bashrc_ssh
bashrc snippet for initializing ssh agent and adding ssh key
View .bashrc_ssh
#!/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}"