Skip to content

Instantly share code, notes, and snippets.

@mjf
mjf / sysconfig-ifcfg-scripts-gen
Last active August 30, 2021 15:47
Simple shell scripts to create sysconfig ifcfg files and udev rules files for PCI interfaces
#! /bin/sh
# Generate /etc/sysconfig/network-scripts/ifcfg-*
# Copyright (C) 2014 Matous J. Fialka, <http://mjf.cz/>
# Released under the terms of The MIT License
#
# Environment variables
# ---------------------
#
# IPADDR[<n>]=...
@CarsonF
CarsonF / composer.sh
Last active January 19, 2024 11:10
Global Composer Setup
#!/usr/bin/env bash
# As root
# Make config and data dirs
mkdir /etc/composer -p || exit 1
mkdir /var/lib/composer -p
# Set composer home dir to global location
cat << EOF > /etc/profile.d/composer.sh
#!/usr/bin/env bash