egrep --color 'vmx|svm' /proc/cpuinfo
Must have VMX or SVM processor flag that enables virtualisation.
#!/usr/bin/env python | |
import re | |
import datetime | |
format = '%b %d %H:%M:%S %Y' | |
filepath = '/var/log/vsftpd.log' | |
now = datetime.datetime.now() | |
now24 = now + datetime.timedelta(-2) | |
def parse_date_from_log_line(line): |
#!/bin/bash -e | |
# Start allways the same | |
wpuser='yourusername' | |
wpuseremail='[email protected]' | |
wpuserpass=$(date +%s | sha256sum | base64 | head -c 16) | |
dpprefix=$(date +%s | sha256sum | base64 | head -c 6) | |
clear |
version: '3.3' | |
services: | |
nginx: | |
image: nginx:latest | |
ports: | |
- '80:80' | |
volumes: | |
- ./nginx:/etc/nginx/conf.d | |
- ./logs/nginx:/var/log/nginx |
#!/bin/sh | |
if [ ! -f /etc/hosts.blocked.org ]; then | |
cp /etc/hosts.blocked /etc/hosts.blocked.org | |
echo "no" | |
fi | |
TMP="/var/tmp/" | |
echo "" > ${TMP}output.txt |
#!/usr/local/bin/bash | |
# 1. Install ImageMagic | |
# 2.Add “image/webp webp” to the file mime.types ( it should be there already ) | |
# | |
# 3.Add to your main Nginx configuration. | |
# map $http_accept $webp_suffix { | |
# default ""; | |
# "~*webp" ".webp"; | |
# } |
#!/usr/local/bin/bash | |
# All Rights reseverd to tradik.com | |
readonly VERSION=1.4.12 | |
UNAME='/usr/bin/uname' | |
# Config you can make in here: | |
DATABASE="$1.db" | |
SQLITE='/usr/local/bin/sqlite3' |
#!/bin/sh | |
# SVN PRE-COMMIT HOOK | |
# | |
# Requirements: | |
# - PHP installed ( https://secure.php.net/manual/en/install.php ) | |
# - PHPCS installed ( https://github.com/squizlabs/PHP_CodeSniffer + https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards ) | |
# - csslint installed ( https://github.com/CSSLint/csslint/wiki/command-line-interface ) | |
# - i18n0lint installed ( https://github.com/jwarby/i18n-lint ) |
#!/usr/bin/env bash | |
# use: ./docx-to-html.sh /folderpath/ | |
find $1 -type f -name "*.docx" -print0 | while IFS= read -r -d $'\0' FINALNAME; do | |
BASENAME=$(basename "$FINALNAME" .docx) | |
DIRNAME=$(dirname "$FINALNAME") | |
echo "$FINALNAME" | |
pandoc -t html -o "$DIRNAME/$BASENAME.html" "$FINALNAME" | |
done |