Skip to content

Instantly share code, notes, and snippets.

node with name "rabbit" already running on "chef-xxxxx"
2015-01-29_02:44:28.18158 diagnostics:
2015-01-29_02:44:28.18191 - nodes and their ports on chef-xxxxx: [{bookshelf,33831},
2015-01-29_02:44:28.18196 {oc_bifrost,48981},
2015-01-29_02:44:28.18196 {oc_reporting,44535},
2015-01-29_02:44:28.18197 {mover,53862},
2015-01-29_02:44:28.18197 {erchef,41226},
2015-01-29_02:44:28.18197 {rabbit,25672},
2015-01-29_02:44:28.18198 {rabbitmqprelaunch11088,32900}]
[root@***** tmp]# gem list | grep foreman
/usr/local/lib/ruby/1.9.1/yaml.rb:84:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
foreman (0.77.0)
foreman-tasks (0.6.12)
foreman_chef (0.1.1)
sudo cat /var/chef/cache/chef-stacktrace.out
Generated at 2015-02-16 11:34:28 +0200
Chef::Exceptions::RecipeNotFound: could not find recipe default for cookbook ssh_authorized_keys
/opt/chef/embedded/apps/chef/lib/chef/cookbook_version.rb:234:in `load_recipe'
/opt/chef/embedded/apps/chef/lib/chef/run_context.rb:169:in `load_recipe'
/opt/chef/embedded/apps/chef/lib/chef/run_context.rb:138:in `block in include_recipe'
/opt/chef/embedded/apps/chef/lib/chef/run_context.rb:137:in `each'
#!/bin/bash
debug=''
debug=''
is_dead_ping()
{
# echo "is_dead_ping $1 ?"
ping -c 1 $1 > /dev/null
if [ $? -ne 0 ]; then
# echo $1 is down
return 0
new-alias() {
local last_command=$(echo `history |tail -n2 |head -n1` | sed 's/[0-9]* //')
echo alias $1="'""$last_command""'" >> ~/.bash_profile
. ~/.bash_profile
}
#!/usr/bin/env groovy
pipeline {
options {
timestamps()
skipDefaultCheckout()
}
environment {
REPO_PATH = "***/***"
@levmichael3
levmichael3 / .p10k.zsh
Created June 14, 2022 12:59
.p10k.zsh PROD
'builtin' 'local' '-a' 'p10k_config_opts'
[[ ! -o 'aliases' ]] || p10k_config_opts+=('aliases')
[[ ! -o 'sh_glob' ]] || p10k_config_opts+=('sh_glob')
[[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand')
'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand'
() {
emulate -L zsh
setopt no_unset extended_glob
unset -m 'POWERLEVEL9K_*'
'builtin' 'local' '-a' 'p10k_config_opts'
[[ ! -o 'aliases' ]] || p10k_config_opts+=('aliases')
[[ ! -o 'sh_glob' ]] || p10k_config_opts+=('sh_glob')
[[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand')
'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand'
() {
emulate -L zsh -o extended_glob
@levmichael3
levmichael3 / .p10k.zsh
Created August 23, 2022 10:36
.p10k.zsh
# p10k.zsh configuration file
#
# Author: Thomas Bendler <code@thbe.org>
# Date: Sun Jan 12 17:54:00 CET 2020
#
# Based on romkatv/powerlevel10k/config/p10k-lean.zsh, checksum 551.
# For more information see https://github.com/romkatv/powerlevel10k
#
# Apply configiguration changes without restarting zsh.
# Edit ~/.p10k.zsh and type `source ~/.p10k.zsh`.