These files allow you to configure Mautic using Nginx.
This file contains 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
# Assumes new clean jail | |
pkg update | |
pkg upgrade | |
# Required packages | |
pkg install bash nano jpeg py27-setuptools27 py27-sqlite3 | |
# Set up python | |
easy_install pip | |
pip install virtualenv | |
# Perhaps create a new user account now and switch to it | |
# csh gave venv errors |
This file contains 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 | |
pkg info | grep php | awk 'BEGIN {FS="-"} {print $1"-"$2}' |
This file contains 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
Pyhton sample code to control an AXIS Pan/Tilt/Zoom web camera. |
This file contains 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 | |
# Send an email from bash with SMTP This is an attempt to create a pseudo class to have an email routine/template to use | |
# in scripts that send emails. I'm using FreeBSD so the original gist had been modified to make it work there. | |
RECIPIENT="" | |
SENDERNAME="" | |
SENDEREMAIL="" | |
SMTPUSERNAME="" | |
SMTPPASSWD="" | |
SMTPSERVER="" |
This file contains 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/bash | |
# dontforget | |
# | |
# A stupid script for short term reminders in bash | |
# | |
# Arguments just need to contain a number and a bunch of words. | |
# | |
# The number can be anywhere in the arguments, but there shouldn't | |
# be any other numeric digits. | |
# |
This file contains 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
// Policy template for Linux. | |
// Uncomment the policies you wish to activate and change their values to | |
// something useful for your case. The provided values are for reference only | |
// and do not provide meaningful defaults! | |
{ | |
// Cross-origin HTTP Basic Auth prompts | |
//------------------------------------------------------------------------- | |
// Controls whether third-party sub-content on a page is allowed to pop-up an | |
// HTTP Basic Auth dialog box. Typically this is disabled as a phishing | |
// defense. If this policy is not set, this is disabled and third-party sub- |
This file contains 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 | |
read MPATH "What is the path to the installation?" | |
find $MPATH -type d -exec chmod 755 {} \; | |
find $MPATH -type f -exec chmod 644 {} \; | |
chown -R www:www $MPATH |
This file contains 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
case $( uname ) in | |
(Linux) | |
# paste your old stuff here | |
;; | |
(FreeBSD) | |
# write new code here or copy with modifications if possible | |
;; | |
esac |
#Unix Toolbox
This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users. This is a practical guide with concise explanations, however the reader is supposed to know what s/he is doing.
##Unix Toolbox revision 14.4
The latest version of this document can be found at http://cb.vu/unixtoolbox.xhtml. Replace .xhtml on the link with .pdf for the PDF version and with .book.pdf for the booklet version. On a duplex printer the booklet will create a small book ready to bind. This XHTML page can be converted into a nice PDF document with a CSS3 compliant application (see the script example). See also the about page.
Error reports and comments are m
Error reports and comments are m
OlderNewer