Skip to content

Instantly share code, notes, and snippets.

View nestorwheelock's full-sized avatar
:octocat:
Meow

Nestor Wheelock nestorwheelock

:octocat:
Meow
View GitHub Profile
@nestorwheelock
nestorwheelock / synapse.sh
Created February 14, 2018 03:15 — forked from Cameron-D/synapse.sh
Matrix Synapse FreeBSD setup commands
# 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
#!/bin/sh
pkg info | grep php | awk 'BEGIN {FS="-"} {print $1"-"$2}'
@nestorwheelock
nestorwheelock / AXIS-Camera
Created August 16, 2019 02:54 — forked from stephenhouser/AXIS-Camera
Controlling AXIS Pan/Tilt/Zoom Web Camera
Pyhton sample code to control an AXIS Pan/Tilt/Zoom web camera.
@nestorwheelock
nestorwheelock / bash-smtp-auth-email
Last active January 2, 2020 06:01 — forked from fbatschi/bash-smtp-auth-email
How to send an email from bash via SMTP Auth
$!/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=""
@nestorwheelock
nestorwheelock / dontforget.bash
Created October 24, 2020 03:25 — forked from ttscoff/dontforget.bash
Quick reminders from Terminal (bash)
#!/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.
#
@nestorwheelock
nestorwheelock / chrome.json
Last active November 2, 2020 22:54 — forked from meets2tarun/chrome.json
Copy the file in /etc/chromium-browser/policies/managed and make required changes in chromium-browser
// 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-
@nestorwheelock
nestorwheelock / fix-mautic-file-perms.sh
Created December 1, 2020 09:36
Fix Mautic File Permissions after Install or Upgrade
#!/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
@nestorwheelock
nestorwheelock / README.md
Created December 1, 2020 09:48 — forked from proffalken/README.md
Mautic Nginx Configuration

Mautic Nginx Configuration

These files allow you to configure Mautic using Nginx.

@nestorwheelock
nestorwheelock / gist:731decc1cd5142f1001f90785013267e
Created August 10, 2021 03:24
case switches for refactoring Linux Bash scripts to FBSD
case $( uname ) in
(Linux)
# paste your old stuff here
;;
(FreeBSD)
# write new code here or copy with modifications if possible
;;
esac
@nestorwheelock
nestorwheelock / unixToolbox.md
Created August 10, 2021 04:03 — forked from tokhi/unixToolbox.md
Collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users.

#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