2015-10-21
- jennifer
- martym
######################################################################### | |
# Title: CrowdSec : Pushover Notification (API) # | |
# Author(s): JigSawFr # | |
# URL: https://github.com/crowdsecurity/crowdsec # | |
######################################################################### | |
# MIT License # | |
######################################################################### | |
type: http # Don't change | |
name: http_default # Must match the registered plugin in the profile |
#!/bin/bash | |
# Function to check if the script is running as root | |
check_root() { | |
if [ "$EUID" -ne 0 ]; then | |
echo "Please run as root or use sudo." | |
exit 1 | |
fi | |
} |
#!/bin/bash | |
# Ensure the script is run as root | |
if [ "$EUID" -ne 0 ]; then | |
echo "Please run as root (use sudo)." | |
exit 1 | |
fi | |
# Function to create or resize the swap file | |
create_swap() { |
#!/bin/bash | |
# Function to handle errors | |
handle_error() { | |
echo "Error: $1" | |
exit 1 | |
} | |
# Check if the script is run as root | |
if [ "$EUID" -ne 0 ]; then |
################################## | |
# WINAPPS CONFIGURATION FILE # | |
################################## | |
# INSTRUCTIONS | |
# - Leading and trailing whitespace are ignored. | |
# - Empty lines are ignored. | |
# - Lines starting with '#' are ignored. | |
# - All characters following a '#' are ignored. |
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=BrowserVM | |
Exec=qvm-open-in-dvm %u | |
Terminal=false | |
X-MultipleArgs=false | |
Type=Application | |
Categories=Network;WebBrowser; | |
MimeType=x-scheme-handler/unknown;x-scheme-handler/about;text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https; |
#!/bin/bash -e | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
# Download the latest version of python-pip | |
wget https://bootstrap.pypa.io/get-pip.py | |
# Install pip |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac | |
# don't put duplicate lines or lines starting with space in the history. | |
HISTCONTROL=ignoreboth |
#!/bin/bash -e | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
cd /home/$USER/ | |
echo "Changing directory to: $(pwd)" | |
echo "Removing bloatware..." |