Skip to content

Instantly share code, notes, and snippets.

# Boxstarter options
$Boxstarter.RebootOk=$false # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
# Basic setup
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
BloggingTribe.Com
Mautic Cronjob Codes - Last Updated Feb 8, 2018
_____________________________________________________
Disclaimer: This code is not the official documentation from Mautic.org, not is it indorced by Mautic.org. Please use at your own discretion.
Usage:
Step 1: Replace "*" with your directory path to your Mautic Installation
Step 2: create folder inside your Mautic installation called "cron_logs"
Step 3: Copy the code into your Cron Jobs manager.
@woakes070048
woakes070048 / markdown-import.php
Created April 3, 2020 01:39 — forked from vlucas/markdown-import.php
Imports Markdown files in a local directory into a WordPress installation
<?php
// Turn on all error reporting so we can see if anything goes wrong
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(-1);
// Relative path to your wp-config.php file (to connect to the database)
require '../wp-config.php';
require './frontmatter.php'; // Parses YAML frontmatter - https://github.com/Modularr/YAML-FrontMatter
require './Parsedown.php'; // Markdown parser - https://github.com/erusev/parsedown
@woakes070048
woakes070048 / .htaccess
Created June 5, 2018 01:38 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
# Boxstarter options
$Boxstarter.RebootOk=$false # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
# Basic setup
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
[environment:default]
OVEHOSTED_STORAGE/storageDomainConnection=str:host1:/engine
OVEHOSTED_STORAGE/mntOptions=str:backup-volfile-servers=host2:host3
# A sample configuration file to setup a converged ovirt/gluster install
# using gdeploy: https://github.com/gluster/gdeploy
# edit hosts to match your environment
[hosts]
ovirt01.nlcsvr.net
[yum0]
action=install
@woakes070048
woakes070048 / pci_dss.md
Created June 2, 2016 20:03 — forked from diyan/pci_dss.md
PCI DSS. Useful resources
@woakes070048
woakes070048 / erpnext_magento.php
Created January 17, 2016 11:46 — forked from rmehta/erpnext_magento.php
Sample ERPNext Magento Connector
<?php
// contributed by supplify.com
error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once '../curl/Zebra_cURL.php';
require_once '../app/Mage.php';
Mage::app();
class action extends Zebra_cURL{
@woakes070048
woakes070048 / gist:d07e8b2a867e56c5eba6
Created January 8, 2016 02:55 — forked from dalers/gist:e763aefd7e1793528397
ERPNext good install on Centos 7
[root@hotstuff ~]# sudo bash setup_frappe.sh --setup-production
Installing for centos 7 amd64
In case you encounter an error, you can post on https://discuss.frappe.io
Adding centos mariadb repo
Installing packages for centos. This might take time...
Installing wkhtmltopdf
Cannot install wkhtmltodpdf. Skipping...
Configuring CentOS services
Starting services