Instantly share code, notes, and snippets.

View gist:763e9b93c5a6663518135ef87facdf09
SYSCALL(args) = return
[2018-10-17 21:35:08] [NOTICE] Source [public-resolvers.md] loaded
[2018-10-17 21:35:08] [NOTICE] dnscrypt-proxy 2.0.17
[2018-10-17 21:35:08] [NOTICE] Dropping privileges
[2018-10-17 21:35:08] [FATAL] Unable to reexecute [/usr/local/opt/dnscrypt-proxy/sbin/dnscrypt-proxy]
open("/dev/dtracehelper\0", 0x2, 0xFFFFFFFFEFBFEDC0) = 3 0
ioctl(0x3, 0x80086804, 0x7FFEEFBFEBD0) = 0 0
close(0x3) = 0 0
access("/AppleInternal/XBS/.isChrooted\0", 0x0, 0x0) = -1 Err#2
bsdthread_register(0x7FFF5C753418, 0x7FFF5C753408, 0x2000) = 1073742047 0
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"