All of the following information is based on go version go1.17.1 darwin/amd64.
| GOOS | Out of the Box |
|---|---|
aix |
✅ |
android |
✅ |
| import jenkins.* | |
| import hudson.* | |
| import com.cloudbees.plugins.credentials.* | |
| import com.cloudbees.plugins.credentials.common.* | |
| import com.cloudbees.plugins.credentials.domains.* | |
| import com.cloudbees.jenkins.plugins.sshcredentials.impl.* | |
| import hudson.plugins.sshslaves.*; | |
| import hudson.model.* | |
| import jenkins.model.* | |
| import hudson.security.* |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import json | |
| import sys | |
| import codecs | |
| #reload(sys) # for OSX | |
| sys.stdout = codecs.getwriter('utf8')(sys.stdout) | |
| #sys.setdefaultencoding('utf-8') # for OSX |
| # Please see the following blog post for more information: | |
| # | |
| # https://www.hashicorp.com/blog/using-hashicorp-vault-with-chef.html | |
| # | |
| resource_name :vault_secret | |
| property :path, String, name_property: true | |
| property :destination, String |
| import jenkins.* | |
| import hudson.* | |
| import com.cloudbees.plugins.credentials.* | |
| import com.cloudbees.plugins.credentials.common.* | |
| import com.cloudbees.plugins.credentials.domains.* | |
| import com.cloudbees.jenkins.plugins.sshcredentials.impl.* | |
| import hudson.plugins.sshslaves.*; | |
| import hudson.model.* | |
| import jenkins.model.* | |
| import hudson.security.* |
| # 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 |
| # /etc/systemd/system/clustercheck.socket | |
| [Unit] | |
| Description=MySQL Clustercheck Socket | |
| [Socket] | |
| ListenStream=9200 | |
| Accept=true | |
| [Install] |
| #!/bin/bash | |
| # Install dependencies | |
| apt-get install libsqlite3-dev ruby1.9.1-dev | |
| # Install the gem | |
| gem install mailcatcher | |
| # Make it start on boot | |
| echo "@reboot $(which mailcatcher) --ip=0.0.0.0" >> /etc/crontab | |
| update-rc.d cron defaults |
| # Create your superuser | |
| $ mongo | |
| > use admin | |
| > db.createUser({user:"someadmin",pwd:"secret", roles:[{role:"root",db:"admin"}]}) | |
| > exit | |
| # Alias for convenience (optional and at your own risk) | |
| $ echo 'alias mongo="mongo --port 27017 -u someadmin -p secret --authenticationDatabase admin"' >> ~/.bash_profile | |
| $ source ~/.bash_profile |
| #!/bin/bash | |
| # This tool can be used to sync down Red Hat based packages from RHN using only Red Hat shipped tools | |
| # Brian "Red Beard" Harrington <brian@dead-city.org> | |
| # Copyright 2013 | |
| # | |
| # To satisfy the pre-reqs for this script install the following two rpms: | |
| # yum-utils | |
| # createrepo_c (in RHEL 8 createrepo and createrepo_c have been combined) | |
| # See https://github.com/rpm-software-management/createrepo_c#differences-in-behavior-between-createrepo_c-and-createrepo |