Skip to content

Instantly share code, notes, and snippets.

View rpardini's full-sized avatar
😶‍🌫️
Lost

Ricardo Pardini rpardini

😶‍🌫️
Lost
View GitHub Profile
@rpardini
rpardini / sample-fragment.sh
Created May 6, 2021 05:03
Example sample-fragment.sh produced by Armbian
# Sample Armbian build system fragment with all hooks.
# This file is auto-generated from the build system.
# Please, always use the latest available version of this file as a starting point for your own fragments.
# Read more about the build extensibility system at https://todo
#### *give the config a chance to override the family/arch defaults*
### This hook is called after the family configuration ("sources/families/xxx.conf") is sourced.
### Since the family can override values from the user configuration and the board configuration,
### it is often used to in turn override those.
post_family_config__be_more_awesome() {
@rpardini
rpardini / hooks.auto.docs.md
Created May 6, 2021 05:00
Example hooks.auto.docs.md

Armbian build system extensibility documentation

  • This documentation is auto-generated.

Hooks

  • Hooks are listed in the order they are called.

post_family_config

give the config a chance to override the family/arch defaults

This hook is called after the family configuration (sources/families/xxx.conf) is sourced. Since the family can override values from the user configuration and the board configuration, it is often used to in turn override those.

@rpardini
rpardini / if_.sh
Created December 27, 2017 13:19
Fixed/patched if_ munin plugin for xenial
#!/bin/bash
# -*- sh -*-
: << =cut
=head1 NAME
if_ - Wildcard-plugin to monitor traffic and errors on network
interfaces.
@rpardini
rpardini / setupYubikey.sh
Created December 13, 2017 11:06
Automated-ish setup of Yubikey for SSH logins (replace ssh-agent with gpg-agent from brew)
#! /bin/bash
set -e
GPGCONF_PATH=$(which gpgconf)
if [[ "$GPGCONF_PATH" != "/usr/local/bin/gpgconf" ]]; then
echo "You don't have gnupg installed from brew, lets install it."
brew install gnupg pinentry-mac ykpers
else