This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def creds = com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials( | |
com.cloudbees.plugins.credentials.Credentials.class, | |
Jenkins.instance, | |
null, | |
null | |
) | |
for(c in creds) { | |
println(String.format("%s --> %s: %s",c, c.id, c.description)) | |
// if(c instanceof com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# knife cheat | |
## Search Examples | |
knife search "name:ip*" | |
knife search "platform:ubuntu*" | |
knife search "platform:*" -a macaddress | |
knife search "platform:ubuntu*" -a uptime | |
knife search "platform:ubuntu*" -a virtualization.system | |
knife search "platform:ubuntu*" -a network.default_gateway |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See http://docs.opscode.com/config_rb_knife.html | |
# for more information on knife configuration options | |
# Knife expects USERNAME, USERDNSDOMAIN, PASSWORD, PROXY_SERVER, | |
# and PROXY_PORT environment variables to be set at runtime. | |
current_dir = File.dirname(__FILE__) | |
log_level :info | |
log_location STDOUT | |
node_name "chef_user_here" | |
client_key "#{ENV['HOME']}/.chef/chef_client_here.pem" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[root /etc/rsyslog.d]# cat 12-nagios.conf | |
$ModLoad imfile | |
$InputFilename /var/log/nagios/nagios.log | |
$InputFileStateFile .nagios.rsyslog | |
$InputFileTag nagios.log | |
$InputFileFacility local6 | |
$InputFileSeverity info | |
$InputRunFileMonitor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ----------------------------------------------------------------------------- | |
" VIM Configuration for Janus (https://github.com/carlhuda/janus.git) | |
" Lars Smit [email protected] | |
" ----------------------------------------------------------------------------- | |
" ----------------------------------------------------------------------------- | |
" Basics | |
" ----------------------------------------------------------------------------- | |
set encoding=utf8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/Library/Application Support/TextMate/Bundles | |
# Cleanup Bundles | |
rm -rf *.tmbundle | |
# Update bundles from Github | |
# HTML | |
git clone git://github.com/textmate/html.tmbundle.git "HTML.tmbundle" | |
git clone git://github.com/johnmuhl/html5.tmbundle.git "HTML5.tmbundle" |