Skip to content

Instantly share code, notes, and snippets.

View oswalpalash's full-sized avatar

Palash Oswal oswalpalash

View GitHub Profile
sudo yum install -y epel-release
sudo yum install -y varnish
sudo systemctl enable varnish
sudo varnishd -V
backend default {
.host = "IP_ADDRESS";
.port = "8080";
}
sudo yum install -y httpd
service httpd start
sudo apachectl restart
sudo systemctl restart varnish
HTTP/1.1 200 OK
Date: Wed, 04 Nov 2015 10:21:07 GMT
Server: Apache/2.4.6 (CentOS)
Last-Modified: Fri, 02 Oct 2015 10:36:53 GMT
ETag: "6c-5211cdbf61c14"
Content-Length: 108
Content-Type: text/html; charset=UTF-8
X-Varnish: 32770
Age: 0
Via: 1.1 varnish-v4
sudo yum install -y rpm-build
sudo yum install -y redhat-rpm-config
sudo yum install -y rpmdevtools rpmlint
#Post Installation
rpmdev-setuptree
@oswalpalash
oswalpalash / curl.spec
Last active August 3, 2016 05:57
Generate curl rpm with OpenSSL
[palash@localhost SPECS]$ cat curl.spec
%define name owncurl
%define tarball curl
%define version 7.50.0
%define release 1
%define curlroot %{_builddir}/%{tarball}-%{version}
%define curlprefix /opt/owncurl
Summary: get a file from an FTP or HTTP server.