Skip to content

Instantly share code, notes, and snippets.

View stahnma's full-sized avatar

Michael Stahnke stahnma

View GitHub Profile
all:
rm -f mike
"You, or somebody claiming to be you has forgotten your password on #{site}. To reset your password p
lease use the following link which is valid for the next #{time} hours.
#{session_ur}.
If you miraculously remember your password, or decide not to reset anything, your old password will st
ill work.
Thank you,
#{site} Admins
#!/usr/bin/env ruby
#
class PW
attr_accessor :password
def initialize(password, options = {})
@password = password
@minUpper = options[:min_upper] || 1
@minLower = options[:min_lower] || 1
@minNum = options[:min_num] || 1
#!/usr/bin/env ruby
#
class PW
attr_accessor :password
def initialize(password, options = {})
@password = password
@minUpper = options[:min_upper] || 1
@minLower = options[:min_lower] || 1
@minNum = options[:min_num] || 1
ruby backupDB.rb --username cacti --password cacti --database cacti --type mysql
Backup Ran for: cacti
Total Archive Size is 1.1M
ruby backupDB.rb --username cacti --password cacti --database cacti --type mysql --backuppath /tmp/yermom
Backup Ran for: cacti
Total Archive Size is 364K
stahnma@olive /home/stahnma/development/websages> ssh loki.websages.com
stahnma@loki.websages.com's password:
Last login: Fri Sep 18 15:09:58 2009 from nat-7.cat.com
Could not chdir to home directory /home/stahnma: No such file or directory
I have no name!@loki:/$ whoami
whoami: cannot find name for user ID 5005
I have no name!@loki:/$ who am i
stahnma pts/0 2009-09-18 15:10 (nat-7.cat.com)
I have no name!@loki:/$ sudo getent passwd stahnma
VM Adoption Cycle
----------------
1. Physical Server Utilization/Consolidation Study -- Management
2. Recommend VMs -- Server Teams
3. Fear -- Application Teams
4. Hug my server -- Applications Teams
5. VM adoption -- Application Teams
6. VMs are free, give me more -- Application Teams
7. VM sprawl -- Everybody
8. zomg too many VMs (cost out of control) -- Server Team
Phase 1
--------
* Centralized Authentication
* Backups/Restores
* Monitoring
Phase 2
--------
* LDAP Policy
* Puppet Policy for redeployment and staging
stahnma@loki:/var/cache/git/wcyd/devel/automate$ ./instance
String found where operator expected at ./instance line 152, near "'linode'"
(Missing semicolon on previous line?)
String found where operator expected at ./instance line 157, near "'amazon'"
(Missing semicolon on previous line?)
syntax error at ./instance line 145, near "$needs { "
Missing right curly or square bracket at ./instance line 302, at end of line
Execution of ./instance aborted due to compilation errors.
stahnma@loki:/var/cache/git/wcyd/devel/automate$