Skip to content

Instantly share code, notes, and snippets.

@jordansissel
jordansissel / 1-output.txt
Last active November 10, 2021 14:28
Convert curl|bash to an rpm with Docker and FPM
% docker build -t rust .
...
# Export the image to tarball, which itself contains tarballs and a manifest.json
% docker save -o rust.tar rust
# Extract the last layer
# tar's -O flag extracts a single entry from the tarball.
# The file we want is the last "Layer" in the manifest.json
% tar -xf rust.tar -O $(tar -xf rust.tar -O manifest.json | jq -r '.[].Layers[-1]') > curlbash.tar
@pulecp
pulecp / build_graphhopper.sh
Last active February 23, 2018 19:18
The build script of .rpm package for graphhopper application: https://github.com/graphhopper/graphhopper
#!/bin/bash
rm -f *.rpm
rm -rf graphhopper
# clone and build the ap
git clone git://github.com/graphhopper/graphhopper.git
cd graphhopper
mvn --projects web -DskipTests=true install assembly:single
@rashidkpc
rashidkpc / gist:3794465
Created September 27, 2012 14:55
Kibana on Passenger
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11
PassengerRuby /usr/bin/ruby
<VirtualHost *:80>
ServerName logs.example.com
ServerAlias logs.example.com
DocumentRoot /home/httpd/Kibana/static
@lfcipriani
lfcipriani / hbase_pseudo_distributed.pp
Created January 6, 2012 18:23
Puppet manifest for a pseudo distribute HBase (using Cloudera distribution in a CentOS)
# Pseudo distributed Hbase install (using Cloudera distribution)
# (all daemons running in one machine)
#
# Parameters:
# $java_installer = Oracle's java rpm.bin file, recommended by Cloudera
# Requires:
# java installer downloaded and present
#
# Parameter