Skip to content

Instantly share code, notes, and snippets.

View andyshinn's full-sized avatar
🖥️
don't put computers in your mouth

Andy Shinn andyshinn

🖥️
don't put computers in your mouth
View GitHub Profile
[root@foreman1 db]# cat /var/log/foreman/production.log
# Logfile created on Thu May 10 16:32:46 -0400 2012** has_many_polymorphs: rails environment detected
** has_many_polymorphs: preloading parent model Usergroup
** has_many_polymorphs: preloading parent model Usergroup
Processing DashboardController#index (for 192.168.50.1 at 2012-05-10 16:40:45) [GET]
Redirected to https://192.168.50.6/
Filter chain halted as [:require_ssl] rendered_or_redirected.
Completed in 3ms (DB: 0) | 302 Found [http://192.168.50.6/]
Processing IssuesController#show (for 192.168.1.75 at 2012-05-22 14:02:23) [GET]
Parameters: {"controller"=>"issues", "id"=>"46", "action"=>"show"}
Rendering template within layouts/base
Rendering issues/show
Completed in 2600ms (View: 1089, DB: 1254) | 200 OK [https://services.my.domain/redmine/issues/46]
Processing SearchController#index (for 192.168.1.75 at 2012-05-23 09:46:42) [GET]
Parameters: {"controller"=>"search", "action"=>"index", "q"=>"46"}
Redirected to https://services.my.domain/redmine/issues/46
Completed in 24ms (DB: 15) | 302 Found [https://services.my.domain/redmine/search?q=46]
Processing IssuesController#show (for 192.168.1.75 at 2012-05-23 09:46:42) [GET]
Parameters: {"controller"=>"issues", "id"=>"46", "action"=>"show"}
Rendering template within layouts/base
Rendering issues/show
Processing SearchController#index (for 192.168.1.75 at 2012-05-23 09:46:42) [GET]
Parameters: {"controller"=>"search", "action"=>"index", "q"=>"46"}
Redirected to https://services.my.domain/redmine/issues/46
Completed in 24ms (DB: 15) | 302 Found [https://services.my.domain/redmine/search?q=46]
Processing IssuesController#show (for 192.168.1.75 at 2012-05-23 09:46:42) [GET]
Parameters: {"controller"=>"issues", "id"=>"46", "action"=>"show"}
Rendering template within layouts/base
Rendering issues/show
ubuntu@development1:~$ sudo salt '*' pkg.list_upgrades
{'staging1.musiccas.com': {'salt-common': '0.10.0-1ubuntu5',
'salt-minion': '0.10.0-1ubuntu5'}}
{'development1.musiccas.com': {'salt-common': '0.10.0-1ubuntu5',
'salt-master': '0.10.0-1ubuntu5',
'salt-minion': '0.10.0-1ubuntu5'}}
{'production1.musiccas.com': {'salt-common': '0.10.0-1ubuntu5',
'salt-minion': '0.10.0-1ubuntu5'}}
ubuntu@development1:~$ sudo salt '*' pkg.upgrade
{'development1.musiccas.com': 'Traceback (most recent call last):\n File "/usr/lib/pymodules/python2.7/salt/minion.py", line 277, in _thread_return\n ret[\'return\'] = func(*args, **kw)\n File "/usr/lib/pymodules/python2.7/salt/modules/apt.py", line 237, in upgrade\n salt.utils.daemonize_if(__opts__, **kwargs)\nNameError: global name \'kwargs\' is not defined\n'}
from transporter import *
from storages.backends.s3boto import S3BotoStorage
TRANSPORTER_CLASS = "TransporterS3"
class TransporterS3(Transporter):
var phantom = require('phantom'), mystatus;
phantom.create(function(ph) {
ph.createPage(function(page) {
page.open('https://localhost:8443/login', function(status) {
mystatus = status
});
});
});
~/Projects/server ⮀ ⭠ vagrant_1.3 ⮀ VAGRANT_LOG=debug vagrant up
INFO global: Vagrant version: 1.3.1
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.1/plugins/commands/box/plugin.rb
INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.1/plugins/commands/destroy/plugin.rb
INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.1/plugins/commands/halt/plugin.rb
INFO manager: Registered plugin: halt command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.1/plugins/commands/help/plugin.rb
INFO manager: Registered plugin: help command
@andyshinn
andyshinn / gist:6619050
Created September 19, 2013 04:11
My fixed agnoster theme for patched Menlo Powerline
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#
~/Projects/server ⮀ ⭠ supervisor_absent_fix ⮀ VAGRANT_LOG=DEBUG vagrant up mysql
INFO global: Vagrant version: 1.3.5
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/plugins/commands/box/plugin.rb
INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/plugins/commands/destroy/plugin.rb
INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/plugins/commands/halt/plugin.rb
INFO manager: Registered plugin: halt command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/plugins/commands/help/plugin.rb
INFO manager: Registered plugin: help command