Skip to content

Instantly share code, notes, and snippets.

View mrqaidi's full-sized avatar

Ayman Qaidi mrqaidi

  • Sharzee LLC
  • Cologne - Germnay
View GitHub Profile
#!/usr/bin/expect -f
# wrapper to make passwd(1) be non-interactive
# username is passed as 1st arg, passwd as 2nd
set username [lindex $argv 0]
set password [lindex $argv 1]
set serverid [lindex $argv 2]
set newpassword [lindex $argv 3]
spawn ssh $serverid passwd
@mrqaidi
mrqaidi / me.sh
Created September 14, 2016 13:29
#!/bin/bash
usage="$(basename "$0") [-h] [-s n] -- program to calculate the answer to life, the universe and everything
where:
-h show this help text
-s set the seed value (default: 42)"
seed=42