Skip to content

Instantly share code, notes, and snippets.

View zeppelinen's full-sized avatar
🖖

Alexander Naydenko zeppelinen

🖖
View GitHub Profile
@zeppelinen
zeppelinen / lftp.spec
Created January 15, 2019 08:18
LFTP-4.8.4 RPM Spec for CentOS 7
Summary: A sophisticated file transfer program
Name: lftp
Version: 4.8.4
Release: 3%{?dist}
License: GPLv3+
Group: Applications/Internet
Source0: ftp://ftp.yar.ru/lftp/lftp-%{version}.tar.gz
URL: http://lftp.yar.ru/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ncurses-devel, gnutls-devel, pkgconfig, readline-devel, gettext
@zeppelinen
zeppelinen / jenkins_build_number.groovy
Created January 7, 2019 23:17
Set build number for job in Jenkins
// Manage Jenkins -> Script console
job = Jenkins.getInstance().getItemByFullName("MyFolder/MyJob", Job.class)
job.nextBuildNumber = 125
job.save()
@zeppelinen
zeppelinen / list_jenkins_jobs.groovy
Created January 7, 2019 21:32
List jobs in Jenkins
// Go to Script Console under Manage Jenkins
// print the name of all jobs including jobs inside of a folder and the folders themselves:
Jenkins.instance.getAllItems(AbstractItem.class).each {
println(it.fullName)
};
// print the name of all jobs including jobs inside of a folder, but not the folders themselves.
@zeppelinen
zeppelinen / gist:716c239c5516b30ce415877903d4ae17
Last active January 22, 2018 21:24
java ssl troubleshooting
git clone https://github.com/dimalinux/SSLPing.git
java -Djavax.net.debug=all -Djavax.net.ssl.trustStore=trustStore -jar SSLPing/dist/SSLPing.jar SERVER.NAME 443 > ssl_troubleshooting.log