Version: | 0.1 |
---|---|
Author: | Matous Jan Fialka |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Mirror CentOS v7.0.1406 to /srv/mirrors/centos/7.0.1406 | |
Wants=network-online.target | |
RefuseManualStart=true | |
RefuseManualStop=true | |
[Service] | |
Type=simple | |
User=mirrors | |
Group=mirrors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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>]=... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# USA - Useful Shell Aliases | |
# Copyright (C) 2015-2017 Matous Jan Fialka, <http://mjf.cz/> | |
# Released under the terms of "The MIT License" | |
# | |
# Common aliases (SELinux support) | |
# | |
alias lz='ls -aZ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# fswap - File swap | |
# Copyright (C) 2015 Matous Jan Fialka, <http://mjf.cz/> | |
# Released under the terms of "The MIT License" | |
if [ $# -ne 2 ] | |
then | |
echo "fswap FILE1 FILE2" >&2 | |
exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Include this function in your ~/.bashrc file | |
# | |
mysqlreport() { | |
$(which mysqlreport) $@ | mysqlreportfmt | less -c -R | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// nagios_varnish_plugin - Monitoring for Varnish Cache | |
// Copyright (C) 2015 Matous Jan Fialka, <http://mjf.cz/> | |
// Released under the terms of "The MIT License" | |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# common.vcl - Varnish Cache 4 Common Subroutines | |
# Copyright (C) 2015 Matous Jan Fialka, <http://mjf.cz/> | |
# Released under the terms of "The MIT License" | |
vcl 4.0; | |
import std; | |
# | |
# OPTIONS |