Skip to content

Instantly share code, notes, and snippets.

View mrintegrity's full-sized avatar

Alan McGinlay mrintegrity

View GitHub Profile
@mrintegrity
mrintegrity / README.md
Created January 23, 2018 12:57 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed


__ __)
(, ) | / /)
| /| / _ // _ ______ _ _/_ ___
|/ |/ _(/_(/_(__(_) // (__(/_ (__(_)
/ |
, ,
___ __ __ _/_ _ _ __ _/_
// (_/ (__(_/ (_(___(/_(_/_/ (__(_(__(_/_
.-/ .-/
(_/ (_/
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) &&
$_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
$_SERVER['HTTPS'] = 'on';
}
else {
$_SERVER['HTTPS']='';
}
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']) {
$base_url = 'https://' . $_SERVER['HTTP_HOST'];
}
foreman@puppet:~$ ./extras/dbmigrate
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
== ChangeHostBuildDefaultToFalse: migrating ==================================
-- change_column(:hosts, :build, :boolean, {:default=>false})
-> 0.0071s
rake aborted!
An error has occurred, all later migrations canceled:
err: /Stage[main]/Foreman::Install/Package[foreman-sqlite3]/ensure: change from absent to latest failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install foreman-sqlite3' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
foreman-sqlite3 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up foreman (1.0.1+ubuntu1) ...
dpkg: error processing foreman (--configure):
subprocess installed post-installation script returned error exit status 6
Started GET "/compute_resources/1-asdf_drs/vms" for 1xx.xx.xx.2 at Tue Oct 09 13:25:00 +0200 2012
Processing by ComputeResourcesVmsController#index as HTML
Parameters: {"compute_resource_id"=>"1-kista_drs"}
Operation FAILED: undefined method `[]=' for nil:NilClass
Rendered common/500.rhtml (4.0ms)
Completed 500 Internal Server Error in 18087ms (Views: 10.1ms | ActiveRecord: 8.2ms)
root@puppet:~# echo include puppet, puppet::server, foreman, foreman_proxy | puppet apply --modulepath $MODULE_PATH
notice: /Stage[main]/Puppet::Server::Passenger/File[/etc/default/puppetmaster]/ensure: defined content as '{md5}0f7a068f943de1ee1568c7da292c1e06'
notice: /Stage[main]/Tftp::Install/Package[syslinux]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Foreman::Install/Foreman::Install::Repos[foreman]/File[/etc/apt/sources.list.d/foreman.list]/ensure: defined content as '{md5}22d4e292d3323e9ccbe1471fa3d3cde0'
notice: /Stage[main]/Foreman::Install/Foreman::Install::Repos[foreman]/Exec[foreman-key-foreman]: Triggered 'refresh' from 1 events
notice: /Stage[main]/Foreman::Install/Foreman::Install::Repos[foreman]/Exec[update-apt-foreman]: Triggered 'refresh' from 1 events
err: /Stage[main]/Foreman::Install/Package[foreman-sqlite3]/ensure: change from purged to latest failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install foreman-sqlite3'
apt::source { 'quantal':
location => 'http://se.archive.ubuntu.com/ubuntu',
release => 'quantal',
repos => 'universe',
pin => '-10',
include_src => true
}
@mrintegrity
mrintegrity / dumpoverssh.sh
Created September 26, 2012 08:15 — forked from kirkegaard/dumpoverssh.sh
pipe a mysql dump through gzip and send it over ssh
mysqldump -u MYSQL_USERNAME -p YOUR_DATABASE | gzip -c | ssh USERNAME@YOUR_TO_HOST 'cat > ~/dump.sql.gz'
# Class: pound
#
# This module manages pound
#
# Parameters:
#
# Actions:
#
# Requires:
#