Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
While checking the status of packages using dpkg, it is possible to see a ‘rc’ state for some unused packages, this corresponds to:
In other words: the package is not completely removed (config files are still present), but not installed anymore (and obviously not used).
To see a list of packages marked as ‘rc’:
| import com.cloudbees.plugins.credentials.* | |
| import com.cloudbees.plugins.credentials.common.* | |
| import com.cloudbees.plugins.credentials.domains.* | |
| import com.cloudbees.plugins.credentials.impl.* | |
| import com.cloudbees.jenkins.plugins.sshcredentials.impl.* | |
| import org.jenkinsci.plugins.plaincredentials.impl.* | |
| // def item = Jenkins.instance.getItem("your-folder") |
| #!groovy | |
| // imports | |
| import com.cloudbees.plugins.credentials.* | |
| import com.cloudbees.plugins.credentials.domains.Domain | |
| import com.cloudbees.plugins.credentials.impl.* | |
| import hudson.util.Secret | |
| import jenkins.model.Jenkins | |
| // parameters |
| Some Jenkinsfile examples |
| # Install Vagrant and virsh command | |
| dnf install -y libvirt-client vagrant-hostmanager vagrant-libvirt | |
| # Allow to manage VMs via libvirt remotely (using TCP connection) | |
| cat >> /etc/libvirt/libvirtd.conf << EOF | |
| listen_tls = 0 | |
| listen_tcp = 1 | |
| listen_addr = "0.0.0.0" | |
| auth_tcp = "none" |
I'm working with Ansible and many of servers every day, so let me show you, how can waste less of your time! :)
Edit sshd config and disable UseDNS, it's mainly used only for logging and authentication. But.. only when you have set IgnoreRhosts in your config. So who doesn't know, should use it with clean mind. Because this has truly so far with security. :)
| def getProjectName() { | |
| return 'JenkinsPipeline' | |
| } | |
| def getJDKVersion() { | |
| return 'jdk1.8.0_101' | |
| } | |
| def getMavenConfig() { | |
| return 'maven-config' |
Quick notes on setting up a lightweight SVN server that is accessible via http (WebDav) and the svn custom protocol (svn://).
credits to :