Note: Run this script as the root
user (no sudo calls are used in the script).
You will need the curl package installed, though I would have no idea why it wouldn't be installed by default:
zypper --non-interactive install curl
This tutorial guides you through creating your first Vagrant project.
We start with a generic Ubuntu VM, and use the Chef provisioning tool to:
Afterwards, we'll see how easy it is to package our newly provisioned VM
Inspired mostly from the Bootstrap DS215j blog post
# Create a directory that won't get nuked during DSM security updates
mkdir /volume1/@optware
cd /volume1/@optware
#!/bin/bash -e | |
# $Id: dm-cache-status,v 1.1 2014/08/19 09:02:46 oernii Exp $ | |
# Status | |
# ------ | |
# | |
# <metadata block size> <#used metadata blocks>/<#total metadata blocks> | |
# <cache block size> <#used cache blocks>/<#total cache blocks> | |
# <#read hits> <#read misses> <#write hits> <#write misses> | |
# <#demotions> <#promotions> <#dirty> <#features> <features>* |
#cloud-config | |
# Set up the package repository to get Rudder. | |
# We use the "latest" pseudo-version name to always get an up-to-date agent. | |
write_files: | |
- content: | | |
[Rudder_4.1] | |
name=Rudder 4.1 EL repository | |
baseurl=http://www.rudder-project.org/rpm-4.1/RHEL_7/ |
I have ssh connections from multiple users. I want to log all connectsion except those from the user 'git'. How dow you create an exception to a filter ?
input {
file {
path => "/var/log/auth.log"
type => "syslog"
}
}
# ___ ___ __ __ | |
# / | __ ______/ (_) /_____/ / | |
# / /| |/ / / / __ / / __/ __ / | |
# / ___ / /_/ / /_/ / / /_/ /_/ / | |
# /_/ |_\__,_/\__,_/_/\__/\__,_/ | |
# | |
# Linux Audit Daemon - Best Practice Configuration | |
# /etc/audit/audit.rules | |
# | |
# Compiled by Florian Roth |
#!/bin/bash | |
GITHUB_USERNAME=rubo77 | |
if [[ "$1" == "" ]]; then | |
echo 'usage: gistfile-post.sh filename [gistname]' | |
exit 0 | |
fi | |
# 0. file name for the Gist |
#!/bin/sh | |
OK=0 | |
CRIT=2 | |
tics=$(date +%s) | |
if [ "$tics" -gt 1561741200 -a "$tics" -lt 1561914000 ]; then | |
# From Friday 17:00Z to Sunday: STFU | |
echo "OK - Please do not disturb; party in progress" | |
exit $OK |
## Remove the history from | |
rm -rf .git | |
## recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
## push to the github remote repos ensuring you overwrite history | |
git remote add origin git@github.com:deepthinkag/curl2bash.git |