Instantly share code, notes, and snippets.

View rhel-centos-el7-checkinstall.patch
diff --git a/checkinstall b/checkinstall
index 41a7978..26b1fe8 100755
--- a/checkinstall
+++ b/checkinstall
@@ -468,10 +468,10 @@ function copy_dir_hierarchy {
if [ $? -eq 0 ]; then
if [ deref_parents -eq 1 ]; then
# Add the -h option to the tar command for dereferencing
- $TAR --no-recursion -C "${root}" -cphf - $files | $TAR -f - -xvpC \
+ $TAR --no-recursion -C "${root}" -cphf - $files | $TAR -f - -xvpPC \
View install-latest-ruby-on-centos-7.sh
#!/usr/bin/env bash
set -ex
toolset=devtoolset-7
yum install -y epel-release # EPEL repo
yum install -y centos-release-scl # shiny-new(er) compliers
# make sure there are no surprises installing from repos
grep -r gpgkey= /etc/yum.repos.d/ | cut -d= -f2 | xargs -L1 rpm --import
yum update -y # system update
# misc dev tools, but we're not going to use the ancient toolchain
View bitfield.go
package main
// #include <stdio.h>
// #include <stdint.h>
/*
#pragma pack(push,1)
typedef struct _s{
uint32_t a: 16;
uint32_t b: 15;
uint32_t c: 1;
View centos_package_group_names
#!/bin/bash
#
# dependencies:
#
# curl
# sed
# gawk
# sort
# head
set -e
View keybase.md

Keybase proof

I hereby claim:

  • I am steakknife on github.
  • I am steakknife (https://keybase.io/steakknife) on keybase.
  • I have a public key ASCQdL64Ay-CfI1p2LMC24ZMM9z0iKsuVmM6MkX-vZYGnQo

To claim this, I am signing this object:

View build.sh
#!/usr/bin/env bash
set -e
[ -z "$DEBUG" ] || set -x
PENDING_INSTALLS=
_install() {
local pkg
for pkg in "$@"; do
PENDING_INSTALLS+=" $pkg"
done
View nginx-add-zlib-cc-and-ld-opt.patch
diff --git a/auto/cc/acc b/auto/cc/acc
index 64fa671..4d726ce 100644
--- a/auto/cc/acc
+++ b/auto/cc/acc
@@ -11,4 +11,4 @@ CFLAGS="$CFLAGS -Ae"
CC_TEST_FLAGS="-Ae"
PCRE_OPT="$PCRE_OPT -Ae"
-ZLIB_OPT="$ZLIB_OPT -Ae"
+ZLIB_CC_OPT="$ZLIB_CC_OPT -Ae"
View gist:d87a3fcc6b00c8759608298ecf19ce49
abstract_type (0.0.7)
actioncable (5.2.1)
actionmailer (5.2.1, 4.0.13)
actionpack (5.2.1, 5.2.0, 5.0.7, 4.0.13)
actionview (5.2.1, 5.2.0, 5.0.7)
active_model_serializers (0.10.7)
activeadmin (1.3.1)
activejob (5.2.1)
activemerchant (1.82.0)
activemodel (5.2.1, 5.2.0, 5.0.7, 4.0.13)
View chnode.rb
class Chnode < Formula
desc "Change between installed Node versions in your current shell."
homepage "https://github.com/steakknife/chnode"
url "https://github.com/steakknife/chnode/archive/v1.2.3.tar.gz"
sha256 "ae0bd1d9227ef76286d19331f9a3c5fcc1926e70f4ef0d3896a8f9f7b463c792"
depends_on "node"
def install
bin.install "chnode", "chnode-auto", "chnode-exec"
View musl.rb
class Musl < Formula
desc "Linux cross compilers based on musl libc"
homepage "https://github.com/richfelker/musl-cross-make"
url "https://github.com/richfelker/musl-cross-make/archive/v0.9.2.tar.gz"
sha256 "828b4913c80018d25fff5809aa6691141be4dc9001d3204ae9a94a8e71a5176f"
head "https://github.com/richfelker/musl-cross-make.git"
option "with-arm-hf", "Build cross-compilers targeting arm-linux-musleabihf"
option "with-arm", "Build cross-compilers targeting arm-linux-musleabi"
option "with-i486", "Build cross-compilers targeting i486-linux-musl"