Skip to content

Instantly share code, notes, and snippets.

@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 / pci_dss.md
Created June 2, 2016 20:03 — forked from diyan/pci_dss.md
PCI DSS. Useful resources
# 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
[environment:default]
OVEHOSTED_STORAGE/storageDomainConnection=str:host1:/engine
OVEHOSTED_STORAGE/mntOptions=str:backup-volfile-servers=host2:host3
# 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
@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/
@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
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.
# 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