Skip to content

Instantly share code, notes, and snippets.

View m4rcu5nl's full-sized avatar

Marcus m4rcu5nl

  • The Netherlands
View GitHub Profile
@m4rcu5nl
m4rcu5nl / vbssh.bash
Last active April 8, 2018 01:14
vbssh - Easy way to ssh in to VirtualBox guests with GueastAdditions installed
#!/usr/bin/env bash
# Prototype
#
# VirtualBoxSSH
# Makes ssh-ing in to my VirtualBox VMs piss easy. Only works
# with VMs that have the GuestAdditions installed.
#
# Usage: vbssh [user@]exact-name-of-guest
# (if no user defined user running the script will be used)
@m4rcu5nl
m4rcu5nl / ksdtvp
Created July 23, 2017 18:03
Wrapper script for Kingston DataTraveler Vault Privacy 3.0 used on Ubuntu 16.04
#!/bin/bash
# Wrapper script for Kinston DataTraveler Vault Privacy 3.0
function errecho(){
(>&2 echo "${@}");
}
function usage(){
echo -e "Usage:\n\tksdtvp (login|logout|initialize|forgotpass|about)"
}

Keybase proof

I hereby claim:

  • I am m4rcu5nl on github.
  • I am m4rcu5 (https://keybase.io/m4rcu5) on keybase.
  • I have a public key ASCdBcwUwjTBj3cLrDoHxMgY1fCmzgKXVbstFTiKZLkxGAo

To claim this, I am signing this object:

@m4rcu5nl
m4rcu5nl / dnscheck.sh
Last active June 21, 2024 01:31
Simple Bash DNS checker. Intended for bulk lookup by feeding it a list of hostnames.
#!/bin/bash
# Does a host lookup of specified record type for given hostname(s).
# Accepts single hostnames or a file containing a list of hostnames.
# The optional 3rd parameter (expected value) gives a colored output
# for fast and easy visual analyzing.
# Usage: ./dnscheck [RECORD TYPE] [INPUT(FILE)] ('expected value')
EXPECTED="$3"