Skip to content

Instantly share code, notes, and snippets.

@PaulusTM
PaulusTM / DecryptJenkinsCredentials.groovy
Created October 14, 2019 19:55 — forked from sirrapa/DecryptJenkinsCredentials.groovy
Iterate and decrypt credentials (Security Breach!!!!)
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){
@PaulusTM
PaulusTM / knife cheat
Created December 11, 2015 10:50 — forked from ipedrazas/knife cheat
Hello!
# 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
@PaulusTM
PaulusTM / knife.rb
Last active September 16, 2015 09:58 — forked from garystafford/knife.rb
Gists for blogpost, 'Configure Chef on Windows for a Proxy Server': http://wp.me/p1RD28-11w. Settings for knife.rb file when using a proxy server from a Windows host. Set environment variables manually or use the Windows' command 'setx VARIABLE value'. You must close the current windows prompt and open a new one to see the SETX changes (env | gr…
# 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"
#[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
" -----------------------------------------------------------------------------
" VIM Configuration for Janus (https://github.com/carlhuda/janus.git)
" Lars Smit [email protected]
" -----------------------------------------------------------------------------
" -----------------------------------------------------------------------------
" Basics
" -----------------------------------------------------------------------------
set encoding=utf8
# ~/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"