Skip to content

Instantly share code, notes, and snippets.

View mattolenik's full-sized avatar

Matthew Olenik mattolenik

View GitHub Profile
From 51270ab670ce3b4c7d4987e4f28f9615094bae31 Mon Sep 17 00:00:00 2001
From: Abhinav Tripathi <genuinelucifer@gmail.com>
Date: Wed, 3 Apr 2019 15:13:05 +0900
Subject: [PATCH] Add the ability to specify multiple branches and search
through those
Adapted the patch at https://github.com/caglar10ur/Hound/commit/a9208072a0444cd562592ca1bf348bf816ba4c2a
and added the option to specify allbranches search
---
api/api.go | 35 ++++++++++++++++++-----------
@Ray33
Ray33 / gist:ba189a729d81babc99d7cef0fb6fbcd8
Last active July 22, 2022 10:50 — forked from SamCyanide/gist:780afff4c3e1a9e105264c2a476e037c
Amazon Elastic Network Adapter (ENA) on CentOS 7
sudo su
yum --enablerepo=extras install epel-release
yum -y install patch dkms kernel-devel perl
yum update
#Required for kernel num 5:
yum --enablerepo=elrepo-kernel -y install kernel-ml-devel
reboot
@SamCyanide
SamCyanide / gist:780afff4c3e1a9e105264c2a476e037c
Last active August 27, 2018 22:23 — forked from MennoTammens/gist:95045af97914a00db0e2d542a9b00fe2
Amazon Elastic Network Adapter (ENA) on CentOS 6
sudo su
yum --enablerepo=extras install epel-release
yum -y install patch dkms kernel-devel perl
yum update
reboot
curl -o ena_linux_1.5.0.tar.gz https://codeload.github.com/amzn/amzn-drivers/tar.gz/ena_linux_1.5.0
tar zxvf ena_linux_1.5.0.tar.gz
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active June 15, 2024 00:55
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@zachharkey
zachharkey / Recursively copy a directory (using cp, tar or rsync).md
Last active April 15, 2024 19:39
Recursively copy a directory (using cp, tar or rsync). Reformatted from http://snipplr.com/view/26670/

Recursively copy a directory (using cp, tar or rsync)

Original Source: http://snipplr.com/view/26670/

Reformatted for improved readability and personal reference.

How does one make a recursive, identical copy of /source/ into /target/?

I suppose you want to do that for archiving or duplicating something and want to preserve "everything". That includes permissions, ownership, filetypes, timestamps etc.

@davidbalbert
davidbalbert / gist:6815258
Last active February 29, 2024 16:12
How to install custom SSL certificates on an ASUS RT-N66U running asuswrt-merlin
###########################################
# IMPORTANT NOTE:
#
# As of asuswrt-merlin 380.67 Beta, you
# can now configure SSL certificates from
# the Webui, making these instructions
# unnecessary.
###########################################
@erikw
erikw / snp
Last active December 24, 2023 06:11
snp: Wrap shell command in BTRFS snapper pre-post snapshots and log outputs.
#!/usr/bin/env bash
# Runs a command wrapped in btrfs snapper pre-post snapshots.
# Usage: $ snp <commands>
# e.g.: $ snp pacman -Syyu
# Requirements: snapper (https://wiki.archlinux.org/title/snapper)
# The latest version of this script is hosted at https://gist.github.com/erikw/5229436
log_path="/var/local/log/snp"
date=$(date "+%Y-%m-%d-%H%M%S")
log_file="${log_path}/snp_${date}.log"
@eqhmcow
eqhmcow / hfsc-shape.sh
Last active August 2, 2023 11:59
HFSC - linux traffic shaping's best kept secret
#!/bin/bash
# As the "bufferbloat" folks have recently re-discovered and/or more widely
# publicized, congestion avoidance algorithms (such as those found in TCP) do
# a great job of allowing network endpoints to negotiate transfer rates that
# maximize a link's bandwidth usage without unduly penalizing any particular
# stream. This allows bulk transfer streams to use the maximum available
# bandwidth without affecting the latency of non-bulk (e.g. interactive)
# streams.